diff options
Diffstat (limited to 'editors/code/src/extension.ts')
-rw-r--r-- | editors/code/src/extension.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/editors/code/src/extension.ts b/editors/code/src/extension.ts index 3965b881a..2ec3a2b35 100644 --- a/editors/code/src/extension.ts +++ b/editors/code/src/extension.ts | |||
@@ -152,9 +152,15 @@ 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 | vscode.window.onDidChangeActiveTextEditor(editor => hintsUpdater.loadHints(editor)); | 155 | vscode.window.onDidChangeActiveTextEditor(editor => |
156 | vscode.workspace.onDidChangeTextDocument(e => hintsUpdater.updateHints(e)); | 156 | hintsUpdater.loadHints(editor) |
157 | vscode.workspace.onDidChangeConfiguration(_ => hintsUpdater.toggleHintsDisplay(Server.config.displayInlayHints)); | 157 | ); |
158 | vscode.workspace.onDidChangeTextDocument(e => | ||
159 | hintsUpdater.updateHints(e) | ||
160 | ); | ||
161 | vscode.workspace.onDidChangeConfiguration(_ => | ||
162 | hintsUpdater.toggleHintsDisplay(Server.config.displayInlayHints) | ||
163 | ); | ||
158 | }); | 164 | }); |
159 | } | 165 | } |
160 | } | 166 | } |