mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 14:02:57 +00:00
npm run fix
This commit is contained in:
parent
ebf302d261
commit
75353753cd
@ -9,14 +9,12 @@ export interface PublishDecorationsParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function handle(params: PublishDecorationsParams) {
|
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 looks like:
|
// Unescaped URI looks like:
|
||||||
// file:///c:/Workspace/ra-test/src/main.rs
|
// file:///c:/Workspace/ra-test/src/main.rs
|
||||||
return unescapedUri === params.uri
|
return unescapedUri === params.uri;
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
if (!Server.config.highlightingOn || !targetEditor) {
|
if (!Server.config.highlightingOn || !targetEditor) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user