We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9eeb84a + f0c3806 commit 90dcdfaCopy full SHA for 90dcdfa
vscode-lean4/src/infoview.ts
@@ -379,6 +379,8 @@ export class InfoProvider implements Disposable {
379
if (selection !== undefined) {
380
editor.revealRange(selection, TextEditorRevealType.InCenterIfOutsideViewport);
381
editor.selection = new Selection(selection.start, selection.end);
382
+ // ensure the text document has the keyboard focus.
383
+ void window.showTextDocument(editor.document, { viewColumn: editor.viewColumn, preserveFocus: false });
384
}
385
386
0 commit comments