aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/inlay_hints.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/commands/inlay_hints.ts
parent02f18abc559930e5efec5af1ec4f3a7dbb8b4429 (diff)
npm run fix
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