mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-24 09:21:35 +01:00
Preserve focus when opening browser with non-agentic tool (#312344)
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@ export class OpenBrowserToolNonAgentic implements IToolImpl {
|
||||
logBrowserOpen(this.telemetryService, 'chatTool');
|
||||
|
||||
const browserUri = BrowserViewUri.forId(generateUuid());
|
||||
await this.editorService.openEditor({ resource: browserUri, options: { pinned: true, viewState: { url: params.url } } });
|
||||
await this.editorService.openEditor({ resource: browserUri, options: { pinned: true, preserveFocus: true, viewState: { url: params.url } } });
|
||||
|
||||
return {
|
||||
content: [{
|
||||
|
||||
Reference in New Issue
Block a user