@codingame/monaco-vscode-rollup-vsix-plugin 9.0.2 → 10.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 +3 -3
- package/rollup-vsix-plugin.js +6807 -6253
- package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +6 -0
- package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +5 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +30 -3
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +4 -0
- package/vscode-dts/vscode.proposed.contribChatParticipantDetection.d.ts +1 -0
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +1 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +8 -2
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +1 -1
- package/vscode-dts/vscode.proposed.lmTools.d.ts +47 -9
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +43 -1
- package/vscode-dts/vscode.proposed.notebookReplDocument.d.ts +17 -4
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +35 -33
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemChangesMenu.d.ts +0 -7
- package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +0 -10
|
@@ -40,6 +40,11 @@ declare module 'vscode' {
|
|
|
40
40
|
* An AITextSearchProvider provides additional AI text search results in the workspace.
|
|
41
41
|
*/
|
|
42
42
|
export interface AITextSearchProvider {
|
|
43
|
+
/**
|
|
44
|
+
* The name of the AI searcher. Will be displayed as `{name} Results` in the Search View.
|
|
45
|
+
*/
|
|
46
|
+
readonly name?: string;
|
|
47
|
+
|
|
43
48
|
/**
|
|
44
49
|
* Provide results that match the given text pattern.
|
|
45
50
|
* @param query The parameter for this query.
|
|
@@ -48,6 +53,7 @@ declare module 'vscode' {
|
|
|
48
53
|
* @param token A cancellation token.
|
|
49
54
|
*/
|
|
50
55
|
provideAITextSearchResults(query: string, options: AITextSearchOptions, progress: Progress<TextSearchResult>, token: CancellationToken): ProviderResult<TextSearchComplete>;
|
|
56
|
+
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
export namespace workspace {
|
|
@@ -8,6 +8,11 @@ declare module 'vscode' {
|
|
|
8
8
|
* An AITextSearchProvider provides additional AI text search results in the workspace.
|
|
9
9
|
*/
|
|
10
10
|
export interface AITextSearchProviderNew {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the AI searcher. Will be displayed as `{name} Results` in the Search View.
|
|
13
|
+
*/
|
|
14
|
+
readonly name?: string;
|
|
15
|
+
|
|
11
16
|
/**
|
|
12
17
|
* WARNING: VERY EXPERIMENTAL.
|
|
13
18
|
*
|
|
@@ -36,6 +36,11 @@ declare module 'vscode' {
|
|
|
36
36
|
constructor(value: string | MarkdownString, vulnerabilities: ChatVulnerability[]);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export class ChatResponseCodeblockUriPart {
|
|
40
|
+
value: Uri;
|
|
41
|
+
constructor(value: Uri);
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
/**
|
|
40
45
|
* Displays a {@link Command command} as a button in the chat response.
|
|
41
46
|
*/
|
|
@@ -129,6 +134,18 @@ declare module 'vscode' {
|
|
|
129
134
|
constructor(uri: Uri, range: Range);
|
|
130
135
|
}
|
|
131
136
|
|
|
137
|
+
// Extended to add `SymbolInformation`. Would also be added to `constructor`.
|
|
138
|
+
export interface ChatResponseAnchorPart {
|
|
139
|
+
/**
|
|
140
|
+
* The target of this anchor.
|
|
141
|
+
*
|
|
142
|
+
* If this is a {@linkcode Uri} or {@linkcode Location}, this is rendered as a normal link.
|
|
143
|
+
*
|
|
144
|
+
* If this is a {@linkcode SymbolInformation}, this is rendered as a symbol link.
|
|
145
|
+
*/
|
|
146
|
+
value2: Uri | Location | SymbolInformation;
|
|
147
|
+
}
|
|
148
|
+
|
|
132
149
|
export interface ChatResponseStream {
|
|
133
150
|
|
|
134
151
|
/**
|
|
@@ -143,6 +160,7 @@ declare module 'vscode' {
|
|
|
143
160
|
|
|
144
161
|
textEdit(target: Uri, edits: TextEdit | TextEdit[]): void;
|
|
145
162
|
markdownWithVulnerabilities(value: string | MarkdownString, vulnerabilities: ChatVulnerability[]): void;
|
|
163
|
+
codeblockUri(uri: Uri): void;
|
|
146
164
|
detectedParticipant(participant: string, command?: ChatCommand): void;
|
|
147
165
|
push(part: ChatResponsePart | ChatResponseTextEditPart | ChatResponseDetectedParticipantPart | ChatResponseWarningPart | ChatResponseProgressPart2): void;
|
|
148
166
|
|
|
@@ -196,6 +214,8 @@ declare module 'vscode' {
|
|
|
196
214
|
* The `data` for any confirmations that were rejected
|
|
197
215
|
*/
|
|
198
216
|
rejectedConfirmationData?: any[];
|
|
217
|
+
|
|
218
|
+
userSelectedModel?: LanguageModelChat;
|
|
199
219
|
}
|
|
200
220
|
|
|
201
221
|
// TODO@API fit this into the stream
|
|
@@ -250,7 +270,7 @@ declare module 'vscode' {
|
|
|
250
270
|
export interface ChatParticipantMetadata {
|
|
251
271
|
participant: string;
|
|
252
272
|
command?: string;
|
|
253
|
-
disambiguation: {
|
|
273
|
+
disambiguation: { category: string; description: string; examples: string[] }[];
|
|
254
274
|
}
|
|
255
275
|
|
|
256
276
|
export interface ChatParticipantDetectionResult {
|
|
@@ -288,7 +308,14 @@ declare module 'vscode' {
|
|
|
288
308
|
codeBlockIndex: number;
|
|
289
309
|
totalCharacters: number;
|
|
290
310
|
newFile?: boolean;
|
|
291
|
-
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export interface ChatApplyAction {
|
|
314
|
+
// eslint-disable-next-line local/vscode-dts-string-type-literals
|
|
315
|
+
kind: 'apply';
|
|
316
|
+
codeBlockIndex: number;
|
|
317
|
+
totalCharacters: number;
|
|
318
|
+
newFile?: boolean;
|
|
292
319
|
codeMapper?: string;
|
|
293
320
|
}
|
|
294
321
|
|
|
@@ -323,7 +350,7 @@ declare module 'vscode' {
|
|
|
323
350
|
|
|
324
351
|
export interface ChatUserActionEvent {
|
|
325
352
|
readonly result: ChatResult;
|
|
326
|
-
readonly action: ChatCopyAction | ChatInsertAction | ChatTerminalAction | ChatCommandAction | ChatFollowupAction | ChatBugReportAction | ChatEditorAction;
|
|
353
|
+
readonly action: ChatCopyAction | ChatInsertAction | ChatApplyAction | ChatTerminalAction | ChatCommandAction | ChatFollowupAction | ChatBugReportAction | ChatEditorAction;
|
|
327
354
|
}
|
|
328
355
|
|
|
329
356
|
export interface ChatPromptReference {
|
|
@@ -63,6 +63,10 @@ declare module 'vscode' {
|
|
|
63
63
|
* Additionally, the extension can provide a label that will be shown in the UI.
|
|
64
64
|
*/
|
|
65
65
|
auth?: true | { label: string };
|
|
66
|
+
|
|
67
|
+
// TODO@API maybe an enum, LanguageModelChatProviderPickerAvailability?
|
|
68
|
+
readonly isDefault?: boolean;
|
|
69
|
+
readonly isUserSelectable?: boolean;
|
|
66
70
|
}
|
|
67
71
|
|
|
68
72
|
export interface ChatResponseProviderMetadata {
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
// empty placeholder declaration for the `scm/
|
|
7
|
-
// empty placeholder declaration for the `scm/outgoingChanges/historyItem/context`-menu contribution point
|
|
6
|
+
// empty placeholder declaration for the `scm/historyItem/context`-menu contribution point
|
|
8
7
|
// https://github.com/microsoft/vscode/issues/201997
|
|
@@ -3,12 +3,18 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
+
// version: 2
|
|
7
|
+
|
|
6
8
|
declare module 'vscode' {
|
|
7
9
|
|
|
8
|
-
export
|
|
10
|
+
export interface ChatWelcomeMessageContent {
|
|
11
|
+
icon: ThemeIcon;
|
|
12
|
+
title: string;
|
|
13
|
+
message: MarkdownString;
|
|
14
|
+
}
|
|
9
15
|
|
|
10
16
|
export interface ChatWelcomeMessageProvider {
|
|
11
|
-
provideWelcomeMessage(
|
|
17
|
+
provideWelcomeMessage?(token: CancellationToken): ProviderResult<ChatWelcomeMessageContent>;
|
|
12
18
|
provideSampleQuestions?(location: ChatLocation, token: CancellationToken): ProviderResult<ChatFollowup[]>;
|
|
13
19
|
}
|
|
14
20
|
|
|
@@ -61,7 +61,7 @@ declare module 'vscode' {
|
|
|
61
61
|
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
62
62
|
handleDidPartiallyAcceptCompletionItem?(completionItem: InlineCompletionItem, info: PartialAcceptInfo): void;
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
provideInlineEditsForRange?(document: TextDocument, range: Range, context: InlineCompletionContext, token: CancellationToken): ProviderResult<InlineCompletionItem[] | InlineCompletionList>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface InlineCompletionContext {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
*--------------------------------------------------------------------------------------------*/
|
|
5
5
|
|
|
6
|
-
// version:
|
|
6
|
+
// version: 7
|
|
7
7
|
// https://github.com/microsoft/vscode/issues/213274
|
|
8
8
|
|
|
9
9
|
declare module 'vscode' {
|
|
@@ -73,14 +73,10 @@ declare module 'vscode' {
|
|
|
73
73
|
|
|
74
74
|
export interface LanguageModelToolResult {
|
|
75
75
|
/**
|
|
76
|
-
* The result can contain arbitrary representations of the content.
|
|
76
|
+
* The result can contain arbitrary representations of the content. Use {@link LanguageModelToolInvocationOptions.requested} to request particular types.
|
|
77
|
+
* `text/plain` is required to be supported by all tools. Another example might be a `PromptElementJSON` from `@vscode/prompt-tsx`, using the `contentType` exported by that library.
|
|
77
78
|
*/
|
|
78
79
|
[contentType: string]: any;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* A string representation of the result which can be incorporated back into an LLM prompt without any special handling.
|
|
82
|
-
*/
|
|
83
|
-
toString(): string;
|
|
84
80
|
}
|
|
85
81
|
|
|
86
82
|
// Tool registration/invoking between extensions
|
|
@@ -98,17 +94,30 @@ declare module 'vscode' {
|
|
|
98
94
|
|
|
99
95
|
/**
|
|
100
96
|
* Invoke a tool with the given parameters.
|
|
101
|
-
* TODO@API Could request a set of contentTypes to be returned so they don't all need to be computed?
|
|
102
97
|
*/
|
|
103
98
|
export function invokeTool(id: string, options: LanguageModelToolInvocationOptions, token: CancellationToken): Thenable<LanguageModelToolResult>;
|
|
104
99
|
}
|
|
105
100
|
|
|
101
|
+
export type ChatParticipantToolToken = unknown;
|
|
102
|
+
|
|
106
103
|
export interface LanguageModelToolInvocationOptions {
|
|
104
|
+
/**
|
|
105
|
+
* When this tool is being invoked within the context of a chat request, this token should be passed from {@link ChatRequest.toolInvocationToken}.
|
|
106
|
+
* In that case, a progress bar will be automatically shown for the tool invocation in the chat response view. If the tool is being invoked
|
|
107
|
+
* outside of a chat request, `undefined` should be passed instead.
|
|
108
|
+
*/
|
|
109
|
+
toolInvocationToken: ChatParticipantToolToken | undefined;
|
|
110
|
+
|
|
107
111
|
/**
|
|
108
112
|
* Parameters with which to invoke the tool.
|
|
109
113
|
*/
|
|
110
114
|
parameters: Object;
|
|
111
115
|
|
|
116
|
+
/**
|
|
117
|
+
* A tool invoker can request that particular content types be returned from the tool. All tools are required to support `text/plain`.
|
|
118
|
+
*/
|
|
119
|
+
requestedContentTypes: string[];
|
|
120
|
+
|
|
112
121
|
/**
|
|
113
122
|
* Options to hint at how many tokens the tool should return in its response.
|
|
114
123
|
*/
|
|
@@ -150,11 +159,35 @@ declare module 'vscode' {
|
|
|
150
159
|
* A JSON schema for the parameters this tool accepts.
|
|
151
160
|
*/
|
|
152
161
|
parametersSchema?: JSONSchema;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* The list of content types that the tool has declared support for.
|
|
165
|
+
*/
|
|
166
|
+
supportedContentTypes: string[];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface LanguageModelToolProvideConfirmationMessageOptions {
|
|
170
|
+
participantName: string;
|
|
171
|
+
parameters: any;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface LanguageModelToolConfirmationMessages {
|
|
175
|
+
title: string;
|
|
176
|
+
message: string | MarkdownString;
|
|
153
177
|
}
|
|
154
178
|
|
|
155
179
|
export interface LanguageModelTool {
|
|
156
|
-
// TODO@API should it be LanguageModelToolResult | string?
|
|
157
180
|
invoke(options: LanguageModelToolInvocationOptions, token: CancellationToken): ProviderResult<LanguageModelToolResult>;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* This can be implemented to customize the message shown to the user when a tool requires confirmation.
|
|
184
|
+
*/
|
|
185
|
+
provideToolConfirmationMessages?(options: LanguageModelToolProvideConfirmationMessageOptions, token: CancellationToken): Thenable<LanguageModelToolConfirmationMessages>;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* This message will be shown with the progress notification when the tool is invoked in a chat session.
|
|
189
|
+
*/
|
|
190
|
+
provideToolInvocationMessage?(parameters: any, token: CancellationToken): Thenable<string>;
|
|
158
191
|
}
|
|
159
192
|
|
|
160
193
|
export interface ChatLanguageModelToolReference {
|
|
@@ -184,6 +217,11 @@ declare module 'vscode' {
|
|
|
184
217
|
* string-manipulation of the prompt.
|
|
185
218
|
*/
|
|
186
219
|
readonly toolReferences: readonly ChatLanguageModelToolReference[];
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* A token that can be passed to {@link lm.invokeTool} when invoking a tool inside the context of handling a chat request.
|
|
223
|
+
*/
|
|
224
|
+
readonly toolInvocationToken: ChatParticipantToolToken;
|
|
187
225
|
}
|
|
188
226
|
|
|
189
227
|
export interface ChatRequestTurn {
|
|
@@ -11,8 +11,24 @@ declare module 'vscode' {
|
|
|
11
11
|
readonly ranges: Range[];
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export interface ConversationRequest {
|
|
15
|
+
readonly type: 'request';
|
|
16
|
+
readonly message: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ConversationResponse {
|
|
20
|
+
readonly type: 'response';
|
|
21
|
+
readonly message: string;
|
|
22
|
+
readonly references?: DocumentContextItem[];
|
|
23
|
+
}
|
|
24
|
+
|
|
14
25
|
export interface MappedEditsContext {
|
|
15
|
-
documents: DocumentContextItem[][];
|
|
26
|
+
readonly documents: DocumentContextItem[][];
|
|
27
|
+
/**
|
|
28
|
+
* The conversation that led to the current code block(s).
|
|
29
|
+
* The last conversation part contains the code block(s) for which the code mapper should provide edits.
|
|
30
|
+
*/
|
|
31
|
+
readonly conversation?: (ConversationRequest | ConversationResponse)[];
|
|
16
32
|
}
|
|
17
33
|
|
|
18
34
|
/**
|
|
@@ -36,7 +52,33 @@ declare module 'vscode' {
|
|
|
36
52
|
): ProviderResult<WorkspaceEdit | null>;
|
|
37
53
|
}
|
|
38
54
|
|
|
55
|
+
export interface MappedEditsRequest {
|
|
56
|
+
readonly codeBlocks: { code: string; resource: Uri }[];
|
|
57
|
+
readonly conversation: (ConversationRequest | ConversationResponse)[]; // for every prior response that contains codeblocks, make sure we pass the code as well as the resources based on the reported codemapper URIs
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface MappedEditsResponseStream {
|
|
61
|
+
textEdit(target: Uri, edits: TextEdit | TextEdit[]): void;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface MappedEditsResult {
|
|
65
|
+
readonly errorMessage?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Interface for providing mapped edits for a given document.
|
|
70
|
+
*/
|
|
71
|
+
export interface MappedEditsProvider2 {
|
|
72
|
+
provideMappedEdits(
|
|
73
|
+
request: MappedEditsRequest,
|
|
74
|
+
result: MappedEditsResponseStream,
|
|
75
|
+
token: CancellationToken
|
|
76
|
+
): ProviderResult<MappedEditsResult>;
|
|
77
|
+
}
|
|
78
|
+
|
|
39
79
|
namespace chat {
|
|
40
80
|
export function registerMappedEditsProvider(documentSelector: DocumentSelector, provider: MappedEditsProvider): Disposable;
|
|
81
|
+
|
|
82
|
+
export function registerMappedEditsProvider2(provider: MappedEditsProvider2): Disposable;
|
|
41
83
|
}
|
|
42
84
|
}
|
|
@@ -8,13 +8,26 @@ declare module 'vscode' {
|
|
|
8
8
|
export interface NotebookDocumentShowOptions {
|
|
9
9
|
/**
|
|
10
10
|
* The notebook should be opened in a REPL editor,
|
|
11
|
-
* where the last cell of the notebook is an input box and the
|
|
11
|
+
* where the last cell of the notebook is an input box and the other cells are the read-only history.
|
|
12
|
+
* When the value is a string, it will be used as the label for the editor tab.
|
|
12
13
|
*/
|
|
13
|
-
readonly asRepl?: boolean
|
|
14
|
+
readonly asRepl?: boolean | string | {
|
|
15
|
+
/**
|
|
16
|
+
* The label to be used for the editor tab.
|
|
17
|
+
*/
|
|
18
|
+
readonly label: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
14
21
|
|
|
22
|
+
export interface NotebookEditor {
|
|
15
23
|
/**
|
|
16
|
-
*
|
|
24
|
+
* Information about the REPL editor if the notebook was opened as a repl.
|
|
17
25
|
*/
|
|
18
|
-
|
|
26
|
+
replOptions?: {
|
|
27
|
+
/**
|
|
28
|
+
* The index where new cells should be appended.
|
|
29
|
+
*/
|
|
30
|
+
appendIndex: number;
|
|
31
|
+
};
|
|
19
32
|
}
|
|
20
33
|
}
|
|
@@ -11,41 +11,32 @@ declare module 'vscode' {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface SourceControlHistoryProvider {
|
|
14
|
-
|
|
14
|
+
readonly currentHistoryItemRef: SourceControlHistoryItemRef | undefined;
|
|
15
|
+
readonly currentHistoryItemRemoteRef: SourceControlHistoryItemRef | undefined;
|
|
16
|
+
readonly currentHistoryItemBaseRef: SourceControlHistoryItemRef | undefined;
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
|
-
* Fires when the current history item
|
|
18
|
-
* a user action (ex: commit, checkout, fetch, pull, push)
|
|
19
|
+
* Fires when the current history item refs (local, remote, base)
|
|
20
|
+
* change after a user action (ex: commit, checkout, fetch, pull, push)
|
|
19
21
|
*/
|
|
20
|
-
|
|
22
|
+
onDidChangeCurrentHistoryItemRefs: Event<void>;
|
|
21
23
|
|
|
22
24
|
/**
|
|
23
|
-
* Fires when
|
|
25
|
+
* Fires when history item refs change
|
|
24
26
|
*/
|
|
25
|
-
|
|
27
|
+
onDidChangeHistoryItemRefs: Event<SourceControlHistoryItemRefsChangeEvent>;
|
|
26
28
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
provideHistoryItemSummary?(historyItemId: string, historyItemParentId: string | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItem>;
|
|
29
|
+
provideHistoryItemRefs(historyItemRefs: string[] | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItemRef[]>;
|
|
30
|
+
provideHistoryItems(options: SourceControlHistoryOptions, token: CancellationToken): ProviderResult<SourceControlHistoryItem[]>;
|
|
30
31
|
provideHistoryItemChanges(historyItemId: string, historyItemParentId: string | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItemChange[]>;
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
resolveHistoryItemGroupCommonAncestor2(historyItemGroupIds: string[], token: CancellationToken): ProviderResult<string>;
|
|
33
|
+
resolveHistoryItemRefsCommonAncestor(historyItemRefs: string[], token: CancellationToken): ProviderResult<string>;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export interface SourceControlHistoryOptions {
|
|
37
|
-
readonly cursor?: string;
|
|
38
37
|
readonly skip?: number;
|
|
39
38
|
readonly limit?: number | { id?: string };
|
|
40
|
-
readonly
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface SourceControlHistoryItemGroup {
|
|
44
|
-
readonly id: string;
|
|
45
|
-
readonly name: string;
|
|
46
|
-
readonly revision?: string;
|
|
47
|
-
readonly base?: Omit<Omit<SourceControlHistoryItemGroup, 'base'>, 'remote'>;
|
|
48
|
-
readonly remote?: Omit<Omit<SourceControlHistoryItemGroup, 'base'>, 'remote'>;
|
|
39
|
+
readonly historyItemRefs?: readonly string[];
|
|
49
40
|
}
|
|
50
41
|
|
|
51
42
|
export interface SourceControlHistoryItemStatistics {
|
|
@@ -54,20 +45,24 @@ declare module 'vscode' {
|
|
|
54
45
|
readonly deletions: number;
|
|
55
46
|
}
|
|
56
47
|
|
|
57
|
-
export interface SourceControlHistoryItemLabel {
|
|
58
|
-
readonly title: string;
|
|
59
|
-
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
48
|
export interface SourceControlHistoryItem {
|
|
63
49
|
readonly id: string;
|
|
64
50
|
readonly parentIds: string[];
|
|
65
51
|
readonly message: string;
|
|
52
|
+
readonly displayId?: string;
|
|
66
53
|
readonly author?: string;
|
|
67
|
-
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
68
54
|
readonly timestamp?: number;
|
|
69
55
|
readonly statistics?: SourceControlHistoryItemStatistics;
|
|
70
|
-
readonly
|
|
56
|
+
readonly references?: SourceControlHistoryItemRef[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface SourceControlHistoryItemRef {
|
|
60
|
+
readonly id: string;
|
|
61
|
+
readonly name: string;
|
|
62
|
+
readonly description?: string;
|
|
63
|
+
readonly revision?: string;
|
|
64
|
+
readonly category?: string;
|
|
65
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
71
66
|
}
|
|
72
67
|
|
|
73
68
|
export interface SourceControlHistoryItemChange {
|
|
@@ -77,10 +72,17 @@ declare module 'vscode' {
|
|
|
77
72
|
readonly renameUri: Uri | undefined;
|
|
78
73
|
}
|
|
79
74
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// }
|
|
75
|
+
export interface SourceControlHistoryItemRefsChangeEvent {
|
|
76
|
+
readonly added: readonly SourceControlHistoryItemRef[];
|
|
77
|
+
readonly removed: readonly SourceControlHistoryItemRef[];
|
|
78
|
+
readonly modified: readonly SourceControlHistoryItemRef[];
|
|
85
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Flag to indicate if the operation that caused the event to trigger was due
|
|
82
|
+
* to a user action or a background operation (ex: Auto Fetch). The flag is used
|
|
83
|
+
* to determine whether to automatically refresh the user interface or present
|
|
84
|
+
* the user with a visual cue that the user interface is outdated.
|
|
85
|
+
*/
|
|
86
|
+
readonly silent: boolean;
|
|
87
|
+
}
|
|
86
88
|
}
|
|
@@ -1,7 +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
|
-
// empty placeholder declaration for the `scm/historyItemChanges/title`-menu contribution point
|
|
7
|
-
// https://github.com/microsoft/vscode/issues/201997
|
|
@@ -1,10 +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
|
-
// empty placeholder declaration for the `scm/incomingChanges`-menu contribution point
|
|
7
|
-
// empty placeholder declaration for the `scm/incomingChanges/context`-menu contribution point
|
|
8
|
-
// empty placeholder declaration for the `scm/outgoingChanges`-menu contribution point
|
|
9
|
-
// empty placeholder declaration for the `scm/outgoingChanges/context`-menu contribution point
|
|
10
|
-
// https://github.com/microsoft/vscode/issues/201997
|