aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/inlay_hints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/commands/inlay_hints.ts')
-rw-r--r--editors/code/src/commands/inlay_hints.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/editors/code/src/commands/inlay_hints.ts b/editors/code/src/commands/inlay_hints.ts
index ba9966161..8154af8dc 100644
--- a/editors/code/src/commands/inlay_hints.ts
+++ b/editors/code/src/commands/inlay_hints.ts
@@ -25,7 +25,11 @@ export class HintsUpdater {
25 public async loadHints( 25 public async loadHints(
26 editor: vscode.TextEditor | undefined 26 editor: vscode.TextEditor | undefined
27 ): Promise<void> { 27 ): Promise<void> {
28 if (this.displayHints && editor !== undefined && this.isRustDocument(editor.document)) { 28 if (
29 this.displayHints &&
30 editor !== undefined &&
31 this.isRustDocument(editor.document)
32 ) {
29 await this.updateDecorationsFromServer( 33 await this.updateDecorationsFromServer(
30 editor.document.uri.toString(), 34 editor.document.uri.toString(),
31 editor 35 editor