-
Notifications
You must be signed in to change notification settings - Fork 185
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
How to handle windows with multiple root folders? #33
Comments
And it should also handle the case with no folders, i.e. when editing signal files. |
This issue is still mentioned on https://github.com/tomv564/LSP#troubleshooting |
Thanks, pointed it to issue #81 instead! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The LSP package currently handles windows with multiple folders by finding a common prefix.
As discovered in #24, a common usage with Sublime workspaces is to link in whole trees of projects, perhaps even from multiple drives (e.g.
C:\Users\Tom\Projects
andD:\Work\
)For this scenario, it is increasingly unlikely that we can find a common prefix to give the language server as
rootUri
.Looking at the language server protocol, the workspace concept (of which there is only one in a language server process) offers these actions:
workspace/symbols
(would you really want to execute this across both drives ?)workspace/didChangeConfiguration
(configuration is likely to be project-specific, if anything)An improvement would be to create an LSP instance per
window.folders()
.Users who choose to mount the parent folder of multiple projects will have to accept that:
The text was updated successfully, but these errors were encountered: