Skip to content

Commit

Permalink
not blocking the results pop-out on the prompt response (#18429) (#18430
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Benjin authored Nov 16, 2024
1 parent 77b8bbe commit 8547d42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/queryResult/queryResultWebViewController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ export class QueryResultWebviewController extends ReactWebviewViewController<

private registerRpcHandlers() {
this.registerRequestHandler("openInNewTab", async (message) => {
void this.createPanelController(message.uri);

if (this.shouldShowDefaultQueryResultToDocumentPrompt) {
const response =
await this._vscodeWrapper.showInformationMessage(
Expand Down Expand Up @@ -161,7 +163,6 @@ export class QueryResultWebviewController extends ReactWebviewViewController<
vscode.ConfigurationTarget.Global,
);
}
await this.createPanelController(message.uri);
});
this.registerRequestHandler("getWebviewLocation", async () => {
return qr.QueryResultWebviewLocation.Panel;
Expand Down

0 comments on commit 8547d42

Please sign in to comment.