mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
renames
This commit is contained in:
@@ -1148,8 +1148,8 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
NotebookRunState: extHostTypes.NotebookRunState,
|
||||
NotebookCellStatusBarAlignment: extHostTypes.NotebookCellStatusBarAlignment,
|
||||
NotebookEditorRevealType: extHostTypes.NotebookEditorRevealType,
|
||||
NotebookCellOutputList: extHostTypes.NotebookCellOutputList,
|
||||
NotebookCellOutput: extHostTypes.NotebookCellOutput,
|
||||
NotebookCellOutputItem: extHostTypes.NotebookCellOutputItem,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,13 +55,13 @@ class NotebookEditorCellEditBuilder implements vscode.NotebookEditorEdit {
|
||||
});
|
||||
}
|
||||
|
||||
replaceCellOutput(index: number, outputs: (vscode.NotebookCellOutputList | vscode.CellOutput)[]): void {
|
||||
replaceCellOutput(index: number, outputs: (vscode.NotebookCellOutput | vscode.CellOutput)[]): void {
|
||||
this._throwIfFinalized();
|
||||
this._collectedEdits.push({
|
||||
editType: CellEditType.Output,
|
||||
index,
|
||||
outputs: outputs.map(output => {
|
||||
if (extHostTypes.NotebookCellOutputList.isNotebookCellOutputList(output)) {
|
||||
if (extHostTypes.NotebookCellOutput.isNotebookCellOutputList(output)) {
|
||||
return addIdToOutput(NotebookCellOutputList.from(output));
|
||||
} else {
|
||||
return addIdToOutput(output);
|
||||
|
||||
@@ -1296,7 +1296,7 @@ export namespace LogLevel {
|
||||
}
|
||||
|
||||
export namespace NotebookCellOutputList {
|
||||
export function from(output: types.NotebookCellOutputList): IDisplayOutput {
|
||||
export function from(output: types.NotebookCellOutput): IDisplayOutput {
|
||||
|
||||
let data: { [key: string]: unknown; } = {};
|
||||
let custom: { [key: string]: unknown; } = {};
|
||||
@@ -1318,7 +1318,7 @@ export namespace NotebookCellOutputList {
|
||||
}
|
||||
|
||||
export namespace NotebookCellOutput {
|
||||
export function from(output: types.NotebookCellOutput): IDisplayOutput {
|
||||
export function from(output: types.NotebookCellOutputItem): IDisplayOutput {
|
||||
return {
|
||||
outputKind: CellOutputKind.Rich,
|
||||
data: { [output.mime]: output.value },
|
||||
|
||||
@@ -2772,10 +2772,10 @@ export enum ColorThemeKind {
|
||||
|
||||
//#region Notebook
|
||||
|
||||
export class NotebookCellOutput {
|
||||
export class NotebookCellOutputItem {
|
||||
|
||||
static isNotebookCellOutput(obj: unknown): obj is vscode.NotebookCellOutput {
|
||||
return obj instanceof NotebookCellOutput;
|
||||
static isNotebookCellOutput(obj: unknown): obj is vscode.NotebookCellOutputItem {
|
||||
return obj instanceof NotebookCellOutputItem;
|
||||
}
|
||||
|
||||
constructor(
|
||||
@@ -2785,14 +2785,14 @@ export class NotebookCellOutput {
|
||||
) { }
|
||||
}
|
||||
|
||||
export class NotebookCellOutputList {
|
||||
export class NotebookCellOutput {
|
||||
|
||||
static isNotebookCellOutputList(obj: unknown): obj is vscode.NotebookCellOutputList {
|
||||
return obj instanceof NotebookCellOutputList;
|
||||
static isNotebookCellOutputList(obj: unknown): obj is vscode.NotebookCellOutput {
|
||||
return obj instanceof NotebookCellOutput;
|
||||
}
|
||||
|
||||
constructor(
|
||||
readonly outputs: NotebookCellOutput[],
|
||||
readonly outputs: NotebookCellOutputItem[],
|
||||
readonly metadata?: Record<string, string | number | boolean>
|
||||
) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user