mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Support for arbitrary notebook kernel execution (#179258)
For https://github.com/microsoft/vscode-jupyter/issues/13275 * Support for arbitrary notebook kernel execution
This commit is contained in:
@@ -33,7 +33,7 @@ import { CellKind, ICell, INotebookSearchOptions, ISelectionState, NotebookCells
|
||||
import { cellIndexesToRanges, cellRangesToIndexes, ICellRange, reduceCellRanges } from 'vs/workbench/contrib/notebook/common/notebookRange';
|
||||
import { NotebookLayoutInfo, NotebookMetadataChangedEvent } from 'vs/workbench/contrib/notebook/browser/notebookViewEvents';
|
||||
import { CellFindMatchModel } from 'vs/workbench/contrib/notebook/browser/contrib/find/findModel';
|
||||
import { INotebookExecutionStateService } from 'vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
||||
import { INotebookExecutionStateService, NotebookExecutionType } from 'vs/workbench/contrib/notebook/common/notebookExecutionStateService';
|
||||
|
||||
const invalidFunc = () => { throw new Error(`Invalid change accessor`); };
|
||||
|
||||
@@ -320,7 +320,10 @@ export class NotebookViewModel extends Disposable implements EditorFoldingStateD
|
||||
}
|
||||
}));
|
||||
|
||||
this._register(notebookExecutionStateService.onDidChangeCellExecution(e => {
|
||||
this._register(notebookExecutionStateService.onDidChangeExecution(e => {
|
||||
if (e.type !== NotebookExecutionType.cell) {
|
||||
return;
|
||||
}
|
||||
const cell = this.getCellByHandle(e.cellHandle);
|
||||
|
||||
if (cell instanceof CodeCellViewModel) {
|
||||
|
||||
Reference in New Issue
Block a user