Skip to content

Use file path comparison which normalises drive letters for code actions#643

Merged
dzhou121 merged 1 commit intolapce:masterfrom
DJMcNab:windows_code_action
Jun 19, 2022
Merged

Use file path comparison which normalises drive letters for code actions#643
dzhou121 merged 1 commit intolapce:masterfrom
DJMcNab:windows_code_action

Conversation

@DJMcNab
Copy link
Copy Markdown
Contributor

@DJMcNab DJMcNab commented Jun 19, 2022

Currently the rust-url crate doesn't handle windows drive letters. Compare to e.g. vscode-uri, which does do this normalisation.

Note that our handling of cross-drive paths is not very robust, so we need to consider what assumptions are made about paths being on the host. (Since at the moment, code actions are run in the client rather than in the proxy)

However, this strictly improves the situation for current usage.

@dzhou121 dzhou121 merged commit 83c7f02 into lapce:master Jun 19, 2022
@DJMcNab DJMcNab deleted the windows_code_action branch June 19, 2022 12:08
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