Skip to content

Commit 4d363c0

Browse files
committed
build fix for reorginization
Signed-off-by: Jonah Iden <[email protected]>
1 parent de66e7a commit 4d363c0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/notebook/src/browser/notebook-types.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ import {
2424
import { NotebookCell } from './view-model/notebook-cell-model';
2525

2626
export interface NotebookTextModelChangedEvent {
27-
readonly rawEvents: NotebookRawContentEvent[];
27+
readonly rawEvents: NotebookContentChangedEvent[];
2828
// readonly versionId: number;
2929
readonly synchronous?: boolean;
3030
readonly endSelectionState?: SelectionState;
3131
};
3232

33-
export type NotebookRawContentEvent = (NotebookCellsInitializeEvent<NotebookCell> | NotebookDocumentChangeMetadataEvent | NotebookCellContentChangeEvent |
33+
export type NotebookContentChangedEvent = (NotebookCellsInitializeEvent<NotebookCell> | NotebookDocumentChangeMetadataEvent | NotebookCellContentChangeEvent |
3434
NotebookCellsModelChangedEvent<NotebookCell> | NotebookCellsModelMoveEvent<NotebookCell> | NotebookOutputChangedEvent | NotebookOutputItemChangedEvent |
3535
NotebookCellsChangeLanguageEvent | NotebookCellsChangeMetadataEvent |
3636
NotebookCellsChangeInternalMetadataEvent | NotebookDocumentUnknownChangeEvent); // & { transient: boolean };
@@ -99,3 +99,8 @@ export interface SelectionIndexState {
9999
}
100100

101101
export type SelectionState = SelectionHandleState | SelectionIndexState;
102+
103+
export interface NotebookModelWillAddRemoveEvent {
104+
readonly newCellIds?: number[];
105+
readonly rawEvent: NotebookCellsModelChangedEvent<CellData>;
106+
};

packages/notebook/src/browser/view-model/notebook-model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
NotebookDocumentMetadata,
2424
NullablePartialNotebookCellInternalMetadata
2525
} from '../../common';
26-
import { NotebookTextModelChangedEvent, NotebookModelWillAddRemoveEvent } from '../notebook-types';
26+
import { NotebookContentChangedEvent, NotebookModelWillAddRemoveEvent } from '../notebook-types';
2727
import { NotebookSerializer } from '../service/notebook-service';
2828
import { FileService } from '@theia/filesystem/lib/browser/file-service';
2929
import { NotebookCellModel, NotebookCellModelFactory } from './notebook-cell-model';

0 commit comments

Comments
 (0)