We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac6efe3 commit 508366eCopy full SHA for 508366e
1 file changed
src/vs/workbench/api/electron-browser/mainThreadWebview.ts
@@ -346,7 +346,7 @@ export class MainThreadWebview implements MainThreadWebviewShape {
346
private onEditorsChanged() {
347
const activeEditor = this._editorService.getActiveEditor();
348
let newActiveWebview: WebviewInput | undefined = undefined;
349
- if (activeEditor.input instanceof WebviewInput) {
+ if (activeEditor && activeEditor.input instanceof WebviewInput) {
350
for (const handle of map.keys(this._webviews)) {
351
const input = this._webviews.get(handle);
352
if (input.matches(activeEditor.input)) {
0 commit comments