src/vs/workbench/api/browser/mainThreadNotebookKernels.ts/MainThreadNotebookKernels/$applyExecutionEdits
class MainThreadNotebookKernels:	async $applyExecutionEdits(resource: UriComponents, cellEdits: CellExecuteEditDto[]): Promise<void> {
		const textModel = this._notebookService.getNotebookTextModel(URI.from(resource));
		if (!textModel) {
			throw new Error(`Can't apply edits to unknown notebook model: ${URI.revive(resource).toString()}`);
		}

		const edits = cellEdits.map(NotebookDto.fromCellExecuteEditDto);

		try {
			textModel.applyEdits(edits, true, undefined, () => undefined, undefined, false);
		} catch (e) {
			// Clearing outputs at the same time as the EH calling append/replaceOutputItems is an expected race, and it should be a no-op.
			// And any other failure should not throw back to the extension.
			onUnexpectedError(e);
		}
	}