We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4700994 commit eb1dd49Copy full SHA for eb1dd49
src/vs/workbench/contrib/interactiveEditor/browser/interactiveEditorController.ts
@@ -555,7 +555,11 @@ export class InteractiveEditorController implements IEditorContribution {
555
this._ctxLastFeedbackKind.reset();
556
557
this._zone.hide();
558
- this._editor.focus();
+
559
+ // Return focus to the editor only if the current focus is within the editor widget
560
+ if (this._editor.hasWidgetFocus()) {
561
+ this._editor.focus();
562
+ }
563
564
this._sessionStore?.dispose();
565
this._sessionStore = undefined;
0 commit comments