Skip to content

Commit 01be2d4

Browse files
Style fixes
1 parent 15411d4 commit 01be2d4

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

editors/code/src/commands/inlay_hints.ts

Lines changed: 14 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,9 @@ 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(typeHintDecorationType, []);
5459
}
5560
}
5661
}
@@ -92,7 +97,10 @@ export class HintsUpdater {
9297

9398
this.drawnDecorations.set(documentUri, newDecorations);
9499

95-
if (this.getEditorDocumentUri(vscode.window.activeTextEditor) === documentUri) {
100+
if (
101+
this.getEditorDocumentUri(vscode.window.activeTextEditor) ===
102+
documentUri
103+
) {
96104
return editor.setDecorations(
97105
typeHintDecorationType,
98106
newDecorations

0 commit comments

Comments
 (0)