Skip to content

TypeError on missing github.copilot.agent config #29

@ethereon

Description

@ethereon

Started in 1.357.0, persists in the current 1.360.0

The language server attempts to access members of the undocumented github.copilot.agent config:

Failed to apply settings configuration TypeError: Cannot read properties of undefined (reading 'tools')
    at applyTerminalAutoApproveConfiguration (.../copilot/main.js:1774:14921)
    at applyCopilotConfiguration (.../copilot/main.js:1774:13893)
    at applySettingsToConfiguration (.../copilot/main.js:1774:13677)
    at notifyChangeConfiguration (.../copilot/main.js:1774:13310)
    at Pr.handleDidChangeConfiguration (.../copilot/main.js:1774:51735)
    at onInitialized (.../copilot/main.js:1774:53966)
    at wrapped (.../copilot/main.js:236:1311)

(adding an empty {} for agent resolves it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions