Skip to content

Commit 438a7e3

Browse files
authored
Fix SwitchHeaderSource with RevealIfOpen (#6751)
1 parent 4ae2f00 commit 438a7e3

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -806,14 +806,9 @@ function onSwitchHeaderSource(): void {
806806
vscode.window.showTextDocument(document, editor.viewColumn);
807807
}
808808
});
809-
// TODO: Handle non-visibleTextEditor...not sure how yet.
809+
810810
if (!foundEditor) {
811-
if (vscode.window.activeTextEditor !== undefined) {
812-
// TODO: Change to show it in a different column?
813-
vscode.window.showTextDocument(document, vscode.window.activeTextEditor.viewColumn);
814-
} else {
815-
vscode.window.showTextDocument(document);
816-
}
811+
vscode.window.showTextDocument(document);
817812
}
818813
});
819814
});

0 commit comments

Comments
 (0)