mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 01:29:04 +01:00
@@ -62,7 +62,7 @@ export function activate(context: vscode.ExtensionContext): any {
|
||||
|
||||
context.subscriptions.push(vscode.notebook.registerNotebookKernel('notebookKernelTest', ['*.vsctestnb'], {
|
||||
label: 'Notebook Test Kernel',
|
||||
executeAllCells: async (_document: vscode.NotebookDocument, _token: vscode.CancellationToken) => {
|
||||
executeAllCells: async (_document: vscode.NotebookDocument) => {
|
||||
let cell = _document.cells[0];
|
||||
|
||||
cell.outputs = [{
|
||||
@@ -73,7 +73,8 @@ export function activate(context: vscode.ExtensionContext): any {
|
||||
}];
|
||||
return;
|
||||
},
|
||||
executeCell: async (document: vscode.NotebookDocument, cell: vscode.NotebookCell | undefined, _token: vscode.CancellationToken) => {
|
||||
cancelAllCellsExecution: async (_document: vscode.NotebookDocument) => { },
|
||||
executeCell: async (document: vscode.NotebookDocument, cell: vscode.NotebookCell | undefined) => {
|
||||
if (!cell) {
|
||||
cell = document.cells[0];
|
||||
}
|
||||
@@ -113,7 +114,8 @@ export function activate(context: vscode.ExtensionContext): any {
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
},
|
||||
cancelCellExecution: async (_document: vscode.NotebookDocument, _cell: vscode.NotebookCell) => { }
|
||||
}));
|
||||
|
||||
const preloadUri = vscode.Uri.file(path.resolve(__dirname, '../src/customRenderer.js'));
|
||||
|
||||
Reference in New Issue
Block a user