GramEditor/gram
38
985
Fork
You've already forked gram
88

Manually-stopped LSPs restart after switching branches #167

Open
opened 2026年03月26日 00:16:14 +01:00 by ItsHarper · 4 comments

Reproduction steps

  1. Stop rust-analyzer using the Language Servers menu
  2. Switch git branches
  3. Observe that rust-analyzer starts up again
### Reproduction steps 1. Stop `rust-analyzer` using the Language Servers menu 2. Switch git branches 3. Observe that `rust-analyzer` starts up again
Owner
Copy link

This is not entirely unexpected but aligns more with the Zed approach than how I think Gram should work.

There is a way to actually disable an LSP from the settings file, like in the example for Erlang here: https://gram.liten.app/docs/languages/erlang/

It's not exposed in the UI, though. It would definitely fit into the "Configure Servers" screen.

This is not entirely unexpected but aligns more with the Zed approach than how I think Gram should work. There is a way to actually disable an LSP from the settings file, like in the example for Erlang here: https://gram.liten.app/docs/languages/erlang/ It's not exposed in the UI, though. It would definitely fit into the "Configure Servers" screen.
Owner
Copy link

I would like to be able to control language servers per project and not just globally, too.

I would like to be able to control language servers per project and not just globally, too.
Author
Member
Copy link

I don't actually want to permanently disable it for the project. I just don't want rust-analyzer building Gram at the same time that I have cbuild building Gram.

I don't actually want to permanently disable it for the project. I just don't want rust-analyzer building Gram at the same time that I have `cbuild` building Gram.

Yeah.. the Stop button really should mean "do not autostart this server this session until Start is manually pressed again". Just now I'm working on battery power and ccls reindexing the Linux tree is eating my battery like there's no tomorrow, so I want it to be "temporarily disabled just for now"

Yeah.. the Stop button really should mean "do not autostart this server this session until Start is manually pressed again". Just now I'm working on battery power and ccls reindexing the Linux tree is eating my battery like there's no tomorrow, so I want it to be "temporarily disabled just for now"
Sign in to join this conversation.
No Branch/Tag specified
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#167
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?