mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -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.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