@codingame/monaco-vscode-rollup-vsix-plugin 1.83.15 → 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.
Files changed (30) hide show
  1. package/package.json +2 -2
  2. package/rollup-vsix-plugin.d.ts +2 -3
  3. package/rollup-vsix-plugin.js +6725 -15
  4. package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
  5. package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
  6. package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
  7. package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
  8. package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
  9. package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
  10. package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
  11. package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
  12. package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
  13. package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
  14. package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
  15. package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
  16. package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
  17. package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
  18. package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
  19. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
  20. package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
  21. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
  22. package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
  23. package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
  24. package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
  25. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
  26. package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
  27. package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
  28. package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
  29. package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
  30. package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
@@ -0,0 +1,375 @@
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 ChatAgentContext {
9
+ /**
10
+ * All of the chat messages so far in the current chat session.
11
+ */
12
+ history: ChatMessage[];
13
+ }
14
+
15
+ /**
16
+ * Represents an error result from a chat request.
17
+ */
18
+ export interface ChatAgentErrorDetails {
19
+ /**
20
+ * An error message that is shown to the user.
21
+ */
22
+ message: string;
23
+
24
+ /**
25
+ * If partial markdown content was sent over the `progress` callback before the response terminated, then this flag
26
+ * can be set to true and it will be rendered with incomplete markdown features patched up.
27
+ *
28
+ * For example, if the response terminated after sending part of a triple-backtick code block, then the editor will
29
+ * render it as a complete code block.
30
+ */
31
+ responseIsIncomplete?: boolean;
32
+
33
+ /**
34
+ * If set to true, the response will be partly blurred out.
35
+ */
36
+ responseIsFiltered?: boolean;
37
+ }
38
+
39
+ /**
40
+ * The result of a chat request.
41
+ */
42
+ export interface ChatAgentResult2 {
43
+ /**
44
+ * If the request resulted in an error, this property defines the error details.
45
+ */
46
+ errorDetails?: ChatAgentErrorDetails;
47
+ }
48
+
49
+ /**
50
+ * Represents the type of user feedback received.
51
+ */
52
+ export enum ChatAgentResultFeedbackKind {
53
+ /**
54
+ * The user marked the result as helpful.
55
+ */
56
+ Unhelpful = 0,
57
+
58
+ /**
59
+ * The user marked the result as unhelpful.
60
+ */
61
+ Helpful = 1,
62
+ }
63
+
64
+ /**
65
+ * Represents user feedback for a result.
66
+ */
67
+ export interface ChatAgentResult2Feedback {
68
+ /**
69
+ * This instance of ChatAgentResult2 is the same instance that was returned from the chat agent,
70
+ * and it can be extended with arbitrary properties if needed.
71
+ */
72
+ readonly result: ChatAgentResult2;
73
+
74
+ /**
75
+ * The kind of feedback that was received.
76
+ */
77
+ readonly kind: ChatAgentResultFeedbackKind;
78
+ }
79
+
80
+ export interface ChatAgentSlashCommand {
81
+ /**
82
+ * A short name by which this command is referred to in the UI, e.g. `fix` or
83
+ * `explain` for commands that fix an issue or explain code.
84
+ *
85
+ * **Note**: The name should be unique among the slash commands provided by this agent.
86
+ */
87
+ readonly name: string;
88
+
89
+ /**
90
+ * Human-readable description explaining what this command does.
91
+ */
92
+ readonly description: string;
93
+
94
+ /**
95
+ * When the user clicks this slash command in `/help`, this text will be submitted to this slash command
96
+ */
97
+ readonly sampleRequest?: string;
98
+
99
+ /**
100
+ * Whether executing the command puts the
101
+ * chat into a persistent mode, where the
102
+ * slash command is prepended to the chat input.
103
+ */
104
+ readonly shouldRepopulate?: boolean;
105
+ /**
106
+ * Placeholder text to render in the chat input
107
+ * when the slash command has been repopulated.
108
+ * Has no effect if `shouldRepopulate` is `false`.
109
+ */
110
+ readonly followupPlaceholder?: string;
111
+ }
112
+
113
+ export interface ChatAgentSlashCommandProvider {
114
+
115
+ /**
116
+ * Returns a list of slash commands that its agent is capable of handling. A slash command
117
+ * can be selected by the user and will then be passed to the {@link ChatAgentHandler handler}
118
+ * via the {@link ChatAgentRequest.slashCommand slashCommand} property.
119
+ *
120
+ *
121
+ * @param token A cancellation token.
122
+ * @returns A list of slash commands. The lack of a result can be signaled by returning `undefined`, `null`, or
123
+ * an empty array.
124
+ */
125
+ provideSlashCommands(token: CancellationToken): ProviderResult<ChatAgentSlashCommand[]>;
126
+ }
127
+
128
+ // TODO@API This should become a progress type, and use vscode.Command
129
+ // TODO@API what's the when-property for? how about not returning it in the first place?
130
+ export interface ChatAgentCommandFollowup {
131
+ commandId: string;
132
+ args?: any[];
133
+ title: string; // supports codicon strings
134
+ when?: string;
135
+ }
136
+
137
+ /**
138
+ * A followup question suggested by the model.
139
+ */
140
+ export interface ChatAgentReplyFollowup {
141
+ /**
142
+ * The message to send to the chat.
143
+ */
144
+ message: string;
145
+
146
+ /**
147
+ * A tooltip to show when hovering over the followup.
148
+ */
149
+ tooltip?: string;
150
+
151
+ /**
152
+ * A title to show the user, when it is different than the message.
153
+ */
154
+ title?: string;
155
+ }
156
+
157
+ export type ChatAgentFollowup = ChatAgentCommandFollowup | ChatAgentReplyFollowup;
158
+
159
+ /**
160
+ * Will be invoked once after each request to get suggested followup questions to show the user. The user can click the followup to send it to the chat.
161
+ */
162
+ export interface FollowupProvider {
163
+ /**
164
+ *
165
+ * @param result The same instance of the result object that was returned by the chat agent, and it can be extended with arbitrary properties if needed.
166
+ * @param token A cancellation token.
167
+ */
168
+ provideFollowups(result: ChatAgentResult2, token: CancellationToken): ProviderResult<ChatAgentFollowup[]>;
169
+ }
170
+
171
+ export interface ChatAgent2 {
172
+
173
+ /**
174
+ * The short name by which this agent is referred to in the UI, e.g `workspace`.
175
+ */
176
+ readonly name: string;
177
+
178
+ /**
179
+ * The full name of this agent.
180
+ */
181
+ fullName: string;
182
+
183
+ /**
184
+ * A human-readable description explaining what this agent does.
185
+ */
186
+ description: string;
187
+
188
+ /**
189
+ * Icon for the agent shown in UI.
190
+ */
191
+ iconPath?: Uri | {
192
+ /**
193
+ * The icon path for the light theme.
194
+ */
195
+ light: Uri;
196
+ /**
197
+ * The icon path for the dark theme.
198
+ */
199
+ dark: Uri;
200
+ } | ThemeIcon;
201
+
202
+ /**
203
+ * This provider will be called to retrieve the agent's slash commands.
204
+ */
205
+ slashCommandProvider?: ChatAgentSlashCommandProvider;
206
+
207
+ /**
208
+ * This provider will be called once after each request to retrieve suggested followup questions.
209
+ */
210
+ followupProvider?: FollowupProvider;
211
+
212
+ /**
213
+ * When the user clicks this agent in `/help`, this text will be submitted to this slash command
214
+ */
215
+ sampleRequest?: string;
216
+
217
+ /**
218
+ * An event that fires whenever feedback for a result is received, e.g. when a user up- or down-votes
219
+ * a result.
220
+ *
221
+ * The passed {@link ChatAgentResult2Feedback.result result} is guaranteed to be the same instance that was
222
+ * previously returned from this chat agent.
223
+ */
224
+ onDidReceiveFeedback: Event<ChatAgentResult2Feedback>;
225
+
226
+ /**
227
+ * TODO@API explain what happens wrt to history, in-flight requests etc...
228
+ * Dispose this agent and free resources
229
+ */
230
+ dispose(): void;
231
+ }
232
+
233
+ export interface ChatAgentRequest {
234
+
235
+ /**
236
+ * The prompt entered by the user. The {@link ChatAgent2.name name} of the agent or the {@link ChatAgentSlashCommand.name slash command}
237
+ * are not part of the prompt.
238
+ *
239
+ * @see {@link ChatAgentRequest.slashCommand}
240
+ */
241
+ prompt: string;
242
+
243
+ /**
244
+ * The {@link ChatAgentSlashCommand slash command} that was selected for this request. It is guaranteed that the passed slash
245
+ * command is an instance that was previously returned from the {@link ChatAgentSlashCommandProvider.provideSlashCommands slash command provider}.
246
+ */
247
+ slashCommand?: ChatAgentSlashCommand;
248
+
249
+ variables: Record<string, ChatVariableValue[]>;
250
+ }
251
+
252
+ export type ChatAgentProgress =
253
+ | ChatAgentContent
254
+ | ChatAgentTask
255
+ | ChatAgentFileTree
256
+ | ChatAgentUsedContext
257
+ | ChatAgentContentReference
258
+ | ChatAgentInlineContentReference
259
+ | ChatAgentProgressMessage;
260
+
261
+ /**
262
+ * Is displayed in the UI to communicate steps of progress to the user. Should be used when the agent may be slow to respond, e.g. due to doing extra work before sending the actual request to the LLM.
263
+ */
264
+ export interface ChatAgentProgressMessage {
265
+ message: string;
266
+ }
267
+
268
+ /**
269
+ * Indicates a piece of content that was used by the chat agent while processing the request. Will be displayed to the user.
270
+ */
271
+ export interface ChatAgentContentReference {
272
+ /**
273
+ * The resource that was referenced.
274
+ */
275
+ reference: Uri | Location;
276
+ }
277
+
278
+ /**
279
+ * A reference to a piece of content that will be rendered inline with the markdown content.
280
+ */
281
+ export interface ChatAgentInlineContentReference {
282
+ /**
283
+ * The resource being referenced.
284
+ */
285
+ inlineReference: Uri | Location;
286
+
287
+ /**
288
+ * An alternate title for the resource.
289
+ */
290
+ title?: string;
291
+ }
292
+
293
+ /**
294
+ * A piece of the chat response's content. Will be merged with other progress pieces as needed, and rendered as markdown.
295
+ */
296
+ export interface ChatAgentContent {
297
+ /**
298
+ * The content as a string of markdown source.
299
+ */
300
+ content: string;
301
+ }
302
+
303
+ /**
304
+ * Represents a piece of the chat response's content that is resolved asynchronously. It is rendered immediately with a placeholder,
305
+ * which is replaced once the full content is available.
306
+ */
307
+ export interface ChatAgentTask {
308
+ /**
309
+ * The markdown string to be rendered immediately.
310
+ */
311
+ placeholder: string;
312
+
313
+ /**
314
+ * A Thenable resolving to the real content. The placeholder will be replaced with this content once it's available.
315
+ */
316
+ resolvedContent: Thenable<ChatAgentContent | ChatAgentFileTree>;
317
+ }
318
+
319
+ /**
320
+ * Represents a tree, such as a file and directory structure, rendered in the chat response.
321
+ */
322
+ export interface ChatAgentFileTree {
323
+ /**
324
+ * The root node of the tree.
325
+ */
326
+ treeData: ChatAgentFileTreeData;
327
+ }
328
+
329
+ /**
330
+ * Represents a node in a chat response tree.
331
+ */
332
+ export interface ChatAgentFileTreeData {
333
+ /**
334
+ * A human-readable string describing this node.
335
+ */
336
+ label: string;
337
+
338
+ /**
339
+ * A Uri for this node, opened when it's clicked.
340
+ */
341
+ uri: Uri;
342
+
343
+ /**
344
+ * The children of this node.
345
+ */
346
+ children?: ChatAgentFileTreeData[];
347
+ }
348
+
349
+ export interface ChatAgentDocumentContext {
350
+ uri: Uri;
351
+ version: number;
352
+ ranges: Range[];
353
+ }
354
+
355
+ /**
356
+ * Document references that should be used by the MappedEditsProvider.
357
+ */
358
+ export interface ChatAgentUsedContext {
359
+ documents: ChatAgentDocumentContext[];
360
+ }
361
+
362
+ export type ChatAgentHandler = (request: ChatAgentRequest, context: ChatAgentContext, progress: Progress<ChatAgentProgress>, token: CancellationToken) => ProviderResult<ChatAgentResult2>;
363
+
364
+ export namespace chat {
365
+
366
+ /**
367
+ * Create a new {@link ChatAgent2 chat agent} instance.
368
+ *
369
+ * @param name Short name by which this agent is referred to in the UI
370
+ * @param handler The reply-handler of the agent.
371
+ * @returns A new chat agent
372
+ */
373
+ export function createChatAgent(name: string, handler: ChatAgentHandler): ChatAgent2;
374
+ }
375
+ }
@@ -0,0 +1,80 @@
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 ChatAgentUserActionEvent {
9
+ readonly result: ChatAgentResult2;
10
+ readonly action: InteractiveSessionCopyAction | InteractiveSessionInsertAction | InteractiveSessionTerminalAction | InteractiveSessionCommandAction | InteractiveSessionFollowupAction | InteractiveSessionBugReportAction;
11
+ }
12
+
13
+ export interface ChatAgent2 {
14
+ onDidPerformAction: Event<ChatAgentUserActionEvent>;
15
+ supportIssueReporting?: boolean;
16
+ }
17
+
18
+ export interface ChatAgentErrorDetails {
19
+ /**
20
+ * If set to true, the message content is completely hidden. Only ChatAgentErrorDetails#message will be shown.
21
+ */
22
+ responseIsRedacted?: boolean;
23
+ }
24
+
25
+ /**
26
+ * This is temporary until inline references are fully supported and adopted
27
+ */
28
+ export interface ChatAgentMarkdownContent {
29
+ markdownContent: MarkdownString;
30
+ }
31
+
32
+ export interface ChatAgentDetectedAgent {
33
+ agentName: string;
34
+ command?: ChatAgentSlashCommand;
35
+ }
36
+
37
+ export interface ChatAgentVulnerability {
38
+ title: string;
39
+ description: string;
40
+ // id: string; // Later we will need to be able to link these across multiple content chunks.
41
+ }
42
+
43
+ export interface ChatAgentContent {
44
+ vulnerabilities?: ChatAgentVulnerability[];
45
+ }
46
+
47
+ export type ChatAgentExtendedProgress = ChatAgentProgress
48
+ | ChatAgentMarkdownContent
49
+ | ChatAgentDetectedAgent;
50
+
51
+ export interface ChatAgent2 {
52
+ /**
53
+ * Provide a set of variables that can only be used with this agent.
54
+ */
55
+ agentVariableProvider?: { provider: ChatAgentCompletionItemProvider; triggerCharacters: string[] };
56
+ }
57
+
58
+ export interface ChatAgentCompletionItemProvider {
59
+ provideCompletionItems(query: string, token: CancellationToken): ProviderResult<ChatAgentCompletionItem[]>;
60
+ }
61
+
62
+ export class ChatAgentCompletionItem {
63
+ label: string | CompletionItemLabel;
64
+ values: ChatVariableValue[];
65
+ insertText?: string;
66
+ detail?: string;
67
+ documentation?: string | MarkdownString;
68
+
69
+ constructor(label: string | CompletionItemLabel, values: ChatVariableValue[]);
70
+ }
71
+
72
+ export type ChatAgentExtendedHandler = (request: ChatAgentRequest, context: ChatAgentContext, progress: Progress<ChatAgentExtendedProgress>, token: CancellationToken) => ProviderResult<ChatAgentResult2>;
73
+
74
+ export namespace chat {
75
+ /**
76
+ * Create a chat agent with the extended progress type
77
+ */
78
+ export function createChatAgent(name: string, handler: ChatAgentExtendedHandler): ChatAgent2;
79
+ }
80
+ }
@@ -18,7 +18,11 @@ declare module 'vscode' {
18
18
  }
