mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Merge from vscode 1ec43773e37997841c5af42b33ddb180e9735bf2
This commit is contained in:
@@ -206,7 +206,12 @@ export class WorkbenchContextKeysHandler extends Disposable {
|
||||
|
||||
if (activeEditorPane) {
|
||||
this.activeEditorContext.set(activeEditorPane.getId());
|
||||
this.activeEditorIsReadonly.set(activeEditorPane.input.isReadonly());
|
||||
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()}`);
|
||||
}
|
||||
} else {
|
||||
this.activeEditorContext.reset();
|
||||
this.activeEditorIsReadonly.reset();
|
||||
|
||||
Reference in New Issue
Block a user