Skip to content

Commit

Permalink
Ensure results view is opened in column beside
Browse files Browse the repository at this point in the history
The results view will always open next to the current editor.
  • Loading branch information
aeisenberg committed Sep 29, 2022
1 parent afdc816 commit 9bd9322
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/ql-vscode/src/abstract-webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export abstract class AbstractWebview<ToMessage extends WebviewMessage, FromMess
this.panel = Window.createWebviewPanel(
config.viewId,
config.title,
{ viewColumn: ViewColumn.Active, preserveFocus: true },
{ viewColumn: config.viewColumn, preserveFocus: config.preserveFocus },
{
enableScripts: true,
enableFindWidget: true,
Expand Down
2 changes: 1 addition & 1 deletion extensions/ql-vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ async function activateWithInstalledDistribution(
item,
);
qhm.completeQuery(item, completedQueryInfo);
await showResultsForCompletedQuery(item as CompletedLocalQueryInfo, WebviewReveal.NotForced);
await showResultsForCompletedQuery(item as CompletedLocalQueryInfo, WebviewReveal.Forced);
// Note we must update the query history view after showing results as the
// display and sorting might depend on the number of results
} catch (e) {
Expand Down

0 comments on commit 9bd9322

Please sign in to comment.