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

@@ -3,7 +3,7 @@
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Component, Input, ViewChildren, QueryList, ChangeDetectorRef, forwardRef, Inject, ViewChild, ElementRef, ViewContainerRef, ComponentFactoryResolver } from '@angular/core';
import { ICellModel, INotebookModel, ISingleNotebookEditOperation, NotebookContentChange } from 'sql/workbench/services/notebook/browser/models/modelInterfaces';
import { ICellModel, INotebookModel, NotebookContentChange } from 'sql/workbench/services/notebook/browser/models/modelInterfaces';
import 'vs/css!./notebookViewsGrid';
import { CodeCellComponent } from 'sql/workbench/contrib/notebook/browser/cellViews/codeCell.component';
import { TextCellComponent } from 'sql/workbench/contrib/notebook/browser/cellViews/textCell.component';
@@ -37,6 +37,7 @@ import * as DOM from 'vs/base/browser/dom';
import { AnchorAlignment } from 'vs/base/browser/ui/contextview/contextview';
import { LabeledMenuItemActionItem } from 'sql/platform/actions/browser/menuEntryActionViewItem';
import { IActionViewItem } from 'vs/base/browser/ui/actionbar/actionbar';
import { INotebookEditOperation } from 'sql/workbench/api/common/extHostNotebookEditor';
export const NOTEBOOKVIEWS_SELECTOR: string = 'notebook-view-component';
@@ -104,7 +105,7 @@ export class NotebookViewComponent extends AngularDisposable implements INoteboo
let notebookEditor = this.notebookParams.input;
return this._editorService.visibleEditors.some(e => e.matches(notebookEditor));
}
executeEdits(edits: ISingleNotebookEditOperation[]): boolean {
executeEdits(edits: INotebookEditOperation[]): boolean {
throw new Error('Method not implemented.');
}
async runCell(cell: ICellModel): Promise<boolean> {