mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
add listener for celltype change (#17414)
This commit is contained in:
@@ -82,6 +82,9 @@ export class SplitCellAction extends CellActionBase {
|
|||||||
this._register(context.cell.onCurrentEditModeChanged(currentMode => {
|
this._register(context.cell.onCurrentEditModeChanged(currentMode => {
|
||||||
this.enabled = currentMode === CellEditModes.WYSIWYG ? false : true;
|
this.enabled = currentMode === CellEditModes.WYSIWYG ? false : true;
|
||||||
}));
|
}));
|
||||||
|
this._register(context.cell.notebookModel.onCellTypeChanged(_ => {
|
||||||
|
this.enabled = context.cell.currentMode === CellEditModes.WYSIWYG ? false : true;
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user