Skip to content

Commit 84fd6a2

Browse files
committed
Uncomment guard block; Move comment
1 parent b1c332b commit 84fd6a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { createProtocolFilter } from './protocolFilter';
2121
import { DataBinding } from './dataBinding';
2222
import minimatch = require("minimatch");
2323
import * as logger from '../logger';
24-
import { deactivate } from './extension';
2524

2625
let ui: UI;
2726

@@ -400,9 +399,9 @@ class DefaultClient implements Client {
400399
//Apply text decorations to inactive regions
401400
for (let e of editors) {
402401
let valuePair: DecorationRangesPair = this.inactiveRegionsDecorations.get(e.document.uri.toString());
403-
//if (valuePair !== undefined) {
402+
if (valuePair !== undefined) {
404403
e.setDecorations(valuePair.decoration, valuePair.ranges); // VSCode clears the decorations when the text editor becomes invisible
405-
//}
404+
}
406405
}
407406
}
408407

@@ -659,7 +658,8 @@ class DefaultClient implements Client {
659658
valuePair.decoration.dispose();
660659
valuePair.decoration = decoration;
661660

662-
valuePair.ranges = params.ranges; // As vscode.TextEditor.setDecorations only applies to visible editors, we must cache the range for when another editor becomes visible
661+
// As vscode.TextEditor.setDecorations only applies to visible editors, we must cache the range for when another editor becomes visible
662+
valuePair.ranges = params.ranges;
663663
} else { // The entry does not exist. Make a new one
664664
let toInsert: DecorationRangesPair = {
665665
decoration: decoration,

0 commit comments

Comments
 (0)