mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
d253ab2adc
commit
c0c052077c
|
@ -160,7 +160,7 @@ export abstract class NotebookAction extends Action2 {
|
|||
return !!context && !!(context as INotebookActionContext).notebookEditor;
|
||||
}
|
||||
|
||||
protected getEditorContextFromArgsOrActive(accessor: ServicesAccessor, context?: any, ...additionalArgs: any[]): INotebookActionContext | undefined {
|
||||
getEditorContextFromArgsOrActive(accessor: ServicesAccessor, context?: any, ...additionalArgs: any[]): INotebookActionContext | undefined {
|
||||
return getContextFromActiveEditor(accessor.get(IEditorService));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ export abstract class CellContentPart extends Disposable {
|
|||
this.didRenderCell(element);
|
||||
}
|
||||
|
||||
protected didRenderCell(element: ICellViewModel): void { }
|
||||
didRenderCell(element: ICellViewModel): void { }
|
||||
|
||||
/**
|
||||
* Dispose any disposables generated from `didRenderCell`
|
||||
|
@ -94,7 +94,7 @@ export abstract class CellOverlayPart extends Disposable {
|
|||
this.didRenderCell(element);
|
||||
}
|
||||
|
||||
protected didRenderCell(element: ICellViewModel): void { }
|
||||
didRenderCell(element: ICellViewModel): void { }
|
||||
|
||||
/**
|
||||
* Dispose any disposables generated from `didRenderCell`
|
||||
|
|
|
@ -152,7 +152,7 @@ export class CellComments extends CellContentPart {
|
|||
this._commentThreadWidget?.applyTheme(theme, fontInfo);
|
||||
}
|
||||
|
||||
protected override didRenderCell(element: ICellViewModel): void {
|
||||
override didRenderCell(element: ICellViewModel): void {
|
||||
if (element.cellKind === CellKind.Code) {
|
||||
this.currentElement = element as CodeCellViewModel;
|
||||
this.initialize(element);
|
||||
|
|
|
@ -27,7 +27,7 @@ export class CellContextKeyPart extends CellContentPart {
|
|||
this.cellContextKeyManager = this._register(this.instantiationService.createInstance(CellContextKeyManager, notebookEditor, undefined));
|
||||
}
|
||||
|
||||
protected override didRenderCell(element: ICellViewModel): void {
|
||||
override didRenderCell(element: ICellViewModel): void {
|
||||
this.cellContextKeyManager.updateForElement(element);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ export class CellDecorations extends CellContentPart {
|
|||
super();
|
||||
}
|
||||
|
||||
protected override didRenderCell(element: ICellViewModel): void {
|
||||
override didRenderCell(element: ICellViewModel): void {
|
||||
const removedClassNames: string[] = [];
|
||||
this.rootContainer.classList.forEach(className => {
|
||||
if (/^nb\-.*$/.test(className)) {
|
||||
|
|
|
@ -37,7 +37,7 @@ export class CellDragAndDropPart extends CellContentPart {
|
|||
super();
|
||||
}
|
||||
|
||||
protected override didRenderCell(element: ICellViewModel): void {
|
||||
override didRenderCell(element: ICellViewModel): void {
|
||||
this.update(element);
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ export class CellExecutionPart extends CellContentPart {
|
|||
}));
|
||||
}
|
||||
|
||||
protected override didRenderCell(element: ICellViewModel): void {
|
||||
override didRenderCell(element: ICellViewModel): void {
|
||||
this.updateExecutionOrder(element.internalMetadata, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ export class BetweenCellToolbar extends CellOverlayPart {
|
|||
return betweenCellToolbar;
|
||||
}
|
||||
|
||||
protected override didRenderCell(element: ICellViewModel): void {
|
||||
override didRenderCell(element: ICellViewModel): void {
|
||||
const betweenCellToolbar = this._initialize();
|
||||
betweenCellToolbar.context = <INotebookCellActionContext>{
|
||||
ui: true,
|
||||
|
|
|
@ -169,7 +169,7 @@ export class NotebooKernelActionViewItem extends ActionViewItem {
|
|||
this.updateLabel();
|
||||
}
|
||||
|
||||
override updateLabel() {
|
||||
protected override updateLabel() {
|
||||
if (this._kernelLabel) {
|
||||
this._kernelLabel.classList.add('kernel-label');
|
||||
this._kernelLabel.innerText = this._action.label;
|
||||
|
|
Loading…
Reference in a new issue