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

fix: enforce single file mode check when root_dir differs from client #2998

Merged
merged 1 commit into from
Feb 6, 2024
Merged

fix: enforce single file mode check when root_dir differs from client #2998

merged 1 commit into from
Feb 6, 2024

Conversation

serranomorante
Copy link
Contributor

@serranomorante serranomorante commented Feb 6, 2024

fixes issue #2959


After executing :LspRestart nvim-lspconfig tries to reuse the same client (tsserver, ...) but this causes buffers from different root_dirs to fall into single_file_mode (1 tsserver per buffer) even if single file mode is turn off. This PR enforces the single file mode check before trying to reuse a client from other root_dir.

@glepnir glepnir merged commit 0a1a2aa into neovim:master Feb 6, 2024
9 checks passed
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.

2 participants