mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
notebook - composite editor announces active editor only if it has focus
This commit is contained in:
parent
1c8c9cf5f2
commit
9ac6ff7357
|
@ -136,7 +136,8 @@ export class NotebookEditorWidget extends Disposable implements INotebookEditor
|
|||
|
||||
get activeCodeEditor(): IEditor | undefined {
|
||||
const [focused] = this.list!.getFocusedElements();
|
||||
return this.renderedEditors.get(focused);
|
||||
const candidate = this.renderedEditors.get(focused);
|
||||
return candidate?.hasWidgetFocus() ? candidate : undefined;
|
||||
}
|
||||
|
||||
//#region Editor Core
|
||||
|
|
Loading…
Reference in a new issue