mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
npm run fix
This commit is contained in:
parent
ebf302d261
commit
75353753cd
1 changed files with 6 additions and 8 deletions
|
@ -9,14 +9,12 @@ export interface PublishDecorationsParams {
|
|||
}
|
||||
|
||||
export function handle(params: PublishDecorationsParams) {
|
||||
const targetEditor = vscode.window.visibleTextEditors.find(
|
||||
editor => {
|
||||
const unescapedUri = unescape(editor.document.uri.toString());
|
||||
// Unescaped URI looks like:
|
||||
// file:///c:/Workspace/ra-test/src/main.rs
|
||||
return unescapedUri === params.uri
|
||||
}
|
||||
);
|
||||
const targetEditor = vscode.window.visibleTextEditors.find(editor => {
|
||||
const unescapedUri = unescape(editor.document.uri.toString());
|
||||
// Unescaped URI looks like:
|
||||
// file:///c:/Workspace/ra-test/src/main.rs
|
||||
return unescapedUri === params.uri;
|
||||
});
|
||||
|
||||
if (!Server.config.highlightingOn || !targetEditor) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue