@codingame/monaco-vscode-rollup-vsix-plugin 1.83.16 → 1.85.0-next.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 +2 -2
- package/rollup-vsix-plugin.d.ts +2 -3
- package/rollup-vsix-plugin.js +6725 -15
- package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
- package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
- package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
- package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
- package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
- package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
- package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
- package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
- package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
- package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
- package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
- package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
- package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
- package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
- package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
|
@@ -0,0 +1,30 @@
|
|
|
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 ChatAgent2 {
|
|
9
|
+
/**
|
|
10
|
+
* When true, this agent is invoked by default when no other agent is being invoked
|
|
11
|
+
*/
|
|
12
|
+
isDefault?: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* When true, this agent is invoked when the user submits their query using ctrl/cmd+enter
|
|
16
|
+
* TODO@API name
|
|
17
|
+
*/
|
|
18
|
+
isSecondary?: boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A string that will be added before the listing of chat agents in `/help`.
|
|
22
|
+
*/
|
|
23
|
+
helpTextPrefix?: string | MarkdownString;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A string that will be appended after the listing of chat agents in `/help`.
|
|
27
|
+
*/
|
|
28
|
+
helpTextPostfix?: string | MarkdownString;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -14,6 +14,18 @@ declare module 'vscode' {
|
|
|
14
14
|
handleIssueUrlRequest(): ProviderResult<Uri>;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
export interface IssueDataProvider {
|
|
18
|
+
/**
|
|
19
|
+
* Provide the data to be used in the issue reporter.
|
|
20
|
+
*/
|
|
21
|
+
provideIssueData(token: CancellationToken): ProviderResult<string>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Provide the template to be used in the description of issue reporter.
|
|
25
|
+
*/
|
|
26
|
+
provideIssueTemplate(token: CancellationToken): ProviderResult<string>;
|
|
27
|
+
}
|
|
28
|
+
|
|
17
29
|
export namespace env {
|
|
18
30
|
/**
|
|
19
31
|
* Register an {@link IssueUriRequestHandler}. By registering an issue uri request handler,
|
|
@@ -27,5 +39,19 @@ declare module 'vscode' {
|
|
|
27
39
|
* @param handler the issue uri request handler to register for this extension.
|
|
28
40
|
*/
|
|
29
41
|
export function registerIssueUriRequestHandler(handler: IssueUriRequestHandler): Disposable;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Register an {@link IssueDataProvider}. By registering an issue data provider,
|
|
45
|
+
* you can provide additional information to the built-in issue reporter.
|
|
46
|
+
* The repo url must be provided by package.json's repository field.
|
|
47
|
+
*
|
|
48
|
+
* Examples:
|
|
49
|
+
* - Provide additional information about the current workspace, current extension, current user, or OS
|
|
50
|
+
* - Provide data in the form of a string to the secondary description/data text box of the issue reporter.
|
|
51
|
+
* - Provide a template for the description of the issue reporter
|
|
52
|
+
*
|
|
53
|
+
* @param provider the issue data provider to register for this extension.
|
|
54
|
+
*/
|
|
55
|
+
export function registerIssueDataProvider(provider: IssueDataProvider): Disposable;
|
|
30
56
|
}
|
|
31
57
|
}
|
|
@@ -20,6 +20,7 @@ declare module 'vscode' {
|
|
|
20
20
|
// todo@API make classes
|
|
21
21
|
export interface InteractiveEditorSession {
|
|
22
22
|
placeholder?: string;
|
|
23
|
+
input?: string;
|
|
23
24
|
slashCommands?: InteractiveEditorSlashCommand[];
|
|
24
25
|
wholeRange?: Range;
|
|
25
26
|
message?: string;
|
|
@@ -37,6 +38,7 @@ declare module 'vscode' {
|
|
|
37
38
|
// todo@API make classes
|
|
38
39
|
export interface InteractiveEditorResponse {
|
|
39
40
|
edits: TextEdit[] | WorkspaceEdit;
|
|
41
|
+
contents?: MarkdownString;
|
|
40
42
|
placeholder?: string;
|
|
41
43
|
wholeRange?: Range;
|
|
42
44
|
}
|
|
@@ -48,11 +50,20 @@ declare module 'vscode' {
|
|
|
48
50
|
wholeRange?: Range;
|
|
49
51
|
}
|
|
50
52
|
|
|
53
|
+
export interface InteractiveEditorProgressItem {
|
|
54
|
+
message?: string;
|
|
55
|
+
edits?: TextEdit[];
|
|
56
|
+
editsShouldBeInstant?: boolean;
|
|
57
|
+
slashCommand?: InteractiveEditorSlashCommand;
|
|
58
|
+
content?: string | MarkdownString;
|
|
59
|
+
}
|
|
60
|
+
|
|
51
61
|
export enum InteractiveEditorResponseFeedbackKind {
|
|
52
62
|
Unhelpful = 0,
|
|
53
63
|
Helpful = 1,
|
|
54
64
|
Undone = 2,
|
|
55
|
-
Accepted = 3
|
|
65
|
+
Accepted = 3,
|
|
66
|
+
Bug = 4
|
|
56
67
|
}
|
|
57
68
|
|
|
58
69
|
export interface TextDocumentContext {
|
|
@@ -61,7 +72,14 @@ declare module 'vscode' {
|
|
|
61
72
|
}
|
|
62
73
|
|
|
63
74
|
export interface InteractiveEditorSessionProviderMetadata {
|
|
64
|
-
label
|
|
75
|
+
label?: string;
|
|
76
|
+
supportReportIssue?: boolean;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export interface InteractiveEditorReplyFollowup {
|
|
80
|
+
message: string;
|
|
81
|
+
tooltip?: string;
|
|
82
|
+
title?: string;
|
|
65
83
|
}
|
|
66
84
|
|
|
67
85
|
export interface InteractiveEditorSessionProvider<S extends InteractiveEditorSession = InteractiveEditorSession, R extends InteractiveEditorResponse | InteractiveEditorMessageResponse = InteractiveEditorResponse | InteractiveEditorMessageResponse> {
|
|
@@ -69,15 +87,14 @@ declare module 'vscode' {
|
|
|
69
87
|
// Create a session. The lifetime of this session is the duration of the editing session with the input mode widget.
|
|
70
88
|
prepareInteractiveEditorSession(context: TextDocumentContext, token: CancellationToken): ProviderResult<S>;
|
|
71
89
|
|
|
72
|
-
provideInteractiveEditorResponse(session: S, request: InteractiveEditorRequest, progress: Progress<
|
|
90
|
+
provideInteractiveEditorResponse(session: S, request: InteractiveEditorRequest, progress: Progress<InteractiveEditorProgressItem>, token: CancellationToken): ProviderResult<R>;
|
|
91
|
+
|
|
92
|
+
provideFollowups?(session: S, response: R, token: CancellationToken): ProviderResult<InteractiveEditorReplyFollowup[]>;
|
|
73
93
|
|
|
74
94
|
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
75
95
|
handleInteractiveEditorResponseFeedback?(session: S, response: R, kind: InteractiveEditorResponseFeedbackKind): void;
|
|
76
96
|
}
|
|
77
97
|
|
|
78
|
-
|
|
79
|
-
export interface InteractiveSessionState { }
|
|
80
|
-
|
|
81
98
|
export interface InteractiveSessionParticipantInformation {
|
|
82
99
|
name: string;
|
|
83
100
|
|
|
@@ -91,70 +108,8 @@ declare module 'vscode' {
|
|
|
91
108
|
requester: InteractiveSessionParticipantInformation;
|
|
92
109
|
responder: InteractiveSessionParticipantInformation;
|
|
93
110
|
inputPlaceholder?: string;
|
|
94
|
-
|
|
95
|
-
saveState?(): InteractiveSessionState;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export interface InteractiveSessionRequestArgs {
|
|
99
|
-
command: string;
|
|
100
|
-
args: any;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export interface InteractiveRequest {
|
|
104
|
-
session: InteractiveSession;
|
|
105
|
-
message: string | InteractiveSessionReplyFollowup;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface InteractiveResponseErrorDetails {
|
|
109
|
-
message: string;
|
|
110
|
-
responseIsIncomplete?: boolean;
|
|
111
|
-
responseIsFiltered?: boolean;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface InteractiveResponseForProgress {
|
|
115
|
-
errorDetails?: InteractiveResponseErrorDetails;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface InteractiveProgressContent {
|
|
119
|
-
content: string | MarkdownString;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export interface InteractiveProgressId {
|
|
123
|
-
responseId: string;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export interface InteractiveProgressTask {
|
|
127
|
-
placeholder: string;
|
|
128
|
-
resolvedContent: Thenable<InteractiveProgressContent | InteractiveProgressFileTree>;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface FileTreeData {
|
|
132
|
-
label: string;
|
|
133
|
-
uri: Uri;
|
|
134
|
-
children?: FileTreeData[];
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface InteractiveProgressFileTree {
|
|
138
|
-
treeData: FileTreeData;
|
|
139
111
|
}
|
|
140
112
|
|
|
141
|
-
export interface DocumentContext {
|
|
142
|
-
uri: Uri;
|
|
143
|
-
version: number;
|
|
144
|
-
ranges: Range[];
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface InteractiveProgressUsedContext {
|
|
148
|
-
documents: DocumentContext[];
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export type InteractiveProgress =
|
|
152
|
-
| InteractiveProgressContent
|
|
153
|
-
| InteractiveProgressId
|
|
154
|
-
| InteractiveProgressTask
|
|
155
|
-
| InteractiveProgressFileTree
|
|
156
|
-
| InteractiveProgressUsedContext;
|
|
157
|
-
|
|
158
113
|
export interface InteractiveResponseCommand {
|
|
159
114
|
commandId: string;
|
|
160
115
|
args?: any[];
|
|
@@ -162,40 +117,18 @@ declare module 'vscode' {
|
|
|
162
117
|
when?: string;
|
|
163
118
|
}
|
|
164
119
|
|
|
165
|
-
export interface InteractiveSessionSlashCommand {
|
|
166
|
-
command: string;
|
|
167
|
-
kind: CompletionItemKind;
|
|
168
|
-
detail?: string;
|
|
169
|
-
shouldRepopulate?: boolean;
|
|
170
|
-
followupPlaceholder?: string;
|
|
171
|
-
executeImmediately?: boolean;
|
|
172
|
-
yieldTo?: ReadonlyArray<{ readonly command: string }>;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
120
|
export interface InteractiveSessionReplyFollowup {
|
|
176
121
|
message: string;
|
|
177
122
|
tooltip?: string;
|
|
178
123
|
title?: string;
|
|
179
|
-
|
|
180
|
-
// Extensions can put any serializable data here, such as an ID/version
|
|
181
|
-
metadata?: any;
|
|
182
124
|
}
|
|
183
125
|
|
|
184
|
-
export type
|
|
185
|
-
|
|
186
|
-
export type InteractiveWelcomeMessageContent = string | InteractiveSessionReplyFollowup[];
|
|
126
|
+
export type InteractiveWelcomeMessageContent = string | MarkdownString | InteractiveSessionReplyFollowup[];
|
|
187
127
|
|
|
188
128
|
export interface InteractiveSessionProvider<S extends InteractiveSession = InteractiveSession> {
|
|
189
129
|
provideWelcomeMessage?(token: CancellationToken): ProviderResult<InteractiveWelcomeMessageContent[]>;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
prepareSession(initialState: InteractiveSessionState | undefined, token: CancellationToken): ProviderResult<S>;
|
|
194
|
-
resolveRequest(session: S, context: InteractiveSessionRequestArgs | string, token: CancellationToken): ProviderResult<InteractiveRequest>;
|
|
195
|
-
provideResponseWithProgress(request: InteractiveRequest, progress: Progress<InteractiveProgress>, token: CancellationToken): ProviderResult<InteractiveResponseForProgress>;
|
|
196
|
-
|
|
197
|
-
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
198
|
-
removeRequest(session: S, requestId: string): void;
|
|
130
|
+
provideSampleQuestions?(token: CancellationToken): ProviderResult<InteractiveSessionReplyFollowup[]>;
|
|
131
|
+
prepareSession(token: CancellationToken): ProviderResult<S>;
|
|
199
132
|
}
|
|
200
133
|
|
|
201
134
|
export interface InteractiveSessionDynamicRequest {
|
|
@@ -203,12 +136,6 @@ declare module 'vscode' {
|
|
|
203
136
|
* The message that will be displayed in the UI
|
|
204
137
|
*/
|
|
205
138
|
message: string;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Any extra metadata/context that will go to the provider.
|
|
209
|
-
* NOTE not actually used yet.
|
|
210
|
-
*/
|
|
211
|
-
metadata?: any;
|
|
212
139
|
}
|
|
213
140
|
|
|
214
141
|
export namespace interactive {
|
|
@@ -216,7 +143,6 @@ declare module 'vscode' {
|
|
|
216
143
|
export const _version: 1 | number;
|
|
217
144
|
|
|
218
145
|
export function registerInteractiveSessionProvider(id: string, provider: InteractiveSessionProvider): Disposable;
|
|
219
|
-
export function addInteractiveRequest(context: InteractiveSessionRequestArgs): void;
|
|
220
146
|
|
|
221
147
|
export function sendInteractiveRequestToProvider(providerId: string, message: InteractiveSessionDynamicRequest): void;
|
|
222
148
|
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
declare module 'vscode' {
|
|
7
7
|
|
|
8
8
|
export enum InteractiveSessionVoteDirection {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
Down = 0,
|
|
10
|
+
Up = 1
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface InteractiveSessionVoteAction {
|
|
14
14
|
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
15
15
|
kind: 'vote';
|
|
16
|
-
responseId: string;
|
|
17
16
|
direction: InteractiveSessionVoteDirection;
|
|
18
17
|
}
|
|
19
18
|
|
|
@@ -26,7 +25,6 @@ declare module 'vscode' {
|
|
|
26
25
|
export interface InteractiveSessionCopyAction {
|
|
27
26
|
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
28
27
|
kind: 'copy';
|
|
29
|
-
responseId: string;
|
|
30
28
|
codeBlockIndex: number;
|
|
31
29
|
copyType: InteractiveSessionCopyKind;
|
|
32
30
|
copiedCharacters: number;
|
|
@@ -37,7 +35,6 @@ declare module 'vscode' {
|
|
|
37
35
|
export interface InteractiveSessionInsertAction {
|
|
38
36
|
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
39
37
|
kind: 'insert';
|
|
40
|
-
responseId: string;
|
|
41
38
|
codeBlockIndex: number;
|
|
42
39
|
totalCharacters: number;
|
|
43
40
|
newFile?: boolean;
|
|
@@ -46,7 +43,6 @@ declare module 'vscode' {
|
|
|
46
43
|
export interface InteractiveSessionTerminalAction {
|
|
47
44
|
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
48
45
|
kind: 'runInTerminal';
|
|
49
|
-
responseId: string;
|
|
50
46
|
codeBlockIndex: number;
|
|
51
47
|
languageId?: string;
|
|
52
48
|
}
|
|
@@ -57,7 +53,18 @@ declare module 'vscode' {
|
|
|
57
53
|
command: InteractiveResponseCommand;
|
|
58
54
|
}
|
|
59
55
|
|
|
60
|
-
export
|
|
56
|
+
export interface InteractiveSessionFollowupAction {
|
|
57
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
58
|
+
kind: 'followUp';
|
|
59
|
+
followup: InteractiveSessionReplyFollowup;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface InteractiveSessionBugReportAction {
|
|
63
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
64
|
+
kind: 'bug';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type InteractiveSessionUserAction = InteractiveSessionVoteAction | InteractiveSessionCopyAction | InteractiveSessionInsertAction | InteractiveSessionTerminalAction | InteractiveSessionCommandAction | InteractiveSessionBugReportAction;
|
|
61
68
|
|
|
62
69
|
export interface InteractiveSessionUserActionEvent {
|
|
63
70
|
action: InteractiveSessionUserAction;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
namedChildrenCount: number;
|
|
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
|
+
|
|
43
|
+
}
|
|
@@ -191,6 +191,26 @@ declare module 'vscode' {
|
|
|
191
191
|
*/
|
|
192
192
|
env(): Thenable<ExecEnvironment>;
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Kills a process with the given ID.
|
|
196
|
+
*
|
|
197
|
+
* @param processId process ID to kill.
|
|
198
|
+
*/
|
|
199
|
+
kill(processId: number): Thenable<void>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Connects to the given TCP host/port on the remote.
|
|
203
|
+
*
|
|
204
|
+
* @param host The hostname or IP to connect to
|
|
205
|
+
* @param port The port number to connect to
|
|
206
|
+
* @returns a duplex stream, and a promise the resolves when both sides
|
|
207
|
+
* have closed.
|
|
208
|
+
*/
|
|
209
|
+
tcpConnect(
|
|
210
|
+
host: string,
|
|
211
|
+
port: number,
|
|
212
|
+
): Thenable<{ stream: WriteStream & ReadStream; done: Thenable<void> }>;
|
|
213
|
+
|
|
194
214
|
/**
|
|
195
215
|
* Access to the file system of the remote.
|
|
196
216
|
*/
|
|
@@ -250,7 +270,7 @@ declare module 'vscode' {
|
|
|
250
270
|
|
|
251
271
|
export interface CliBuild {
|
|
252
272
|
readonly quality: string;
|
|
253
|
-
/** 'LinuxAlpineX64' | 'LinuxX64' | 'LinuxARM64' | 'LinuxARM32' | 'DarwinX64' | 'DarwinARM64' | 'WindowsX64' | 'WindowsX86' | 'WindowsARM64' */
|
|
273
|
+
/** 'LinuxAlpineX64' | 'LinuxAlpineARM64', 'LinuxX64' | 'LinuxARM64' | 'LinuxARM32' | 'DarwinX64' | 'DarwinARM64' | 'WindowsX64' | 'WindowsX86' | 'WindowsARM64' */
|
|
254
274
|
readonly buildTarget: string;
|
|
255
275
|
readonly commit: string;
|
|
256
276
|
}
|
|
@@ -272,6 +292,85 @@ declare module 'vscode' {
|
|
|
272
292
|
* @throws an exception when `path` doesn't exist.
|
|
273
293
|
*/
|
|
274
294
|
stat(path: string): Thenable<FileStat>;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Recursively creates the given directory on the remote.
|
|
298
|
+
*
|
|
299
|
+
* @param path The path of the folder to create
|
|
300
|
+
* @throws an exception when `path` is a file, or other i/o operations happen
|
|
301
|
+
*/
|
|
302
|
+
mkdirp(path: string): Thenable<void>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Recursively deletes the given path on the remote.
|
|
306
|
+
*
|
|
307
|
+
* @param path The path of the file or folder to delete.
|
|
308
|
+
* @throws if an i/o error happens during removal. It does not throw if
|
|
309
|
+
* the path already does not exist.
|
|
310
|
+
*/
|
|
311
|
+
rm(path: string): Thenable<void>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Reads the given file from the remote.
|
|
315
|
+
*
|
|
316
|
+
* @param path The path of the file to read.
|
|
317
|
+
* @throws if the path doesn't exist or can't be accessed
|
|
318
|
+
* @returns a readable stream of the file data
|
|
319
|
+
*/
|
|
320
|
+
read(path: string): Thenable<ReadStream>;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Writes the given file on the remote. Truncates the file if it exists.
|
|
324
|
+
*
|
|
325
|
+
* @param path The path of the file to write.
|
|
326
|
+
* @throws if the path can't be accessed
|
|
327
|
+
* @returns a writable `stream` that accepts data, and a `done` promise that
|
|
328
|
+
* will resolve after `stream.end()` is called once the write is complete.
|
|
329
|
+
*/
|
|
330
|
+
write(path: string): Thenable<{ stream: WriteStream; done: Thenable<void> }>;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Connects to the given unix socket or named pipe on the remote.
|
|
334
|
+
*
|
|
335
|
+
* @param path The path of the unix socket or named pipe
|
|
336
|
+
* @throws if the path can't be accessed
|
|
337
|
+
* @returns a duplex stream, and a promise the resolves when both sides
|
|
338
|
+
* have closed.
|
|
339
|
+
*/
|
|
340
|
+
connect(path: string): Thenable<{ stream: WriteStream & ReadStream; done: Thenable<void> }>;
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* Renames the file.
|
|
344
|
+
*
|
|
345
|
+
* @param fromPath The existing file path.
|
|
346
|
+
* @param toPath The new file path.
|
|
347
|
+
* @throws if the original path doesn't exist, or the toPath can't be accessed
|
|
348
|
+
*/
|
|
349
|
+
rename(fromPath: string, toPath: string): Thenable<void>;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Reads the contents of a directory.
|
|
353
|
+
*
|
|
354
|
+
* @param path The path of the folder to read.
|
|
355
|
+
* @throws if the folder doesn't exist
|
|
356
|
+
* @returns a list of directory entries
|
|
357
|
+
*/
|
|
358
|
+
readdir(path: string): Thenable<DirectoryEntry[]>;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface DirectoryEntry {
|
|
362
|
+
/**
|
|
363
|
+
* The type of the file, e.g. is a regular file, a directory, or symbolic link
|
|
364
|
+
* to a file.
|
|
365
|
+
*
|
|
366
|
+
* *Note:* This value might be a bitmask, e.g. `FileType.File | FileType.SymbolicLink`.
|
|
367
|
+
*/
|
|
368
|
+
type: FileType;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Non-absolute name of the file in the directory.
|
|
372
|
+
*/
|
|
373
|
+
name: string;
|
|
275
374
|
}
|
|
276
375
|
|
|
277
376
|
export interface RemoteAuthorityResolver {
|
|
@@ -20,7 +20,8 @@ declare module 'vscode' {
|
|
|
20
20
|
onDidChangeActionButton: Event<void>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Fires when the current history item group changes
|
|
23
|
+
* Fires when the current history item group changes after
|
|
24
|
+
* a user action (ex: commit, checkout, fetch, pull, push)
|
|
24
25
|
*/
|
|
25
26
|
onDidChangeCurrentHistoryItemGroup: Event<void>;
|
|
26
27
|
|
|
@@ -52,6 +53,12 @@ declare module 'vscode' {
|
|
|
52
53
|
readonly label: string;
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
export interface SourceControlHistoryItemStatistics {
|
|
57
|
+
readonly files: number;
|
|
58
|
+
readonly insertions: number;
|
|
59
|
+
readonly deletions: number;
|
|
60
|
+
}
|
|
61
|
+
|
|
55
62
|
export interface SourceControlHistoryItem {
|
|
56
63
|
readonly id: string;
|
|
57
64
|
readonly parentIds: string[];
|
|
@@ -59,6 +66,7 @@ declare module 'vscode' {
|
|
|
59
66
|
readonly description?: string;
|
|
60
67
|
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
61
68
|
readonly timestamp?: number;
|
|
69
|
+
readonly statistics?: SourceControlHistoryItemStatistics;
|
|
62
70
|
}
|
|
63
71
|
|
|
64
72
|
export interface SourceControlHistoryItemChange {
|
|
@@ -0,0 +1,19 @@
|
|
|
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/195474
|
|
8
|
+
|
|
9
|
+
export interface SourceControlInputBoxActionButton {
|
|
10
|
+
readonly command: Command;
|
|
11
|
+
readonly enabled: boolean;
|
|
12
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SourceControlInputBox {
|
|
16
|
+
actionButton?: SourceControlInputBoxActionButton;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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/195474
|
|
8
|
+
|
|
9
|
+
export namespace scm {
|
|
10
|
+
export function registerSourceControlInputBoxValueProvider(sourceControlId: string, provider: SourceControlInputBoxValueProvider): Disposable;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface SourceControlInputBoxValueProviderContext {
|
|
14
|
+
readonly resourceGroupId: string;
|
|
15
|
+
readonly resources: readonly Uri[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SourceControlInputBoxValueProvider {
|
|
19
|
+
readonly label: string;
|
|
20
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
21
|
+
|
|
22
|
+
provideValue(rootUri: Uri, context: SourceControlInputBoxValueProviderContext[], token: CancellationToken): ProviderResult<string | undefined>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
}
|