mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
parent
979deab20b
commit
3e5253b143
|
@ -18,7 +18,6 @@
|
|||
"findTextInFiles",
|
||||
"fsChunks",
|
||||
"notebookCellExecutionState",
|
||||
"notebookControllerKind",
|
||||
"notebookDeprecated",
|
||||
"notebookLiveShare",
|
||||
"notebookMessaging",
|
||||
|
|
|
@ -34,7 +34,6 @@ abstract class MainThreadKernel implements INotebookKernel {
|
|||
label: string;
|
||||
description?: string;
|
||||
detail?: string;
|
||||
kind?: string;
|
||||
supportedLanguages: string[];
|
||||
implementsExecutionOrder: boolean;
|
||||
localResourceRoot: URI;
|
||||
|
@ -56,7 +55,6 @@ abstract class MainThreadKernel implements INotebookKernel {
|
|||
this.label = data.label;
|
||||
this.description = data.description;
|
||||
this.detail = data.detail;
|
||||
this.kind = data.kind;
|
||||
this.supportedLanguages = isNonEmptyArray(data.supportedLanguages) ? data.supportedLanguages : _languageService.getRegisteredLanguageIds();
|
||||
this.implementsExecutionOrder = data.supportsExecutionOrder ?? false;
|
||||
this.localResourceRoot = URI.revive(data.extensionLocation);
|
||||
|
@ -79,10 +77,6 @@ abstract class MainThreadKernel implements INotebookKernel {
|
|||
this.detail = data.detail;
|
||||
event.detail = true;
|
||||
}
|
||||
if (data.kind !== undefined) {
|
||||
this.kind = data.kind;
|
||||
event.kind = true;
|
||||
}
|
||||
if (data.supportedLanguages !== undefined) {
|
||||
this.supportedLanguages = isNonEmptyArray(data.supportedLanguages) ? data.supportedLanguages : this._languageService.getRegisteredLanguageIds();
|
||||
event.supportedLanguages = true;
|
||||
|
|
|
@ -1006,7 +1006,6 @@ export interface INotebookKernelDto2 {
|
|||
label: string;
|
||||
detail?: string;
|
||||
description?: string;
|
||||
kind?: string;
|
||||
supportedLanguages?: string[];
|
||||
supportsInterrupt?: boolean;
|
||||
supportsExecutionOrder?: boolean;
|
||||
|
|
|
@ -178,15 +178,6 @@ export class ExtHostNotebookKernels implements ExtHostNotebookKernelsShape {
|
|||
data.description = value;
|
||||
_update();
|
||||
},
|
||||
get kind() {
|
||||
checkProposedApiEnabled(extension, 'notebookControllerKind');
|
||||
return data.kind ?? '';
|
||||
},
|
||||
set kind(value) {
|
||||
checkProposedApiEnabled(extension, 'notebookControllerKind');
|
||||
data.kind = value;
|
||||
_update();
|
||||
},
|
||||
get supportedLanguages() {
|
||||
return data.supportedLanguages;
|
||||
},
|
||||
|
|
|
@ -69,7 +69,6 @@ CommandsRegistry.registerCommand('_resolveNotebookKernels', async (accessor, arg
|
|||
return kernels.all.map(provider => ({
|
||||
id: provider.id,
|
||||
label: provider.label,
|
||||
kind: provider.kind,
|
||||
description: provider.description,
|
||||
detail: provider.detail,
|
||||
isPreferred: false, // todo@jrieken,@rebornix
|
||||
|
|
|
@ -30,7 +30,6 @@ export interface INotebookKernelChangeEvent {
|
|||
label?: true;
|
||||
description?: true;
|
||||
detail?: true;
|
||||
kind?: true;
|
||||
supportedLanguages?: true;
|
||||
hasExecutionOrder?: true;
|
||||
hasInterruptHandler?: true;
|
||||
|
@ -49,7 +48,6 @@ export interface INotebookKernel {
|
|||
label: string;
|
||||
description?: string;
|
||||
detail?: string;
|
||||
kind?: string;
|
||||
supportedLanguages: string[];
|
||||
implementsInterrupt?: boolean;
|
||||
implementsExecutionOrder?: boolean;
|
||||
|
|
|
@ -181,7 +181,6 @@ class TestNotebookKernel implements INotebookKernel {
|
|||
constructor(opts?: { languages: string[] }) {
|
||||
this.supportedLanguages = opts?.languages ?? [PLAINTEXT_LANGUAGE_ID];
|
||||
}
|
||||
kind?: string | undefined;
|
||||
implementsInterrupt?: boolean | undefined;
|
||||
implementsExecutionOrder?: boolean | undefined;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,6 @@ export const allApiProposals = Object.freeze({
|
|||
ipc: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.ipc.d.ts',
|
||||
notebookCellExecutionState: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts',
|
||||
notebookControllerAffinityHidden: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts',
|
||||
notebookControllerKind: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookControllerKind.d.ts',
|
||||
notebookDeprecated: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookDeprecated.d.ts',
|
||||
notebookKernelSource: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookKernelSource.d.ts',
|
||||
notebookLiveShare: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.notebookLiveShare.d.ts',
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'vscode' {
|
||||
|
||||
// https://github.com/microsoft/vscode-jupyter/issues/7373
|
||||
|
||||
export interface NotebookController {
|
||||
/**
|
||||
* The human-readable label used to categorise controllers.
|
||||
*/
|
||||
kind?: string;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue