mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
fixed comment
This commit is contained in:
parent
324cbe839f
commit
498a7912e9
@ -12,9 +12,8 @@ export function handle(params: PublishDecorationsParams) {
|
|||||||
const targetEditor = vscode.window.visibleTextEditors.find(
|
const targetEditor = vscode.window.visibleTextEditors.find(
|
||||||
editor => {
|
editor => {
|
||||||
const unescapedUri = unescape(editor.document.uri.toString());
|
const unescapedUri = unescape(editor.document.uri.toString());
|
||||||
// Unescaped URI should be something like:
|
// Unescaped URI looks like:
|
||||||
// file:///c:/Workspace/ra-test/src/main.rs
|
// file:///c:/Workspace/ra-test/src/main.rs
|
||||||
// RA server might send it with the drive letter uppercased, so we force only the drive letter to lowercase.
|
|
||||||
return unescapedUri === params.uri
|
return unescapedUri === params.uri
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user