remove dedicated types for notebook and cell metadata

This commit is contained in:
Johannes Rieken
2021-06-01 14:50:53 +02:00
parent 6a02e8333c
commit 545b931b96
13 changed files with 55 additions and 249 deletions

View File

@@ -40,7 +40,7 @@ class NotebookEditorCellEditBuilder implements vscode.NotebookEditorEdit {
}
}
replaceMetadata(value: vscode.NotebookDocumentMetadata): void {
replaceMetadata(value: { [key: string]: any }): void {
this._throwIfFinalized();
this._collectedEdits.push({
editType: CellEditType.DocumentMetadata,
@@ -48,7 +48,7 @@ class NotebookEditorCellEditBuilder implements vscode.NotebookEditorEdit {
});
}
replaceCellMetadata(index: number, metadata: vscode.NotebookCellMetadata): void {
replaceCellMetadata(index: number, metadata: Record<string, any>): void {
this._throwIfFinalized();
this._collectedEdits.push({
editType: CellEditType.Metadata,