ignore transient metadata in diff editor.

This commit is contained in:
rebornix
2020-08-26 10:14:47 -07:00
parent 7c986e94f4
commit e88c040df7
10 changed files with 57 additions and 74 deletions

View File

@@ -428,9 +428,9 @@ export class ExtHostNotebookDocument extends Disposable {
this._emitter.emitCellLanguageChange(event);
}
private _changeCellMetadata(index: number, newMetadata: NotebookCellMetadata): void {
private _changeCellMetadata(index: number, newMetadata: NotebookCellMetadata | undefined): void {
const cell = this._cells[index];
cell.setMetadata(newMetadata);
cell.setMetadata(newMetadata || {});
const event: vscode.NotebookCellMetadataChangeEvent = { document: this.notebookDocument, cell: cell.cell };
this._emitter.emitCellMetadataChange(event);
}