@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,391 +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 ChatParticipant {
|
|
9
|
-
onDidPerformAction: Event<ChatUserActionEvent>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Now only used for the "intent detection" API below
|
|
14
|
-
*/
|
|
15
|
-
export interface ChatCommand {
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly description: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export class ChatResponseDetectedParticipantPart {
|
|
21
|
-
participant: string;
|
|
22
|
-
// TODO@API validate this against statically-declared slash commands?
|
|
23
|
-
command?: ChatCommand;
|
|
24
|
-
constructor(participant: string, command?: ChatCommand);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface ChatVulnerability {
|
|
28
|
-
title: string;
|
|
29
|
-
description: string;
|
|
30
|
-
// id: string; // Later we will need to be able to link these across multiple content chunks.
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export class ChatResponseMarkdownWithVulnerabilitiesPart {
|
|
34
|
-
value: MarkdownString;
|
|
35
|
-
vulnerabilities: ChatVulnerability[];
|
|
36
|
-
constructor(value: string | MarkdownString, vulnerabilities: ChatVulnerability[]);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export class ChatResponseCodeblockUriPart {
|
|
40
|
-
value: Uri;
|
|
41
|
-
constructor(value: Uri);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Displays a {@link Command command} as a button in the chat response.
|
|
46
|
-
*/
|
|
47
|
-
export interface ChatCommandButton {
|
|
48
|
-
command: Command;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ChatDocumentContext {
|
|
52
|
-
uri: Uri;
|
|
53
|
-
version: number;
|
|
54
|
-
ranges: Range[];
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export class ChatResponseTextEditPart {
|
|
58
|
-
uri: Uri;
|
|
59
|
-
edits: TextEdit[];
|
|
60
|
-
constructor(uri: Uri, edits: TextEdit | TextEdit[]);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export class ChatResponseConfirmationPart {
|
|
64
|
-
title: string;
|
|
65
|
-
message: string;
|
|
66
|
-
data: any;
|
|
67
|
-
buttons?: string[];
|
|
68
|
-
constructor(title: string, message: string, data: any, buttons?: string[]);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export class ChatResponseCodeCitationPart {
|
|
72
|
-
value: Uri;
|
|
73
|
-
license: string;
|
|
74
|
-
snippet: string;
|
|
75
|
-
constructor(value: Uri, license: string, snippet: string);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseDetectedParticipantPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart;
|
|
79
|
-
|
|
80
|
-
export class ChatResponseWarningPart {
|
|
81
|
-
value: MarkdownString;
|
|
82
|
-
constructor(value: string | MarkdownString);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export class ChatResponseProgressPart2 extends ChatResponseProgressPart {
|
|
86
|
-
value: string;
|
|
87
|
-
task?: (progress: Progress<ChatResponseWarningPart | ChatResponseReferencePart>) => Thenable<string | void>;
|
|
88
|
-
constructor(value: string, task?: (progress: Progress<ChatResponseWarningPart | ChatResponseReferencePart>) => Thenable<string | void>);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export class ChatResponseReferencePart2 {
|
|
92
|
-
/**
|
|
93
|
-
* The reference target.
|
|
94
|
-
*/
|
|
95
|
-
value: Uri | Location | { variableName: string; value?: Uri | Location } | string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The icon for the reference.
|
|
99
|
-
*/
|
|
100
|
-
iconPath?: Uri | ThemeIcon | {
|
|
101
|
-
/**
|
|
102
|
-
* The icon path for the light theme.
|
|
103
|
-
*/
|
|
104
|
-
light: Uri;
|
|
105
|
-
/**
|
|
106
|
-
* The icon path for the dark theme.
|
|
107
|
-
*/
|
|
108
|
-
dark: Uri;
|
|
109
|
-
};
|
|
110
|
-
options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } };
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Create a new ChatResponseReferencePart.
|
|
114
|
-
* @param value A uri or location
|
|
115
|
-
* @param iconPath Icon for the reference shown in UI
|
|
116
|
-
*/
|
|
117
|
-
constructor(value: Uri | Location | { variableName: string; value?: Uri | Location } | string, iconPath?: Uri | ThemeIcon | {
|
|
118
|
-
/**
|
|
119
|
-
* The icon path for the light theme.
|
|
120
|
-
*/
|
|
121
|
-
light: Uri;
|
|
122
|
-
/**
|
|
123
|
-
* The icon path for the dark theme.
|
|
124
|
-
*/
|
|
125
|
-
dark: Uri;
|
|
126
|
-
}, options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } });
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export class ChatResponseMovePart {
|
|
130
|
-
|
|
131
|
-
readonly uri: Uri;
|
|
132
|
-
readonly range: Range;
|
|
133
|
-
|
|
134
|
-
constructor(uri: Uri, range: Range);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface ChatResponseAnchorPart {
|
|
138
|
-
/**
|
|
139
|
-
* The target of this anchor.
|
|
140
|
-
*
|
|
141
|
-
* If this is a {@linkcode Uri} or {@linkcode Location}, this is rendered as a normal link.
|
|
142
|
-
*
|
|
143
|
-
* If this is a {@linkcode SymbolInformation}, this is rendered as a symbol link.
|
|
144
|
-
*
|
|
145
|
-
* TODO mjbvz: Should this be a full `SymbolInformation`? Or just the parts we need?
|
|
146
|
-
* TODO mjbvz: Should we allow a `SymbolInformation` without a location? For example, until `resolve` completes?
|
|
147
|
-
*/
|
|
148
|
-
value2: Uri | Location | SymbolInformation;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Optional method which fills in the details of the anchor.
|
|
152
|
-
*
|
|
153
|
-
* THis is currently only implemented for symbol links.
|
|
154
|
-
*/
|
|
155
|
-
resolve?(token: CancellationToken): Thenable<void>;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface ChatResponseStream {
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Push a progress part to this stream. Short-hand for
|
|
162
|
-
* `push(new ChatResponseProgressPart(value))`.
|
|
163
|
-
*
|
|
164
|
-
* @param value A progress message
|
|
165
|
-
* @param task If provided, a task to run while the progress is displayed. When the Thenable resolves, the progress will be marked complete in the UI, and the progress message will be updated to the resolved string if one is specified.
|
|
166
|
-
* @returns This stream.
|
|
167
|
-
*/
|
|
168
|
-
progress(value: string, task?: (progress: Progress<ChatResponseWarningPart | ChatResponseReferencePart>) => Thenable<string | void>): void;
|
|
169
|
-
|
|
170
|
-
textEdit(target: Uri, edits: TextEdit | TextEdit[]): void;
|
|
171
|
-
markdownWithVulnerabilities(value: string | MarkdownString, vulnerabilities: ChatVulnerability[]): void;
|
|
172
|
-
codeblockUri(uri: Uri): void;
|
|
173
|
-
detectedParticipant(participant: string, command?: ChatCommand): void;
|
|
174
|
-
push(part: ChatResponsePart | ChatResponseTextEditPart | ChatResponseDetectedParticipantPart | ChatResponseWarningPart | ChatResponseProgressPart2): void;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Show an inline message in the chat view asking the user to confirm an action.
|
|
178
|
-
* Multiple confirmations may be shown per response. The UI might show "Accept All" / "Reject All" actions.
|
|
179
|
-
* @param title The title of the confirmation entry
|
|
180
|
-
* @param message An extra message to display to the user
|
|
181
|
-
* @param data An arbitrary JSON-stringifiable object that will be included in the ChatRequest when
|
|
182
|
-
* the confirmation is accepted or rejected
|
|
183
|
-
* TODO@API should this be MarkdownString?
|
|
184
|
-
* TODO@API should actually be a more generic function that takes an array of buttons
|
|
185
|
-
*/
|
|
186
|
-
confirmation(title: string, message: string, data: any, buttons?: string[]): void;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Push a warning to this stream. Short-hand for
|
|
190
|
-
* `push(new ChatResponseWarningPart(message))`.
|
|
191
|
-
*
|
|
192
|
-
* @param message A warning message
|
|
193
|
-
* @returns This stream.
|
|
194
|
-
*/
|
|
195
|
-
warning(message: string | MarkdownString): void;
|
|
196
|
-
|
|
197
|
-
reference(value: Uri | Location | { variableName: string; value?: Uri | Location }, iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri }): void;
|
|
198
|
-
|
|
199
|
-
reference2(value: Uri | Location | string | { variableName: string; value?: Uri | Location }, iconPath?: Uri | ThemeIcon | { light: Uri; dark: Uri }, options?: { status?: { description: string; kind: ChatResponseReferencePartStatusKind } }): void;
|
|
200
|
-
|
|
201
|
-
codeCitation(value: Uri, license: string, snippet: string): void;
|
|
202
|
-
|
|
203
|
-
push(part: ExtendedChatResponsePart): void;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export enum ChatResponseReferencePartStatusKind {
|
|
207
|
-
Complete = 1,
|
|
208
|
-
Partial = 2,
|
|
209
|
-
Omitted = 3
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Does this piggy-back on the existing ChatRequest, or is it a different type of request entirely?
|
|
214
|
-
* Does it show up in history?
|
|
215
|
-
*/
|
|
216
|
-
export interface ChatRequest {
|
|
217
|
-
/**
|
|
218
|
-
* The `data` for any confirmations that were accepted
|
|
219
|
-
*/
|
|
220
|
-
acceptedConfirmationData?: any[];
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* The `data` for any confirmations that were rejected
|
|
224
|
-
*/
|
|
225
|
-
rejectedConfirmationData?: any[];
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
// TODO@API fit this into the stream
|
|
229
|
-
export interface ChatUsedContext {
|
|
230
|
-
documents: ChatDocumentContext[];
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
export interface ChatParticipant {
|
|
234
|
-
/**
|
|
235
|
-
* Provide a set of variables that can only be used with this participant.
|
|
236
|
-
*/
|
|
237
|
-
participantVariableProvider?: { provider: ChatParticipantCompletionItemProvider; triggerCharacters: string[] };
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface ChatParticipantCompletionItemProvider {
|
|
241
|
-
provideCompletionItems(query: string, token: CancellationToken): ProviderResult<ChatCompletionItem[]>;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export class ChatCompletionItem {
|
|
245
|
-
id: string;
|
|
246
|
-
label: string | CompletionItemLabel;
|
|
247
|
-
values: ChatVariableValue[];
|
|
248
|
-
fullName?: string;
|
|
249
|
-
icon?: ThemeIcon;
|
|
250
|
-
insertText?: string;
|
|
251
|
-
detail?: string;
|
|
252
|
-
documentation?: string | MarkdownString;
|
|
253
|
-
command?: Command;
|
|
254
|
-
|
|
255
|
-
constructor(id: string, label: string | CompletionItemLabel, values: ChatVariableValue[]);
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export type ChatExtendedRequestHandler = (request: ChatRequest, context: ChatContext, response: ChatResponseStream, token: CancellationToken) => ProviderResult<ChatResult | void>;
|
|
259
|
-
|
|
260
|
-
export interface ChatResult {
|
|
261
|
-
nextQuestion?: {
|
|
262
|
-
prompt: string;
|
|
263
|
-
participant?: string;
|
|
264
|
-
command?: string;
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export namespace chat {
|
|
269
|
-
/**
|
|
270
|
-
* Create a chat participant with the extended progress type
|
|
271
|
-
*/
|
|
272
|
-
export function createChatParticipant(id: string, handler: ChatExtendedRequestHandler): ChatParticipant;
|
|
273
|
-
|
|
274
|
-
export function registerChatParticipantDetectionProvider(participantDetectionProvider: ChatParticipantDetectionProvider): Disposable;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
export interface ChatParticipantMetadata {
|
|
278
|
-
participant: string;
|
|
279
|
-
command?: string;
|
|
280
|
-
disambiguation: { category: string; description: string; examples: string[] }[];
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export interface ChatParticipantDetectionResult {
|
|
284
|
-
participant: string;
|
|
285
|
-
command?: string;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export interface ChatParticipantDetectionProvider {
|
|
289
|
-
provideParticipantDetection(chatRequest: ChatRequest, context: ChatContext, options: { participants?: ChatParticipantMetadata[]; location: ChatLocation }, token: CancellationToken): ProviderResult<ChatParticipantDetectionResult>;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/*
|
|
293
|
-
* User action events
|
|
294
|
-
*/
|
|
295
|
-
|
|
296
|
-
export enum ChatCopyKind {
|
|
297
|
-
// Keyboard shortcut or context menu
|
|
298
|
-
Action = 1,
|
|
299
|
-
Toolbar = 2
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export interface ChatCopyAction {
|
|
303
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
304
|
-
kind: 'copy';
|
|
305
|
-
codeBlockIndex: number;
|
|
306
|
-
copyKind: ChatCopyKind;
|
|
307
|
-
copiedCharacters: number;
|
|
308
|
-
totalCharacters: number;
|
|
309
|
-
copiedText: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export interface ChatInsertAction {
|
|
313
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
314
|
-
kind: 'insert';
|
|
315
|
-
codeBlockIndex: number;
|
|
316
|
-
totalCharacters: number;
|
|
317
|
-
newFile?: boolean;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
export interface ChatApplyAction {
|
|
321
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
322
|
-
kind: 'apply';
|
|
323
|
-
codeBlockIndex: number;
|
|
324
|
-
totalCharacters: number;
|
|
325
|
-
newFile?: boolean;
|
|
326
|
-
codeMapper?: string;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export interface ChatTerminalAction {
|
|
330
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
331
|
-
kind: 'runInTerminal';
|
|
332
|
-
codeBlockIndex: number;
|
|
333
|
-
languageId?: string;
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export interface ChatCommandAction {
|
|
337
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
338
|
-
kind: 'command';
|
|
339
|
-
commandButton: ChatCommandButton;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export interface ChatFollowupAction {
|
|
343
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
344
|
-
kind: 'followUp';
|
|
345
|
-
followup: ChatFollowup;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export interface ChatBugReportAction {
|
|
349
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
350
|
-
kind: 'bug';
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export interface ChatEditorAction {
|
|
354
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
355
|
-
kind: 'editor';
|
|
356
|
-
accepted: boolean;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export interface ChatEditingSessionAction {
|
|
360
|
-
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
361
|
-
kind: 'chatEditingSessionAction';
|
|
362
|
-
uri: Uri;
|
|
363
|
-
hasRemainingEdits: boolean;
|
|
364
|
-
outcome: ChatEditingSessionActionOutcome;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
export enum ChatEditingSessionActionOutcome {
|
|
368
|
-
Accepted = 1,
|
|
369
|
-
Rejected = 2
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
export interface ChatUserActionEvent {
|
|
373
|
-
readonly result: ChatResult;
|
|
374
|
-
readonly action: ChatCopyAction | ChatInsertAction | ChatApplyAction | ChatTerminalAction | ChatCommandAction | ChatFollowupAction | ChatBugReportAction | ChatEditorAction | ChatEditingSessionAction;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export interface ChatPromptReference {
|
|
378
|
-
/**
|
|
379
|
-
* TODO Needed for now to drive the variableName-type reference, but probably both of these should go away in the future.
|
|
380
|
-
*/
|
|
381
|
-
readonly name: string;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
export interface ChatResultFeedback {
|
|
385
|
-
readonly unhelpfulReason?: string;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export namespace lm {
|
|
389
|
-
export function fileIsIgnored(uri: Uri, token: CancellationToken): Thenable<boolean>;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
@@ -1,119 +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: 2
|
|
7
|
-
|
|
8
|
-
declare module 'vscode' {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The location at which the chat is happening.
|
|
12
|
-
*/
|
|
13
|
-
export enum ChatLocation {
|
|
14
|
-
/**
|
|
15
|
-
* The chat panel
|
|
16
|
-
*/
|
|
17
|
-
Panel = 1,
|
|
18
|
-
/**
|
|
19
|
-
* Terminal inline chat
|
|
20
|
-
*/
|
|
21
|
-
Terminal = 2,
|
|
22
|
-
/**
|
|
23
|
-
* Notebook inline chat
|
|
24
|
-
*/
|
|
25
|
-
Notebook = 3,
|
|
26
|
-
/**
|
|
27
|
-
* Code editor inline chat
|
|
28
|
-
*/
|
|
29
|
-
Editor = 4,
|
|
30
|
-
/**
|
|
31
|
-
* Chat is happening in an editing session
|
|
32
|
-
*/
|
|
33
|
-
EditingSession = 5,
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export class ChatRequestEditorData {
|
|
37
|
-
//TODO@API should be the editor
|
|
38
|
-
document: TextDocument;
|
|
39
|
-
selection: Selection;
|
|
40
|
-
wholeRange: Range;
|
|
41
|
-
|
|
42
|
-
constructor(document: TextDocument, selection: Selection, wholeRange: Range);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export class ChatRequestNotebookData {
|
|
46
|
-
//TODO@API should be the editor
|
|
47
|
-
readonly cell: TextDocument;
|
|
48
|
-
|
|
49
|
-
constructor(cell: TextDocument);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface ChatRequest {
|
|
53
|
-
/**
|
|
54
|
-
* The attempt number of the request. The first request has attempt number 0.
|
|
55
|
-
*/
|
|
56
|
-
readonly attempt: number;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* If automatic command detection is enabled.
|
|
60
|
-
*/
|
|
61
|
-
readonly enableCommandDetection: boolean;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* If the chat participant or command was automatically assigned.
|
|
65
|
-
*/
|
|
66
|
-
readonly isParticipantDetected: boolean;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* The location at which the chat is happening. This will always be one of the supported values
|
|
70
|
-
*
|
|
71
|
-
* @deprecated
|
|
72
|
-
*/
|
|
73
|
-
readonly location: ChatLocation;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Information that is specific to the location at which chat is happening, e.g within a document, notebook,
|
|
77
|
-
* or terminal. Will be `undefined` for the chat panel.
|
|
78
|
-
*/
|
|
79
|
-
readonly location2: ChatRequestEditorData | ChatRequestNotebookData | undefined;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export interface ChatParticipant {
|
|
83
|
-
supportIssueReporting?: boolean;
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Temp, support references that are slow to resolve and should be tools rather than references.
|
|
87
|
-
*/
|
|
88
|
-
supportsSlowReferences?: boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface ChatErrorDetails {
|
|
92
|
-
/**
|
|
93
|
-
* If set to true, the message content is completely hidden. Only ChatErrorDetails#message will be shown.
|
|
94
|
-
*/
|
|
95
|
-
responseIsRedacted?: boolean;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export namespace chat {
|
|
99
|
-
export function createDynamicChatParticipant(id: string, dynamicProps: DynamicChatParticipantProps, handler: ChatExtendedRequestHandler): ChatParticipant;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* These don't get set on the ChatParticipant after creation, like other props, because they are typically defined in package.json and we want them at the time of creation.
|
|
104
|
-
*/
|
|
105
|
-
export interface DynamicChatParticipantProps {
|
|
106
|
-
name: string;
|
|
107
|
-
publisherName: string;
|
|
108
|
-
description?: string;
|
|
109
|
-
fullName?: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export namespace lm {
|
|
113
|
-
export function registerIgnoredFileProvider(provider: LanguageModelIgnoredFileProvider): Disposable;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export interface LanguageModelIgnoredFileProvider {
|
|
117
|
-
provideFileIgnored(uri: Uri, token: CancellationToken): ProviderResult<boolean>;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
@@ -1,90 +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 ChatResponseFragment {
|
|
9
|
-
index: number;
|
|
10
|
-
part: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ChatResponseFragment2 {
|
|
14
|
-
index: number;
|
|
15
|
-
part: LanguageModelTextPart | LanguageModelToolCallPart;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// @API extension ship a d.ts files for their options
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Represents a large language model that accepts ChatML messages and produces a streaming response
|
|
22
|
-
*/
|
|
23
|
-
export interface LanguageModelChatProvider {
|
|
24
|
-
|
|
25
|
-
onDidReceiveLanguageModelResponse2?: Event<{ readonly extensionId: string; readonly participant?: string; readonly tokenCount?: number }>;
|
|
26
|
-
|
|
27
|
-
provideLanguageModelResponse(messages: LanguageModelChatMessage[], options: { [name: string]: any }, extensionId: string, progress: Progress<ChatResponseFragment>, token: CancellationToken): Thenable<any>;
|
|
28
|
-
|
|
29
|
-
provideLanguageModelResponse2?(messages: LanguageModelChatMessage[], options: LanguageModelChatRequestOptions, extensionId: string, progress: Progress<ChatResponseFragment2>, token: CancellationToken): Thenable<any>;
|
|
30
|
-
|
|
31
|
-
provideTokenCount(text: string | LanguageModelChatMessage, token: CancellationToken): Thenable<number>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type ChatResponseProvider = LanguageModelChatProvider;
|
|
35
|
-
|
|
36
|
-
export interface ChatResponseProviderMetadata {
|
|
37
|
-
|
|
38
|
-
readonly vendor: string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Human-readable name of the language model.
|
|
42
|
-
*/
|
|
43
|
-
readonly name: string;
|
|
44
|
-
/**
|
|
45
|
-
* Opaque family-name of the language model. Values might be `gpt-3.5-turbo`, `gpt4`, `phi2`, or `llama`
|
|
46
|
-
* but they are defined by extensions contributing languages and subject to change.
|
|
47
|
-
*/
|
|
48
|
-
readonly family: string;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Opaque version string of the model. This is defined by the extension contributing the language model
|
|
52
|
-
* and subject to change while the identifier is stable.
|
|
53
|
-
*/
|
|
54
|
-
readonly version: string;
|
|
55
|
-
|
|
56
|
-
readonly maxInputTokens: number;
|
|
57
|
-
|
|
58
|
-
readonly maxOutputTokens: number;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* When present, this gates the use of `requestLanguageModelAccess` behind an authorization flow where
|
|
62
|
-
* the user must approve of another extension accessing the models contributed by this extension.
|
|
63
|
-
* Additionally, the extension can provide a label that will be shown in the UI.
|
|
64
|
-
*/
|
|
65
|
-
auth?: true | { label: string };
|
|
66
|
-
|
|
67
|
-
// TODO@API maybe an enum, LanguageModelChatProviderPickerAvailability?
|
|
68
|
-
readonly isDefault?: boolean;
|
|
69
|
-
readonly isUserSelectable?: boolean;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface ChatResponseProviderMetadata {
|
|
73
|
-
// limit this provider to some extensions
|
|
74
|
-
extensions?: string[];
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export namespace chat {
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated use `lm.registerChatResponseProvider` instead
|
|
81
|
-
*/
|
|
82
|
-
export function registerChatResponseProvider(id: string, provider: ChatResponseProvider, metadata: ChatResponseProviderMetadata): Disposable;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export namespace lm {
|
|
86
|
-
|
|
87
|
-
export function registerChatModelProvider(id: string, provider: LanguageModelChatProvider, metadata: ChatResponseProviderMetadata): Disposable;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
}
|
|
@@ -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 ChatPromptReference {
|
|
9
|
-
/**
|
|
10
|
-
* The value of this reference. The `string | Uri | Location` types are used today, but this could expand in the future.
|
|
11
|
-
*/
|
|
12
|
-
readonly value: string | Uri | Location | ChatReferenceBinaryData | unknown;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class ChatReferenceBinaryData {
|
|
16
|
-
/**
|
|
17
|
-
* The MIME type of the binary data.
|
|
18
|
-
*/
|
|
19
|
-
readonly mimeType: string;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves the binary data of the reference.
|
|
23
|
-
* @returns A promise that resolves to the binary data as a Uint8Array.
|
|
24
|
-
*/
|
|
25
|
-
data(): Thenable<Uint8Array>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @param mimeType The MIME type of the binary data.
|
|
29
|
-
* @param data The binary data of the reference.
|
|
30
|
-
*/
|
|
31
|
-
constructor(mimeType: string, data: () => Thenable<Uint8Array>);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -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
|
-
/**
|
|
8
|
-
* The tab represents an interactive window.
|
|
9
|
-
*/
|
|
10
|
-
export class TabInputChat {
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface Tab {
|
|
15
|
-
readonly input: TabInputText | TabInputTextDiff | TabInputCustom | TabInputWebview | TabInputNotebook | TabInputNotebookDiff | TabInputTerminal | TabInputChat | unknown;
|
|
16
|
-
}
|
|
17
|
-
}
|