mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
rename type, add jsdoc https://github.com/microsoft/vscode/issues/144662
This commit is contained in:
parent
701ca68369
commit
a9c39c582c
|
@ -218,11 +218,11 @@ export class ExtHostNotebookDocument {
|
|||
const result = {
|
||||
notebook: this.apiNotebook,
|
||||
metadata: newMetadata,
|
||||
cellChanges: <vscode.NotebookDocumentContentCellChange[]>[],
|
||||
cellChanges: <vscode.NotebookDocumentCellChange[]>[],
|
||||
contentChanges: <vscode.NotebookDocumentContentChange[]>[],
|
||||
};
|
||||
|
||||
type RelaxedCellChange = Partial<vscode.NotebookDocumentContentCellChange> & { cell: vscode.NotebookCell };
|
||||
type RelaxedCellChange = Partial<vscode.NotebookDocumentCellChange> & { cell: vscode.NotebookCell };
|
||||
const relaxedCellChanges: RelaxedCellChange[] = [];
|
||||
|
||||
// -- apply change and populate content changes
|
||||
|
|
|
@ -12,7 +12,7 @@ declare module 'vscode' {
|
|||
*
|
||||
* @see {@link NotebookDocumentChangeEvent}
|
||||
*/
|
||||
export interface NotebookDocumentContentCellChange {
|
||||
export interface NotebookDocumentCellChange {
|
||||
|
||||
/**
|
||||
* The affected notebook.
|
||||
|
@ -44,7 +44,7 @@ declare module 'vscode' {
|
|||
}
|
||||
|
||||
/**
|
||||
* Describes a structural change to a notebook document.
|
||||
* Describes a structural change to a notebook document, e.g new added and removed cells.
|
||||
*
|
||||
* @see {@link NotebookDocumentChangeEvent}
|
||||
*/
|
||||
|
@ -52,6 +52,9 @@ declare module 'vscode' {
|
|||
|
||||
/**
|
||||
* The range at which cells have been either added or removed.
|
||||
*
|
||||
* Note that no cells have been {@link NotebookDocumentContentChange.removedCells removed}
|
||||
* when this range is {@link NotebookRange.isEmpty empty}.
|
||||
*/
|
||||
readonly range: NotebookRange;
|
||||
|
||||
|
@ -87,9 +90,9 @@ declare module 'vscode' {
|
|||
readonly contentChanges: readonly NotebookDocumentContentChange[];
|
||||
|
||||
/**
|
||||
* An array of {@link NotebookDocumentContentCellChange cell changes}.
|
||||
* An array of {@link NotebookDocumentCellChange cell changes}.
|
||||
*/
|
||||
readonly cellChanges: readonly NotebookDocumentContentCellChange[];
|
||||
readonly cellChanges: readonly NotebookDocumentCellChange[];
|
||||
}
|
||||
|
||||
export namespace workspace {
|
||||
|
|
Loading…
Reference in a new issue