`npm run fix`
@@ -9,14 +9,12 @@ export interface PublishDecorationsParams {
}
export function handle(params: PublishDecorationsParams) {
- const targetEditor = vscode.window.visibleTextEditors.find(
- editor => {
+ 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
- }
- );
+ return unescapedUri === params.uri;
+ });
if (!Server.config.highlightingOn || !targetEditor) {
return;
