We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ccc670 commit 4ab47bdCopy full SHA for 4ab47bd
Extension/src/LanguageServer/client.ts
@@ -393,8 +393,8 @@ class DefaultClient implements Client {
393
public onDidChangeVisibleTextEditors(editors: vscode.TextEditor[]): void {
394
//Apply text decorations to inactive regions
395
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]);
+ let valuePair: [vscode.TextEditorDecorationType, vscode.Range[]] = this.inactiveRegionsDecorations.get(e.document.uri.toString());
+ e.setDecorations(valuePair[0], valuePair[1]); // VSCode clears the decorations when the text editor becomes invisible
398
}
399
400
0 commit comments