Skip to content

Commit 4ab47bd

Browse files
committed
Var rename for consistence + commenting
1 parent 1ccc670 commit 4ab47bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ class DefaultClient implements Client {
393393
public onDidChangeVisibleTextEditors(editors: vscode.TextEditor[]): void {
394394
//Apply text decorations to inactive regions
395395
for (let e of editors) {
396-
let value: [vscode.TextEditorDecorationType, vscode.Range[]] = this.inactiveRegionsDecorations.get(e.document.uri.toString());
397-
e.setDecorations(value[0], value[1]);
396+
let valuePair: [vscode.TextEditorDecorationType, vscode.Range[]] = this.inactiveRegionsDecorations.get(e.document.uri.toString());
397+
e.setDecorations(valuePair[0], valuePair[1]); // VSCode clears the decorations when the text editor becomes invisible
398398
}
399399
}
400400

0 commit comments

Comments
 (0)