Skip to content

[FEATURE]: Deactivate unused LSP servers during a session #12976

@rombert

Description

@rombert

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I am sometimes working in a monorepo-like setup, where I have 3-400 hundred projects checked out. I have wide-reaching tasks that require investigatin/changes in maybe 10-20 projects per session.

For each changed project, a JDT LSP server is instantiated. Those do add in up terms of memory available on my laptop and eventually lead to performance problems.

My workaround is to exit opencode and immediately resume the session - this way the LSP servers are stopped and respawned when needed.

It would be great if opencode would handle this gracefully by deactivating LSP servers for projects that were not recently used in the current session.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions