Skip to content

Conversation

@itsrainingmani
Copy link
Contributor

@itsrainingmani itsrainingmani commented Jan 8, 2026

Closes #6692

  • Add ability to toggle LSP Diagnostics on/off via the command palette or slash command
  • When toggled off, the edit & write tools skip fetching and adding LSP diagnostics to the model
  • LSP diagnostics are enabled by default and need to toggled off actively

Screenshots

Command Palette
SCR-20260106-mpta

Slash Command
SCR-20260106-mpxs

Toast + Sidebar
SCR-20260106-mqxj

Output Comparison

# LSP Diagnostics enabled
DEBUG +0ms service=lsp fileCount=1 totalDiagnostics=158 diagnostics fetched
DEBUG +0ms service=tool.write diagnostics_enabled=true filepath=/tmp/lsp-stress-test.ts diagnosticFileCount=1 tool.write diagnostics check
This file has errors, please fix
<file_diagnostics>
ERROR [4:7] Type 'number' is not assignable to type 'string'.
ERROR [5:7] Type 'string' is not assignable to type 'number'.
ERROR [6:7] Type 'string' is not assignable to type 'boolean'.
ERROR [7:24] Type 'string' is not assignable to type 'number'.
ERROR [7:29] Type 'string' is not assignable to type 'number'.
ERROR [7:34] Type 'string' is not assignable to type 'number'.
ERROR [8:30] Type 'string' is not assignable to type 'number'.
ERROR [14:5] Argument of type 'string' is not assignable to parameter of type 'number'.
... and 67 more
</file_diagnostics>
 tool.write diagnostic output

vs

# LSP Diagnostics Disabled

DEBUG +0ms service=lsp enabled=false diagnosticsStatus called
DEBUG +0ms service=tool.write diagnostics_enabled=false filepath=/tmp/lsp-stress-test-common.ts diagnosticFileCount=0 tool.write diagnostics check
DEBUG +0ms service=tool.write diagnostics={} output= tool.write diagnostic output

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

- add ability to toggle lsp diagnostics
- show LSP diagnostics status in sidebar
- regenerate type info to include lsp_diagnostics flag
- add tests for write & edit tool depending on diagnostics state
- add autocomplete for lsp diagnostics toggle slash cmd
…th limit error in server.ts

lsp_diagnostics defaults to "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE]: Add keyboard shortcut to toggle LSP usage

1 participant