19
19
 
20
20
  export interface ChatResponseProviderMetadata {
21
- // TODO: add way to compute token count
21
+ /**
22
+ * The name of the model that is used for this chat access. It is expected that the model name can
23
+ * be used to lookup properties like token limits and ChatML support
24
+ */
25
+ // TODO@API rename to model
22
26
  name: string;
23
27
  }
24
28
 
@@ -5,32 +5,90 @@
5
5
 
6
6
  declare module 'vscode' {
7
7
 
8
- export interface ChatResponseFragment {
9
- index: number;
10
- part: string;
8
+ export interface ChatResponseStream {
9
+
10
+ /**
11
+ * The response stream.
12
+ */
13
+ readonly response: AsyncIterable<string>;
14
+
15
+ /**
16
+ * The variant of multiple responses. This is used to disambiguate between multiple
17
+ * response streams when having asked for multiple response options
18
+ */
19
+ readonly option: number;
20
+ }
21
+
22
+ export interface ChatRequest {
23
+
24
+ /**
25
+ * The overall result of the request which represents failure or success
26
+ * but _not_ the actual response or responses
27
+ */
28
+ result: Thenable<any>;
29
+
30
+ /**
31
+ * The _default response_ stream. This is the stream of the first response option
32
+ * receiving data.
33
+ *
34
+ * Usually there is only one response option and this stream is more convienient to use
35
+ * than the {@link onDidStartResponseStream `onDidStartResponseStream`} event.
36
+ */
37
+ response: AsyncIterable<string>;
38
+
39
+ /**
40
+ * An event that fires whenever a new response option is available. The response
41
+ * itself is a stream of the actual response.
42
+ *
43
+ * *Note* that the first time this event fires, the {@link ChatResponseStream.response response stream}
44
+ * is the same as the {@link response `default response stream`}.
45
+ *
46
+ * *Note* that unless requested there is only one response option, so this event will only fire
47
+ * once.
48
+ */
49
+ onDidStartResponseStream: Event<ChatResponseStream>;
50
+
51
+ /**
52
+ * Cancel this request.
53
+ */
54
+ // TODO@API remove this? We pass a token to makeRequest call already
55
+ cancel(): void;
11
56
  }
12
57
 
13
58
  /**
14
59
  * Represents access to using a chat provider (LLM). Access is granted and temporary, usually only valid
15
- * for the duration of an user interaction.
60
+ * for the duration of an user interaction or specific time frame.
16
61
  */
17
62
  export interface ChatAccess {
18
63
 
19
64
  /**
20
- * Whether the access to chat has been revoked. This happens when the user interaction that allowed for
21
- * chat access is finished.
65
+ * Whether the access to chat has been revoked. This happens when the condition that allowed for
66
+ * chat access doesn't hold anymore, e.g a user interaction has ended.
22
67
  */
23
68
  isRevoked: boolean;
24
69
 
25
70
  /**
26
- * TODO: return an AsyncIterable instead of asking to pass Progress<...>?
71
+ * The name of the model that is used for this chat access. It is expected that the model name can
72
+ * be used to lookup properties like token limits and ChatML support
73
+ */
74
+ model: string;
75
+
76
+ /**
77
+ * Make a chat request.
78
+ *
79
+ * The actual response will be reported back via the `progress` callback. The promise returned by this function
80
+ * returns a overall result which represents failure or success of the request.
81
+ *
82
+ * Chat can be asked for multiple response options. In that case the `progress` callback will be called multiple
83
+ * time with different `ChatResponseStream` objects. Each object represents a different response option and the actual
84
+ * response will be reported back via their `stream` property.
85
+ *
86
+ * *Note:* This will throw an error if access has been revoked.
27
87
  *
28
88
  * @param messages
29
89
  * @param options
30
- * @param progress
31
- * @param token
32
90
  */
33
- makeRequest(messages: ChatMessage[], options: { [name: string]: any }, progress: Progress<ChatResponseFragment>, token: CancellationToken): Thenable<any>;
91
+ makeRequest(messages: ChatMessage[], options: { [name: string]: any }, token: CancellationToken): ChatRequest;
34
92
  }
35
93
 
36
94
  export namespace chat {
@@ -0,0 +1,21 @@
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
+ /**
12
+ * The uri of the history notebook in the interactive window.
13
+ */
14
+ readonly providerId: string;
15
+ constructor(providerId: string);
16
+ }
17
+
18
+ export interface Tab {
19
+ readonly input: TabInputText | TabInputTextDiff | TabInputCustom | TabInputWebview | TabInputNotebook | TabInputNotebookDiff | TabInputTerminal | TabInputChat | unknown;
20
+ }
21
+ }
@@ -17,7 +17,11 @@ declare module 'vscode' {
17
17
 
18
18
  export interface ChatVariableValue {
19
19
  level: ChatVariableLevel;
20
- value: string;
20
+ /**
21
+ * An optional type tag for extensions to communicate the kind of the variable. An extension might use it to interpret the shape of `value`.
22
+ */
23
+ kind?: string;
24
+ value: string | Uri | any;
21
25
  description?: string;
22
26
  }
23
27
 
@@ -0,0 +1,16 @@
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 CodeAction {
9
+ /**
10
+ * Marks this as an AI action.
11
+ *
12
+ * Ex: A quick fix should be marked AI if it invokes AI.
13
+ */
14
+ isAI?: boolean;
15
+ }
16
+ }
@@ -0,0 +1,7 @@
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
+ // empty placeholder declaration for the `scm/inputBox`-menu contribution point
7
+ // https://github.com/microsoft/vscode/issues/195474
@@ -0,0 +1,51 @@
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/169724 @bpasero
7
+
8
+ declare module 'vscode' {
9
+
10
+ export interface FileSystemWatcherOptions {
11
+
12
+ /**
13
+ * Ignore when files have been created.
14
+ */
15
+ readonly ignoreCreateEvents?: boolean;
16
+
17
+ /**
18
+ * Ignore when files have been changed.
19
+ */
20
+ readonly ignoreChangeEvents?: boolean;
21
+
22
+ /**
23
+ * Ignore when files have been deleted.
24
+ */
25
+ readonly ignoreDeleteEvents?: boolean;
26
+
27
+ /**
28
+ * An optional set of glob patterns to exclude from watching.
29
+ * Glob patterns are always matched relative to the watched folder.
30
+ */
31
+ readonly excludes?: string[];
32
+ }
33
+
34
+ export namespace workspace {
35
+
36
+ /**
37
+ * A variant of {@link workspace.createFileSystemWatcher} that optionally allows to specify
38
+ * a set of glob patterns to exclude from watching.
39
+ *
40
+ * It provides the following advantages over the other {@link workspace.createFileSystemWatcher}
41
+ * method:
42
+ * - the configured excludes from `files.watcherExclude` setting are NOT applied
43
+ * - requests for recursive file watchers inside the opened workspace are NOT ignored
44
+ * - the watcher is ONLY notified for events from this request and not from any other watcher
45
+ *
46
+ * As such, this method is prefered in cases where you want full control over the watcher behavior
47
+ * without being impacted by settings or other watchers that are installed.
48
+ */
49
+ export function createFileSystemWatcher(pattern: RelativePattern, options?: FileSystemWatcherOptions): FileSystemWatcher;
50
+ }
51
+ }