提交 84b5597e 编写于 作者: M Matt Bierner

Add extra guard for accessing property

Fixes #93219
上级 c1849cf3
......@@ -306,7 +306,7 @@ export class CustomEditorService extends Disposable implements ICustomEditorServ
private updateContexts() {
const activeEditorPane = this.editorService.activeEditorPane;
const resource = activeEditorPane?.input.resource;
const resource = activeEditorPane?.input?.resource;
if (!resource) {
this._customEditorContextKey.reset();
this._focusedCustomEditorIsEditable.reset();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册