@codingame/monaco-vscode-rollup-vsix-plugin 11.1.1 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -6
- package/rollup-vsix-plugin.d.ts +1597 -2
- package/rollup-vsix-plugin.js +265 -219
- package/vscode/src/vs/base/common/jsonSchema.d.ts +0 -90
- package/vscode/src/vs/platform/action/common/action.d.ts +0 -12
- package/vscode/src/vs/platform/environment/common/environment.d.ts +0 -8
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1494
- package/vscode-dts/vscode.proposed.activeComment.d.ts +0 -23
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +0 -49
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +0 -71
- package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +0 -40
- package/vscode-dts/vscode.proposed.attributableCoverage.d.ts +0 -46
- package/vscode-dts/vscode.proposed.authLearnMore.d.ts +0 -16
- package/vscode-dts/vscode.proposed.authSession.d.ts +0 -13
- package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +0 -47
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +0 -391
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +0 -119
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +0 -90
- package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +0 -33
- package/vscode-dts/vscode.proposed.chatTab.d.ts +0 -17
- package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +0 -110
- package/vscode-dts/vscode.proposed.codeActionAI.d.ts +0 -16
- package/vscode-dts/vscode.proposed.codeActionRanges.d.ts +0 -15
- package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +0 -48
- package/vscode-dts/vscode.proposed.commentReactor.d.ts +0 -13
- package/vscode-dts/vscode.proposed.commentReveal.d.ts +0 -45
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +0 -40
- package/vscode-dts/vscode.proposed.commentingRangeHint.d.ts +0 -16
- package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +0 -18
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +0 -15
- package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +0 -10
- package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribCommentsViewThreadMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribDiffEditorGutterToolBarMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribIssueReporter.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribMultiDiffEditorMenus.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryTitleMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribViewContainerTitle.d.ts +0 -8
- package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +0 -6
- package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +0 -6
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +0 -51
- package/vscode-dts/vscode.proposed.customEditorMove.d.ts +0 -29
- package/vscode-dts/vscode.proposed.debugVisualization.d.ts +0 -170
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -63
- package/vscode-dts/vscode.proposed.diffCommand.d.ts +0 -38
- package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +0 -16
- package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +0 -13
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -297
- package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +0 -71
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +0 -76
- package/vscode-dts/vscode.proposed.editorInsets.d.ts +0 -22
- package/vscode-dts/vscode.proposed.embeddings.d.ts +0 -33
- package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +0 -24
- package/vscode-dts/vscode.proposed.extensionsAny.d.ts +0 -41
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +0 -163
- package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +0 -73
- package/vscode-dts/vscode.proposed.fileSearchProviderNew.d.ts +0 -101
- package/vscode-dts/vscode.proposed.findFiles2.d.ts +0 -89
- package/vscode-dts/vscode.proposed.findFiles2New.d.ts +0 -105
- package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +0 -104
- package/vscode-dts/vscode.proposed.findTextInFilesNew.d.ts +0 -164
- package/vscode-dts/vscode.proposed.fsChunks.d.ts +0 -16
- package/vscode-dts/vscode.proposed.idToken.d.ts +0 -16
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +0 -95
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -88
- package/vscode-dts/vscode.proposed.interactive.d.ts +0 -11
- package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +0 -25
- package/vscode-dts/vscode.proposed.ipc.d.ts +0 -37
- package/vscode-dts/vscode.proposed.languageModelSystem.d.ts +0 -17
- package/vscode-dts/vscode.proposed.languageStatusText.d.ts +0 -12
- package/vscode-dts/vscode.proposed.lmTools.d.ts +0 -9
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +0 -87
- package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +0 -63
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +0 -47
- package/vscode-dts/vscode.proposed.notebookCellExecution.d.ts +0 -44
- package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +0 -52
- package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +0 -17
- package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +0 -16
- package/vscode-dts/vscode.proposed.notebookExecution.d.ts +0 -39
- package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +0 -46
- package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +0 -21
- package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +0 -68
- package/vscode-dts/vscode.proposed.notebookMime.d.ts +0 -33
- package/vscode-dts/vscode.proposed.notebookReplDocument.d.ts +0 -33
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +0 -55
- package/vscode-dts/vscode.proposed.portsAttributes.d.ts +0 -100
- package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +0 -19
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +0 -17
- package/vscode-dts/vscode.proposed.quickInputButtonLocation.d.ts +0 -29
- package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +0 -16
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +0 -19
- package/vscode-dts/vscode.proposed.resolvers.d.ts +0 -475
- package/vscode-dts/vscode.proposed.scmActionButton.d.ts +0 -18
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +0 -88
- package/vscode-dts/vscode.proposed.scmMultiDiffEditor.d.ts +0 -34
- package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +0 -22
- package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +0 -19
- package/vscode-dts/vscode.proposed.scmValidation.d.ts +0 -60
- package/vscode-dts/vscode.proposed.shareProvider.d.ts +0 -74
- package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
- package/vscode-dts/vscode.proposed.speech.d.ts +0 -74
- package/vscode-dts/vscode.proposed.tabInputMultiDiff.d.ts +0 -22
- package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +0 -25
- package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +0 -16
- package/vscode-dts/vscode.proposed.telemetry.d.ts +0 -36
- package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +0 -32
- package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +0 -39
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +0 -48
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +0 -87
- package/vscode-dts/vscode.proposed.terminalSelection.d.ts +0 -16
- package/vscode-dts/vscode.proposed.testObserver.d.ts +0 -199
- package/vscode-dts/vscode.proposed.testRelatedCode.d.ts +0 -36
- package/vscode-dts/vscode.proposed.textSearchCompleteNew.d.ts +0 -38
- package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +0 -281
- package/vscode-dts/vscode.proposed.textSearchProviderNew.d.ts +0 -275
- package/vscode-dts/vscode.proposed.timeline.d.ts +0 -163
- package/vscode-dts/vscode.proposed.tokenInformation.d.ts +0 -26
- package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +0 -30
- package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +0 -28
- package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +0 -13
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +0 -48
- package/vscode-dts/vscode.proposed.tunnels.d.ts +0 -64
- package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +0 -30
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
export interface LanguageStatusItem {
|
|
9
|
-
|
|
10
|
-
text2: string | { value: string; shortValue: string };
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
// version: 15
|
|
7
|
-
|
|
8
|
-
declare module 'vscode' {
|
|
9
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
export interface DocumentContextItem {
|
|
9
|
-
readonly uri: Uri;
|
|
10
|
-
readonly version: number;
|
|
11
|
-
readonly ranges: Range[];
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface ConversationRequest {
|
|
15
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
16
|
-
readonly type: 'request';
|
|
17
|
-
readonly message: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ConversationResponse {
|
|
21
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
22
|
-
readonly type: 'response';
|
|
23
|
-
readonly message: string;
|
|
24
|
-
readonly result?: ChatResult;
|
|
25
|
-
readonly references?: DocumentContextItem[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface MappedEditsContext {
|
|
29
|
-
readonly documents: DocumentContextItem[][];
|
|
30
|
-
/**
|
|
31
|
-
* The conversation that led to the current code block(s).
|
|
32
|
-
* The last conversation part contains the code block(s) for which the code mapper should provide edits.
|
|
33
|
-
*/
|
|
34
|
-
readonly conversation?: (ConversationRequest | ConversationResponse)[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Interface for providing mapped edits for a given document.
|
|
39
|
-
*/
|
|
40
|
-
export interface MappedEditsProvider {
|
|
41
|
-
/**
|
|
42
|
-
* Provide mapped edits for a given document.
|
|
43
|
-
* @param document The document to provide mapped edits for.
|
|
44
|
-
* @param codeBlocks Code blocks that come from an LLM's reply.
|
|
45
|
-
* "Apply in Editor" in the panel chat only sends one edit that the user clicks on, but inline chat can send multiple blocks and let the lang server decide what to do with them.
|
|
46
|
-
* @param context The context for providing mapped edits.
|
|
47
|
-
* @param token A cancellation token.
|
|
48
|
-
* @returns A provider result of text edits.
|
|
49
|
-
*/
|
|
50
|
-
provideMappedEdits(
|
|
51
|
-
document: TextDocument,
|
|
52
|
-
codeBlocks: string[],
|
|
53
|
-
context: MappedEditsContext,
|
|
54
|
-
token: CancellationToken
|
|
55
|
-
): ProviderResult<WorkspaceEdit | null>;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export interface MappedEditsRequest {
|
|
59
|
-
readonly codeBlocks: { code: string; resource: Uri; markdownBeforeBlock?: string }[];
|
|
60
|
-
readonly conversation: (ConversationRequest | ConversationResponse)[]; // for every prior response that contains codeblocks, make sure we pass the code as well as the resources based on the reported codemapper URIs
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export interface MappedEditsResponseStream {
|
|
64
|
-
textEdit(target: Uri, edits: TextEdit | TextEdit[]): void;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface MappedEditsResult {
|
|
68
|
-
readonly errorMessage?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Interface for providing mapped edits for a given document.
|
|
73
|
-
*/
|
|
74
|
-
export interface MappedEditsProvider2 {
|
|
75
|
-
provideMappedEdits(
|
|
76
|
-
request: MappedEditsRequest,
|
|
77
|
-
result: MappedEditsResponseStream,
|
|
78
|
-
token: CancellationToken
|
|
79
|
-
): ProviderResult<MappedEditsResult>;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
namespace chat {
|
|
83
|
-
export function registerMappedEditsProvider(documentSelector: DocumentSelector, provider: MappedEditsProvider): Disposable;
|
|
84
|
-
|
|
85
|
-
export function registerMappedEditsProvider2(provider: MappedEditsProvider2): Disposable;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Represents a collection of document highlights from multiple documents.
|
|
10
|
-
*/
|
|
11
|
-
export class MultiDocumentHighlight {
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The URI of the document containing the highlights.
|
|
15
|
-
*/
|
|
16
|
-
uri: Uri;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The highlights for the document.
|
|
20
|
-
*/
|
|
21
|
-
highlights: DocumentHighlight[];
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Creates a new instance of MultiDocumentHighlight.
|
|
25
|
-
* @param uri The URI of the document containing the highlights.
|
|
26
|
-
* @param highlights The highlights for the document.
|
|
27
|
-
*/
|
|
28
|
-
constructor(uri: Uri, highlights: DocumentHighlight[]);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface MultiDocumentHighlightProvider {
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Provide a set of document highlights, like all occurrences of a variable or
|
|
35
|
-
* all exit-points of a function.
|
|
36
|
-
*
|
|
37
|
-
* @param document The document in which the command was invoked.
|
|
38
|
-
* @param position The position at which the command was invoked.
|
|
39
|
-
* @param otherDocuments An array of additional valid documents for which highlights should be provided.
|
|
40
|
-
* @param token A cancellation token.
|
|
41
|
-
* @returns A Map containing a mapping of the Uri of a document to the document highlights or a thenable that resolves to such. The lack of a result can be
|
|
42
|
-
* signaled by returning `undefined`, `null`, or an empty map.
|
|
43
|
-
*/
|
|
44
|
-
provideMultiDocumentHighlights(document: TextDocument, position: Position, otherDocuments: TextDocument[], token: CancellationToken): ProviderResult<MultiDocumentHighlight[]>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
namespace languages {
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Register a multi document highlight provider.
|
|
51
|
-
*
|
|
52
|
-
* Multiple providers can be registered for a language. In that case providers are sorted
|
|
53
|
-
* by their {@link languages.match score} and groups sequentially asked for document highlights.
|
|
54
|
-
* The process stops when a provider returns a `non-falsy` or `non-failure` result.
|
|
55
|
-
*
|
|
56
|
-
* @param selector A selector that defines the documents this provider is applicable to.
|
|
57
|
-
* @param provider A multi-document highlight provider.
|
|
58
|
-
* @returns A {@link Disposable} that unregisters this provider when being disposed.
|
|
59
|
-
*/
|
|
60
|
-
export function registerMultiDocumentHighlightProvider(selector: DocumentSelector, provider: MultiDocumentHighlightProvider): Disposable;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
// https://github.com/microsoft/vscode/issues/204345 @ulugbekna
|
|
7
|
-
|
|
8
|
-
declare module 'vscode' {
|
|
9
|
-
|
|
10
|
-
export enum NewSymbolNameTag {
|
|
11
|
-
AIGenerated = 1
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export enum NewSymbolNameTriggerKind {
|
|
15
|
-
Invoke = 0,
|
|
16
|
-
Automatic = 1,
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export class NewSymbolName {
|
|
20
|
-
readonly newSymbolName: string;
|
|
21
|
-
readonly tags?: readonly NewSymbolNameTag[];
|
|
22
|
-
|
|
23
|
-
constructor(newSymbolName: string, tags?: readonly NewSymbolNameTag[]);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface NewSymbolNamesProvider {
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @default false
|
|
30
|
-
*/
|
|
31
|
-
readonly supportsAutomaticTriggerKind?: Thenable<boolean>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Provide possible new names for the symbol at the given range.
|
|
35
|
-
*
|
|
36
|
-
* @param document The document in which the symbol is defined.
|
|
37
|
-
* @param range The range that spans the symbol being renamed.
|
|
38
|
-
* @param token A cancellation token.
|
|
39
|
-
* @return A list of new symbol names.
|
|
40
|
-
*/
|
|
41
|
-
provideNewSymbolNames(document: TextDocument, range: Range, triggerKind: NewSymbolNameTriggerKind, token: CancellationToken): ProviderResult<NewSymbolName[]>;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export namespace languages {
|
|
45
|
-
export function registerNewSymbolNamesProvider(selector: DocumentSelector, provider: NewSymbolNamesProvider): Disposable;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
export interface NotebookCellExecution {
|
|
9
|
-
/**
|
|
10
|
-
* Signal that execution has ended.
|
|
11
|
-
*
|
|
12
|
-
* @param success If true, a green check is shown on the cell status bar.
|
|
13
|
-
* If false, a red X is shown.
|
|
14
|
-
* If undefined, no check or X icon is shown.
|
|
15
|
-
* @param endTime The time that execution finished, in milliseconds in the Unix epoch.
|
|
16
|
-
* @param error Details about an error that occurred during execution if any.
|
|
17
|
-
*/
|
|
18
|
-
end(success: boolean | undefined, endTime?: number, error?: CellExecutionError): void;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface CellExecutionError {
|
|
22
|
-
/**
|
|
23
|
-
* The error message.
|
|
24
|
-
*/
|
|
25
|
-
readonly message: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The error stack trace.
|
|
29
|
-
*/
|
|
30
|
-
readonly stack: string | undefined;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The cell resource which had the error.
|
|
34
|
-
*/
|
|
35
|
-
uri: Uri;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The location within the resource where the error occurred.
|
|
39
|
-
*/
|
|
40
|
-
readonly location: Range | undefined;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/124970
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The execution state of a notebook cell.
|
|
12
|
-
*/
|
|
13
|
-
export enum NotebookCellExecutionState {
|
|
14
|
-
/**
|
|
15
|
-
* The cell is idle.
|
|
16
|
-
*/
|
|
17
|
-
Idle = 1,
|
|
18
|
-
/**
|
|
19
|
-
* Execution for the cell is pending.
|
|
20
|
-
*/
|
|
21
|
-
Pending = 2,
|
|
22
|
-
/**
|
|
23
|
-
* The cell is currently executing.
|
|
24
|
-
*/
|
|
25
|
-
Executing = 3,
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* An event describing a cell execution state change.
|
|
30
|
-
*/
|
|
31
|
-
export interface NotebookCellExecutionStateChangeEvent {
|
|
32
|
-
/**
|
|
33
|
-
* The {@link NotebookCell cell} for which the execution state has changed.
|
|
34
|
-
*/
|
|
35
|
-
readonly cell: NotebookCell;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The new execution state of the cell.
|
|
39
|
-
*/
|
|
40
|
-
readonly state: NotebookCellExecutionState;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export namespace notebooks {
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* An {@link Event} which fires when the execution state of a cell has changed.
|
|
47
|
-
*/
|
|
48
|
-
// todo@API this is an event that is fired for a property that cells don't have and that makes me wonder
|
|
49
|
-
// how a correct consumer works, e.g the consumer could have been late and missed an event?
|
|
50
|
-
export const onDidChangeNotebookCellExecutionState: Event<NotebookCellExecutionStateChangeEvent>;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
// https://github.com/microsoft/vscode/issues/161144
|
|
8
|
-
export enum NotebookControllerAffinity2 {
|
|
9
|
-
Default = 1,
|
|
10
|
-
Preferred = 2,
|
|
11
|
-
Hidden = -1
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface NotebookController {
|
|
15
|
-
updateNotebookAffinity(notebook: NotebookDocument, affinity: NotebookControllerAffinity | NotebookControllerAffinity2): void;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/106744
|
|
9
|
-
|
|
10
|
-
export interface NotebookCellOutput {
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
id: string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* A NotebookExecution is how {@link NotebookController notebook controller} can indicate whether the notebook controller is busy or not.
|
|
10
|
-
*
|
|
11
|
-
* When {@linkcode NotebookExecution.start start()} is called on the execution task, it causes the Notebook to enter a executing state .
|
|
12
|
-
* When {@linkcode NotebookExecution.end end()} is called, it enters the idle state.
|
|
13
|
-
*/
|
|
14
|
-
export interface NotebookExecution {
|
|
15
|
-
/**
|
|
16
|
-
* Signal that the execution has begun.
|
|
17
|
-
*/
|
|
18
|
-
start(): void;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Signal that execution has ended.
|
|
22
|
-
*/
|
|
23
|
-
end(): void;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface NotebookController {
|
|
27
|
-
/**
|
|
28
|
-
* Create an execution task.
|
|
29
|
-
*
|
|
30
|
-
* _Note_ that there can only be one execution per Notebook, that also includes NotebookCellExecutions and t an error is thrown if
|
|
31
|
-
* a cell execution or another NotebookExecution is created while another is still active.
|
|
32
|
-
*
|
|
33
|
-
* This should be used to indicate the {@link NotebookController notebook controller} is busy even though user may not have executed any cell though the UI.
|
|
34
|
-
* @param notebook
|
|
35
|
-
* @returns A notebook execution.
|
|
36
|
-
*/
|
|
37
|
-
createNotebookExecution(notebook: NotebookDocument): NotebookExecution;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
export interface NotebookControllerDetectionTask {
|
|
8
|
-
/**
|
|
9
|
-
* Dispose and remove the detection task.
|
|
10
|
-
*/
|
|
11
|
-
dispose(): void;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class NotebookKernelSourceAction {
|
|
15
|
-
readonly label: string;
|
|
16
|
-
readonly description?: string;
|
|
17
|
-
readonly detail?: string;
|
|
18
|
-
readonly command: string | Command;
|
|
19
|
-
readonly documentation?: Uri;
|
|
20
|
-
|
|
21
|
-
constructor(label: string);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface NotebookKernelSourceActionProvider {
|
|
25
|
-
/**
|
|
26
|
-
* An optional event to signal that the kernel source actions have changed.
|
|
27
|
-
*/
|
|
28
|
-
onDidChangeNotebookKernelSourceActions?: Event<void>;
|
|
29
|
-
/**
|
|
30
|
-
* Provide kernel source actions
|
|
31
|
-
*/
|
|
32
|
-
provideNotebookKernelSourceActions(token: CancellationToken): ProviderResult<NotebookKernelSourceAction[]>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export namespace notebooks {
|
|
36
|
-
/**
|
|
37
|
-
* Create notebook controller detection task
|
|
38
|
-
*/
|
|
39
|
-
export function createNotebookControllerDetectionTask(notebookType: string): NotebookControllerDetectionTask;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Register a notebook kernel source action provider
|
|
43
|
-
*/
|
|
44
|
-
export function registerKernelSourceActionProvider(notebookType: string, provider: NotebookKernelSourceActionProvider): Disposable;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/106744
|
|
9
|
-
|
|
10
|
-
export interface NotebookRegistrationData {
|
|
11
|
-
readonly displayName: string;
|
|
12
|
-
readonly filenamePattern: ReadonlyArray<(GlobPattern | { readonly include: GlobPattern; readonly exclude: GlobPattern })>;
|
|
13
|
-
readonly exclusive?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export namespace workspace {
|
|
17
|
-
|
|
18
|
-
// SPECIAL overload with NotebookRegistrationData
|
|
19
|
-
export function registerNotebookSerializer(notebookType: string, serializer: NotebookSerializer, options?: NotebookDocumentContentOptions, registration?: NotebookRegistrationData): Disposable;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/123601
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Represents a script that is loaded into the notebook renderer before rendering output. This allows
|
|
12
|
-
* to provide and share functionality for notebook markup and notebook output renderers.
|
|
13
|
-
*/
|
|
14
|
-
export class NotebookRendererScript {
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* APIs that the preload provides to the renderer. These are matched
|
|
18
|
-
* against the `dependencies` and `optionalDependencies` arrays in the
|
|
19
|
-
* notebook renderer contribution point.
|
|
20
|
-
*/
|
|
21
|
-
provides: readonly string[];
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* URI of the JavaScript module to preload.
|
|
25
|
-
*
|
|
26
|
-
* This module must export an `activate` function that takes a context object that contains the notebook API.
|
|
27
|
-
*/
|
|
28
|
-
uri: Uri;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @param uri URI of the JavaScript module to preload
|
|
32
|
-
* @param provides Value for the `provides` property
|
|
33
|
-
*/
|
|
34
|
-
constructor(uri: Uri, provides?: string | readonly string[]);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface NotebookController {
|
|
38
|
-
|
|
39
|
-
// todo@API allow add, not remove
|
|
40
|
-
readonly rendererScripts: NotebookRendererScript[];
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* An event that fires when a {@link NotebookController.rendererScripts renderer script} has send a message to
|
|
44
|
-
* the controller.
|
|
45
|
-
*/
|
|
46
|
-
readonly onDidReceiveMessage: Event<{ readonly editor: NotebookEditor; readonly message: any }>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Send a message to the renderer of notebook editors.
|
|
50
|
-
*
|
|
51
|
-
* Note that only editors showing documents that are bound to this controller
|
|
52
|
-
* are receiving the message.
|
|
53
|
-
*
|
|
54
|
-
* @param message The message to send.
|
|
55
|
-
* @param editor A specific editor to send the message to. When `undefined` all applicable editors are receiving the message.
|
|
56
|
-
* @returns A promise that resolves to a boolean indicating if the message has been send or not.
|
|
57
|
-
*/
|
|
58
|
-
postMessage(message: any, editor?: NotebookEditor): Thenable<boolean>;
|
|
59
|
-
|
|
60
|
-
//todo@API validate this works
|
|
61
|
-
asWebviewUri(localResource: Uri): Uri;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export namespace notebooks {
|
|
65
|
-
|
|
66
|
-
export function createNotebookController(id: string, viewType: string, label: string, handler?: (cells: NotebookCell[], notebook: NotebookDocument, controller: NotebookController) => void | Thenable<void>, rendererScripts?: NotebookRendererScript[]): NotebookController;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
// https://github.com/microsoft/vscode/issues/126280 @mjbvz
|
|
9
|
-
|
|
10
|
-
export interface NotebookCellData {
|
|
11
|
-
/**
|
|
12
|
-
* Mime type determines how the cell's `value` is interpreted.
|
|
13
|
-
*
|
|
14
|
-
* The mime selects which notebook renders is used to render the cell.
|
|
15
|
-
*
|
|
16
|
-
* If not set, internally the cell is treated as having a mime type of `text/plain`.
|
|
17
|
-
* Cells that set `language` to `markdown` instead are treated as `text/markdown`.
|
|
18
|
-
*/
|
|
19
|
-
mime?: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface NotebookCell {
|
|
23
|
-
/**
|
|
24
|
-
* Mime type determines how the markup cell's `value` is interpreted.
|
|
25
|
-
*
|
|
26
|
-
* The mime selects which notebook renders is used to render the cell.
|
|
27
|
-
*
|
|
28
|
-
* If not set, internally the cell is treated as having a mime type of `text/plain`.
|
|
29
|
-
* Cells that set `language` to `markdown` instead are treated as `text/markdown`.
|
|
30
|
-
*/
|
|
31
|
-
mime: string | undefined;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
|
|
6
|
-
declare module 'vscode' {
|
|
7
|
-
|
|
8
|
-
export interface NotebookDocumentShowOptions {
|
|
9
|
-
/**
|
|
10
|
-
* The notebook should be opened in a REPL editor,
|
|
11
|
-
* where the last cell of the notebook is an input box and the other cells are the read-only history.
|
|
12
|
-
* When the value is a string, it will be used as the label for the editor tab.
|
|
13
|
-
*/
|
|
14
|
-
readonly asRepl?: boolean | string | {
|
|
15
|
-
/**
|
|
16
|
-
* The label to be used for the editor tab.
|
|
17
|
-
*/
|
|
18
|
-
readonly label: string;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface NotebookEditor {
|
|
23
|
-
/**
|
|
24
|
-
* Information about the REPL editor if the notebook was opened as a repl.
|
|
25
|
-
*/
|
|
26
|
-
replOptions?: {
|
|
27
|
-
/**
|
|
28
|
-
* The index where new cells should be appended.
|
|
29
|
-
*/
|
|
30
|
-
appendIndex: number;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
/*---------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
*--------------------------------------------------------------------------------------------*/
|
|
5
|
-
declare module 'vscode' {
|
|
6
|
-
|
|
7
|
-
export interface NotebookController {
|
|
8
|
-
/** Set this to attach a variable provider to this controller. */
|
|
9
|
-
variableProvider?: NotebookVariableProvider;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export enum NotebookVariablesRequestKind {
|
|
13
|
-
Named = 1,
|
|
14
|
-
Indexed = 2
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface VariablesResult {
|
|
18
|
-
variable: Variable;
|
|
19
|
-
hasNamedChildren: boolean;
|
|
20
|
-
indexedChildrenCount: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface NotebookVariableProvider {
|
|
24
|
-
onDidChangeVariables: Event<NotebookDocument>;
|
|
25
|
-
|
|
26
|
-
/** When parent is undefined, this is requesting global Variables. When a variable is passed, it's requesting child props of that Variable. */
|
|
27
|
-
provideVariables(notebook: NotebookDocument, parent: Variable | undefined, kind: NotebookVariablesRequestKind, start: number, token: CancellationToken): AsyncIterable<VariablesResult>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
interface Variable {
|
|
31
|
-
/** The variable's name. */
|
|
32
|
-
name: string;
|
|
33
|
-
|
|
34
|
-
/** The variable's value.
|
|
35
|
-
This can be a multi-line text, e.g. for a function the body of a function.
|
|
36
|
-
For structured variables (which do not have a simple value), it is recommended to provide a one-line representation of the structured object.
|
|
37
|
-
This helps to identify the structured object in the collapsed state when its children are not yet visible.
|
|
38
|
-
An empty string can be used if no value should be shown in the UI.
|
|
39
|
-
*/
|
|
40
|
-
value: string;
|
|
41
|
-
|
|
42
|
-
/** The code that represents how the variable would be accessed in the runtime environment */
|
|
43
|
-
expression?: string;
|
|
44
|
-
|
|
45
|
-
/** The type of the variable's value */
|
|
46
|
-
type?: string;
|
|
47
|
-
|
|
48
|
-
/** The interfaces or contracts that the type satisfies */
|
|
49
|
-
interfaces?: string[];
|
|
50
|
-
|
|
51
|
-
/** The language of the variable's value */
|
|
52
|
-
language?: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
}
|