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

Use a copy of the server list when restarting #540

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

nickspoons
Copy link
Contributor

If the original server list is used, it is cleared during the step of removing filetype buffers, so no servers are actually restarted, as the lspservers list is empty by the time the for loop is reached.

Fixes #378

If the original server list is used, it is cleared during the step of
removing filetype buffers, so no servers are actually restarted, as the
`lspservers` list is empty by the time the `for` loop is reached.
@Shane-XB-Qian
Copy link
Contributor

thx,
by the way: if so, do you think the 'copy()' in RemoveFile() func still required?

@nickspoons
Copy link
Contributor Author

do you think the 'copy()' in RemoveFile() func still required?

I don't know, I tried removing it and it doesn't seem to have broken anything, but I haven't tried to exhaustively chase down code paths and make sure it doesn't cause problems elsewhere. Probably safer just to leave it for now.

@Shane-XB-Qian
Copy link
Contributor

Shane-XB-Qian commented Aug 16, 2024 via email

@yegappan yegappan merged commit ee7182a into yegappan:main Sep 22, 2024
2 checks passed
@nickspoons nickspoons deleted the copy-server-list-before-restart branch September 22, 2024 22:49
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.

lsp server re-start/re-effect
3 participants