Skip to content

Commit fca90fe

Browse files
Preserve focus when opening webview
Co-authored-by: John Murray <[email protected]>
1 parent 8c166ba commit fca90fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/documaticPreviewPanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class DocumaticPreviewPanel {
7373
const webviewFolderUri: vscode.Uri = vscode.Uri.joinPath(extensionUri, "webview");
7474

7575
// Create the documatic preview webview
76-
const panel = vscode.window.createWebviewPanel(this.viewType, `Preview ${clsname}.cls`, vscode.ViewColumn.Beside, {
76+
const panel = vscode.window.createWebviewPanel(this.viewType, `Preview ${clsname}.cls`, {preserveFocus: true, viewColumn: vscode.ViewColumn.Beside}, {
7777
enableScripts: true,
7878
enableCommandUris: true,
7979
localResourceRoots: [webviewFolderUri],

0 commit comments

Comments
 (0)