Skip to content

Commit e02a00a

Browse files
Style fixes
1 parent 15411d4 commit e02a00a

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

editors/code/src/commands/inlay_hints.ts

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,19 @@ export class HintsUpdater {
2727
if (this.displayHints) {
2828
const documentUri = this.getEditorDocumentUri(editor);
2929
if (documentUri !== null) {
30-
const latestDecorations = this.drawnDecorations.get(documentUri);
30+
const latestDecorations = this.drawnDecorations.get(
31+
documentUri
32+
);
3133
if (latestDecorations === undefined) {
3234
await this.updateDecorationsFromServer(
3335
documentUri,
3436
editor!
3537
);
3638
} else {
37-
await editor!.setDecorations(typeHintDecorationType, latestDecorations);
39+
await editor!.setDecorations(
40+
typeHintDecorationType,
41+
latestDecorations
42+
);
3843
}
3944
}
4045
}
@@ -48,9 +53,12 @@ export class HintsUpdater {
4853
if (displayHints) {
4954
return this.updateHints();
5055
} else {
51-
const editor = vscode.window.activeTextEditor;
52-
if (this.getEditorDocumentUri(editor) !== null) {
53-
return editor!.setDecorations(typeHintDecorationType, []);
56+
const currentEditor = vscode.window.activeTextEditor;
57+
if (this.getEditorDocumentUri(currentEditor) !== null) {
58+
return currentEditor!.setDecorations(
59+
typeHintDecorationType,
60+
[]
61+
);
5462
}
5563
}
5664
}
@@ -92,7 +100,10 @@ export class HintsUpdater {
92100

93101
this.drawnDecorations.set(documentUri, newDecorations);
94102

95-
if (this.getEditorDocumentUri(vscode.window.activeTextEditor) === documentUri) {
103+
if (
104+
this.getEditorDocumentUri(vscode.window.activeTextEditor) ===
105+
documentUri
106+
) {
96107
return editor.setDecorations(
97108
typeHintDecorationType,
98109
newDecorations

0 commit comments

Comments
 (0)