aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/extension.ts
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-07-25 13:54:20 +0100
committerKirill Bulatov <[email protected]>2019-07-25 14:20:02 +0100
commitf1ba963a3097106ad6daa41d04c51b7f2d418d8c (patch)
tree42c2f1f0c2e1d49ea08461e2db3652c85220a6c9 /editors/code/src/extension.ts
parent02f18abc559930e5efec5af1ec4f3a7dbb8b4429 (diff)
npm run fix
Diffstat (limited to 'editors/code/src/extension.ts')
-rw-r--r--editors/code/src/extension.ts26
1 files changed, 17 insertions, 9 deletions
diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts
index 9bee75394..c6efc2e7e 100644
--- a/editors/code/src/extension.ts
+++ b/editors/code/src/extension.ts
@@ -152,15 +152,23 @@ export function activate(context: vscode.ExtensionContext) {
152 if (Server.config.displayInlayHints) { 152 if (Server.config.displayInlayHints) {
153 const hintsUpdater = new HintsUpdater(); 153 const hintsUpdater = new HintsUpdater();
154 hintsUpdater.loadHints(vscode.window.activeTextEditor).then(() => { 154 hintsUpdater.loadHints(vscode.window.activeTextEditor).then(() => {
155 disposeOnDeactivation(vscode.window.onDidChangeActiveTextEditor(editor => 155 disposeOnDeactivation(
156 hintsUpdater.loadHints(editor) 156 vscode.window.onDidChangeActiveTextEditor(editor =>
157 )); 157 hintsUpdater.loadHints(editor)
158 disposeOnDeactivation(vscode.workspace.onDidChangeTextDocument(e => 158 )
159 hintsUpdater.updateHints(e) 159 );
160 )); 160 disposeOnDeactivation(
161 disposeOnDeactivation(vscode.workspace.onDidChangeConfiguration(_ => 161 vscode.workspace.onDidChangeTextDocument(e =>
162 hintsUpdater.toggleHintsDisplay(Server.config.displayInlayHints) 162 hintsUpdater.updateHints(e)
163 )); 163 )
164 );
165 disposeOnDeactivation(
166 vscode.workspace.onDidChangeConfiguration(_ =>
167 hintsUpdater.toggleHintsDisplay(
168 Server.config.displayInlayHints
169 )
170 )
171 );
164 }); 172 });
165 } 173 }
166} 174}