|
5 | 5 |
|
6 | 6 | import { VSBuffer } from 'vs/base/common/buffer';
|
7 | 7 | import { CancellationToken } from 'vs/base/common/cancellation';
|
8 |
| -import { IDiffResult, ISequence } from 'vs/base/common/diff/diff'; |
| 8 | +import { IDiffResult } from 'vs/base/common/diff/diff'; |
9 | 9 | import { Event } from 'vs/base/common/event';
|
10 | 10 | import * as glob from 'vs/base/common/glob';
|
11 | 11 | import { Iterable } from 'vs/base/common/iterator';
|
@@ -763,7 +763,7 @@ export interface INotebookEditorModel extends IEditorModel {
|
763 | 763 | readonly onDidChangeReadonly: Event<void>;
|
764 | 764 | readonly resource: URI;
|
765 | 765 | readonly viewType: string;
|
766 |
| - readonly notebook: NotebookTextModel | undefined; |
| 766 | + readonly notebook: INotebookTextModel | undefined; |
767 | 767 | isResolved(): this is IResolvedNotebookEditorModel;
|
768 | 768 | isDirty(): boolean;
|
769 | 769 | isReadonly(): boolean;
|
@@ -857,20 +857,6 @@ export interface INotebookCellStatusBarItemProvider {
|
857 | 857 | provideCellStatusBarItems(uri: URI, index: number, token: CancellationToken): Promise<INotebookCellStatusBarItemList | undefined>;
|
858 | 858 | }
|
859 | 859 |
|
860 |
| -export class CellSequence implements ISequence { |
861 |
| - |
862 |
| - constructor(readonly textModel: NotebookTextModel) { |
863 |
| - } |
864 |
| - |
865 |
| - getElements(): string[] | number[] | Int32Array { |
866 |
| - const hashValue = new Int32Array(this.textModel.cells.length); |
867 |
| - for (let i = 0; i < this.textModel.cells.length; i++) { |
868 |
| - hashValue[i] = this.textModel.cells[i].getHashValue(); |
869 |
| - } |
870 |
| - |
871 |
| - return hashValue; |
872 |
| - } |
873 |
| -} |
874 | 860 |
|
875 | 861 | export interface INotebookDiffResult {
|
876 | 862 | cellsDiff: IDiffResult;
|
|
0 commit comments