提交 9aaae201 编写于 作者: B Benjamin Pasero

debt - fix TODO for contextkey computation

上级 b83339a3
......@@ -206,12 +206,7 @@ export class WorkbenchContextKeysHandler extends Disposable {
if (activeEditorPane) {
this.activeEditorContext.set(activeEditorPane.getId());
try {
this.activeEditorIsReadonly.set(activeEditorPane.input.isReadonly());
} catch (error) {
// TODO@ben for https://github.com/microsoft/vscode/issues/93224
throw new Error(`${error.message}: editor id ${activeEditorPane.getId()}`);
}
this.activeEditorIsReadonly.set(activeEditorPane.input.isReadonly());
} else {
this.activeEditorContext.reset();
this.activeEditorIsReadonly.reset();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册