Consolidate INotebookEditOperation interfaces (#17944)

This commit is contained in:
Charles Gagnon
2021-12-17 14:21:52 -08:00
committed by GitHub
parent 2a681605fa
commit 2bef6d36b0
3 changed files with 10 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ import { QueryResultId } from 'sql/workbench/services/notebook/browser/models/ce
import { IPosition } from 'vs/editor/common/core/position';
import * as TelemetryKeys from 'sql/platform/telemetry/common/telemetryKeys';
import { ITelemetryEventProperties } from 'sql/platform/telemetry/common/telemetry';
import { INotebookEditOperation } from 'sql/workbench/api/common/extHostNotebookEditor';
export enum ViewMode {
@@ -38,12 +39,6 @@ export interface ICellRange {
readonly end: number;
}
export interface ISingleNotebookEditOperation {
range: ICellRange;
cell: Partial<nb.ICellContents>;
forceMoveMarkers: boolean;
}
export interface IClientSessionOptions {
notebookUri: URI;
executeManager: IExecuteManager;
@@ -421,7 +416,7 @@ export interface INotebookModel {
* editing the model. Long-term, this will ensure edit operations can be added to the undo stack
* @param edits The edit operations to perform
*/
pushEditOperations(edits: ISingleNotebookEditOperation[]): void;
pushEditOperations(edits: INotebookEditOperation[]): void;
getApplicableConnectionProviderIds(kernelName: string): string[];