Ensure results view is opened in column beside

The results view will always open next to the current editor.
This commit is contained in:
Andrew Eisenberg
2022-09-29 13:00:08 -07:00
parent afdc8164c8
commit 9bd932294a
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -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) {