differenciate onFocusWidget and onFocusWebview.

This commit is contained in:
rebornix
2021-11-12 14:35:50 -08:00
parent ad88550b9e
commit 8fdb5bc4e6
5 changed files with 8 additions and 8 deletions

View File

@@ -131,7 +131,7 @@ export class MainThreadNotebooksAndEditors {
private _handleEditorAdd(editor: INotebookEditor): void {
this._editorListeners.set(editor.getId(), combinedDisposable(
editor.onDidChangeModel(() => this._updateState()),
editor.onDidFocus(() => this._updateState(editor)),
editor.onDidFocusWidget(() => this._updateState(editor)),
));
this._updateState();
}