Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove workspace folder from langauge server when all opened resources are closed #5120

Open
asmodeus812 opened this issue Aug 21, 2024 · 2 comments

Comments

@asmodeus812
Copy link
Contributor

There should be a way to configure coc to automatically remove a workspace folder once all buffers loaded for the given workspace are unloaded/deleted/closed in vim / nvim.

@fannheyward
Copy link
Member

What's the usage of remove workspace folder form server?

@asmodeus812
Copy link
Contributor Author

@fannheyward server actions would still include or report workspace folders even though all of the buffers related to that workspace folder/root have been closed. For example if i have been working on 3-4 different workspaces, once i close all resources related to one of those workspace folders, coc should send removeWorkspaceFolder to the server to gracefuly detach from it. Otherwise the language server might still consider that workspace folder "active" in some capactiy.

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

No branches or pull requests

2 participants