mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
Consolidate INotebookEditOperation interfaces (#17944)
This commit is contained in:
@@ -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[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user