You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Disable LSP for external directories #7227
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem:
When agents (primary or subagents) explore external directories—such as cloned repos for reading documentation—OpenCode spawns LSP servers for those directories. This causes:
Long startup times (30+ seconds for large TypeScript monorepos or Java/JDTLS projects)
Wasted CPU/memory for LSP that provides no value
No benefit—when exploring external code for context, diagnostics aren't used
Use case:
Clone a library's repo to let the LLM search its docs/source. Only need file reading—LSP is unnecessary and harmful due to startup overhead.
Proposed solution:
{
"lsp": {
"external_directories": false
}
}
Current workarounds (insufficient):
"lsp": false — Disables LSP entirely, including main project
Per-LSP "disabled": true — Too broad, affects all directories
Activity
rekram1-node commentedon Jan 7, 2026
Ah interesting...
thdxr commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.