Remove MenuItemActions to simplify action registration code

This commit is contained in:
Rob Lourens
2020-03-20 18:58:02 -07:00
parent a0d07dcf6e
commit 2b64615227
11 changed files with 130 additions and 327 deletions

View File

@@ -241,7 +241,7 @@ export class MainThreadNotebookController implements IMainNotebookController {
async createRawCell(uri: URI, index: number, language: string, type: CellKind): Promise<NotebookCellTextModel | undefined> {
let cell = await this._proxy.$createEmptyCell(this._viewType, uri, index, language, type);
if (cell) {
let mainCell = new NotebookCellTextModel(URI.revive(cell.uri), cell.handle, cell.source, cell.language, cell.cellKind, cell.outputs);
let mainCell = new NotebookCellTextModel(URI.revive(cell.uri), cell.handle, cell.source, cell.language, cell.cellKind, cell.outputs, cell.metadata);
return mainCell;
}