-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
normalize LSP workspaces #6517
normalize LSP workspaces #6517
Conversation
@@ -201,6 +202,7 @@ impl Client { | |||
let (server_rx, server_tx, initialize_notify) = | |||
Transport::start(reader, writer, stderr, id); | |||
let (workspace, workspace_is_cwd) = find_workspace(); | |||
let workspace = path::get_normalized_path(&workspace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about canonicalizing in find_workspace
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to do that at first but the problem with that is the normalize
is in helix-core
and find_workspace
is in helix-loader
(which can't pull in helix-core
). All other uses of find_workspace
don't care about path equality (they just use it to do IO where it doesn't matter which path is used)
Fixes #6505
We didn't normalize/canoncialize LSP workspace paths with can both lead to bugs in the workspace detection and leads to inconsistent paths being sent to the LS which might not handle this correctly.