@codingame/monaco-vscode-extensions-service-override 1.82.6 → 1.83.1
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.
|
@@ -5,9 +5,9 @@ import { UriComponents, URI } from 'vscode/vscode/vs/base/common/uri';
|
|
|
5
5
|
import { SerializedError } from 'vscode/vscode/vs/base/common/errors';
|
|
6
6
|
import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import { PerformanceMark } from 'vscode/vscode/vs/base/common/performance';
|
|
8
|
+
import { ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
8
9
|
import { Command } from 'vscode/vscode/vs/editor/common/languages';
|
|
9
10
|
import { IConfigurationData, ConfigurationTarget, IConfigurationOverrides, IConfigurationChange } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
10
|
-
import { ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
11
11
|
import { IExtensionDescription, ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
12
12
|
import { IRemoteConnectionData } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
13
13
|
import { ClassifiedEvent, OmitMetadata, IGDPRProperty, StrictPropertyCheck } from 'vscode/vscode/vs/platform/telemetry/common/gdprTypings';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.83.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
16
|
-
"description": "VSCode public API plugged on the monaco editor - extensions service-override
|
|
16
|
+
"description": "VSCode public API plugged on the monaco editor - extensions service-override",
|
|
17
17
|
"main": "index.js",
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.
|
|
22
|
-
"monaco-editor": "0.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.1",
|
|
22
|
+
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/vscode-proposed.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vscode from 'vscode';
|
|
2
|
-
import { CancellationToken, ProviderResult, Disposable, Uri,
|
|
2
|
+
import { CancellationToken, ProviderResult, Disposable, Uri, MarkdownString, Progress, ThemeIcon, ThemeColor, TextDocument, WebviewPanel, DebugSession, Event, Range, DataTransfer, SnippetString, WorkspaceEdit, WorkspaceFolder, TextEditor, Webview, CommentThreadCollapsibleState, CommentThreadState, CommentThread, GlobPattern, Command, Selection, TextEdit, CompletionItemKind, DocumentSelector, NotebookDocument, NotebookControllerAffinity, NotebookEditor, QuickInput, FileStat, TabInputText, TabInputTextDiff, TabInputCustom, TabInputWebview, TabInputNotebook, TabInputNotebookDiff, TabInputTerminal, TerminalDimensions, WebviewOptions, Position, TestMessage, TestRunRequest, TestItem, AccessibilityInformation, DocumentDropEditProvider, TreeViewExpansionEvent, TreeViewSelectionChangeEvent, TreeViewVisibilityChangeEvent, TreeCheckboxChangeEvent, ViewBadge, NotebookSerializer } from 'vscode';
|
|
3
3
|
export * from 'vscode';
|
|
4
4
|
|
|
5
5
|
// https://github.com/microsoft/vscode/issues/190909
|
|
@@ -138,6 +138,33 @@ declare namespace authentication {
|
|
|
138
138
|
|
|
139
139
|
constructor(role: ChatMessageRole, content: string);
|
|
140
140
|
}
|
|
141
|
+
interface ChatAgentContext {
|
|
142
|
+
history: ChatMessage[];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
interface ChatAgentResponse {
|
|
146
|
+
message: MarkdownString | InteractiveProgressFileTree;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface ChatAgentResult {
|
|
150
|
+
followUp?: InteractiveSessionFollowup[];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
interface ChatAgentCommand {
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
interface ChatAgentMetadata {
|
|
159
|
+
description: string;
|
|
160
|
+
fullName?: string;
|
|
161
|
+
icon?: Uri;
|
|
162
|
+
subCommands: ChatAgentCommand[];
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface ChatAgent {
|
|
166
|
+
(prompt: ChatMessage, context: ChatAgentContext, progress: Progress<ChatAgentResponse>, token: CancellationToken): Thenable<ChatAgentResult | void>;
|
|
167
|
+
}
|
|
141
168
|
|
|
142
169
|
/**
|
|
143
170
|
* Represents a large language model that accepts ChatML messages and produces a streaming response
|
|
@@ -200,12 +227,12 @@ interface SlashCommandContext {
|
|
|
200
227
|
}
|
|
201
228
|
|
|
202
229
|
interface SlashResponse {
|
|
203
|
-
message: MarkdownString;
|
|
230
|
+
message: MarkdownString | InteractiveProgressFileTree;
|
|
204
231
|
// edits?: TextEdit[] | WorkspaceEdit;
|
|
205
232
|
}
|
|
206
233
|
|
|
207
234
|
interface SlashResult {
|
|
208
|
-
|
|
235
|
+
followUp?: InteractiveSessionFollowup[];
|
|
209
236
|
}
|
|
210
237
|
|
|
211
238
|
interface SlashCommandMetadata {
|
|
@@ -214,7 +241,7 @@ interface SlashCommandContext {
|
|
|
214
241
|
|
|
215
242
|
interface SlashCommand {
|
|
216
243
|
|
|
217
|
-
(prompt: ChatMessage, context: SlashCommandContext, progress: Progress<SlashResponse>, token: CancellationToken): Thenable<SlashResult>;
|
|
244
|
+
(prompt: ChatMessage, context: SlashCommandContext, progress: Progress<SlashResponse>, token: CancellationToken): Thenable<SlashResult | void>;
|
|
218
245
|
}
|
|
219
246
|
|
|
220
247
|
declare enum ChatVariableLevel {
|
|
@@ -645,7 +672,7 @@ interface WebviewEditorInset {
|
|
|
645
672
|
*/
|
|
646
673
|
Webworker = 2
|
|
647
674
|
}
|
|
648
|
-
// https://github.com/microsoft/vscode/issues/145307
|
|
675
|
+
// https://github.com/microsoft/vscode/issues/145307 @alexdima
|
|
649
676
|
|
|
650
677
|
interface Extension<T> {
|
|
651
678
|
|
|
@@ -1035,28 +1062,6 @@ interface AuthenticationSession {
|
|
|
1035
1062
|
*/
|
|
1036
1063
|
readonly idToken?: string;
|
|
1037
1064
|
}
|
|
1038
|
-
/**
|
|
1039
|
-
* Represents a {@link TextEditor text editor}'s {@link TextEditor.options options}.
|
|
1040
|
-
*/
|
|
1041
|
-
interface TextEditorOptions {
|
|
1042
|
-
/**
|
|
1043
|
-
* The size in spaces a tab takes. This is used for two purposes:
|
|
1044
|
-
* - the rendering width of a tab character;
|
|
1045
|
-
* - the number of spaces to insert when {@link TextEditorOptions.insertSpaces insertSpaces} is true
|
|
1046
|
-
* and `indentSize` is set to `"tabSize"`.
|
|
1047
|
-
*
|
|
1048
|
-
* When getting a text editor's options, this property will always be a number (resolved).
|
|
1049
|
-
* When setting a text editor's options, this property is optional and it can be a number or `"auto"`.
|
|
1050
|
-
*/
|
|
1051
|
-
tabSize?: number | string;
|
|
1052
|
-
/**
|
|
1053
|
-
* The number of spaces to insert when [insertSpaces](#TextEditorOptions.insertSpaces) is true.
|
|
1054
|
-
*
|
|
1055
|
-
* When getting a text editor's options, this property will always be a number (resolved).
|
|
1056
|
-
* When setting a text editor's options, this property is optional and it can be a number or `"tabSize"`.
|
|
1057
|
-
*/
|
|
1058
|
-
indentSize?: number | 'tabSize';
|
|
1059
|
-
}
|
|
1060
1065
|
|
|
1061
1066
|
interface InlineCompletionItem {
|
|
1062
1067
|
/**
|
|
@@ -1125,9 +1130,7 @@ interface InteractiveEditorSlashCommand {
|
|
|
1125
1130
|
|
|
1126
1131
|
// todo@API make classes
|
|
1127
1132
|
interface InteractiveEditorRequest {
|
|
1128
|
-
session: InteractiveEditorSession;
|
|
1129
1133
|
prompt: string;
|
|
1130
|
-
|
|
1131
1134
|
selection: Selection;
|
|
1132
1135
|
wholeRange: Range;
|
|
1133
1136
|
attempt: number;
|
|
@@ -1158,22 +1161,19 @@ interface InteractiveEditorSlashCommand {
|
|
|
1158
1161
|
interface TextDocumentContext {
|
|
1159
1162
|
document: TextDocument;
|
|
1160
1163
|
selection: Selection;
|
|
1161
|
-
action?: string;
|
|
1162
1164
|
}
|
|
1163
1165
|
|
|
1164
|
-
interface
|
|
1166
|
+
interface InteractiveEditorSessionProviderMetadata {
|
|
1165
1167
|
label: string;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
interface InteractiveEditorSessionProvider<S extends InteractiveEditorSession = InteractiveEditorSession, R extends InteractiveEditorResponse | InteractiveEditorMessageResponse = InteractiveEditorResponse | InteractiveEditorMessageResponse> {
|
|
1166
1171
|
|
|
1167
1172
|
// Create a session. The lifetime of this session is the duration of the editing session with the input mode widget.
|
|
1168
1173
|
prepareInteractiveEditorSession(context: TextDocumentContext, token: CancellationToken): ProviderResult<S>;
|
|
1169
1174
|
|
|
1170
|
-
provideInteractiveEditorResponse(request: InteractiveEditorRequest, token: CancellationToken): ProviderResult<R>;
|
|
1171
|
-
provideInteractiveEditorResponse2?(request: InteractiveEditorRequest, progress: Progress<{ message: string; edits: TextEdit[] }>, token: CancellationToken): ProviderResult<R>;
|
|
1172
|
-
|
|
1173
|
-
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
1174
|
-
releaseInteractiveEditorSession?(session: S): any;
|
|
1175
|
+
provideInteractiveEditorResponse(session: S, request: InteractiveEditorRequest, progress: Progress<{ message: string; edits: TextEdit[] }>, token: CancellationToken): ProviderResult<R>;
|
|
1175
1176
|
|
|
1176
|
-
// todo@API use enum instead of boolean
|
|
1177
1177
|
// eslint-disable-next-line local/vscode-dts-provider-naming
|
|
1178
1178
|
handleInteractiveEditorResponseFeedback?(session: S, response: R, kind: InteractiveEditorResponseFeedbackKind): void;
|
|
1179
1179
|
}
|
|
@@ -1244,7 +1244,22 @@ interface InteractiveRequest {
|
|
|
1244
1244
|
treeData: FileTreeData;
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
|
-
|
|
1247
|
+
interface DocumentContext {
|
|
1248
|
+
uri: Uri;
|
|
1249
|
+
version: number;
|
|
1250
|
+
ranges: Range[];
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
interface InteractiveProgressUsedContext {
|
|
1254
|
+
documents: DocumentContext[];
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
type InteractiveProgress =
|
|
1258
|
+
| InteractiveProgressContent
|
|
1259
|
+
| InteractiveProgressId
|
|
1260
|
+
| InteractiveProgressTask
|
|
1261
|
+
| InteractiveProgressFileTree
|
|
1262
|
+
| InteractiveProgressUsedContext;
|
|
1248
1263
|
|
|
1249
1264
|
interface InteractiveResponseCommand {
|
|
1250
1265
|
commandId: string;
|
|
@@ -1369,7 +1384,7 @@ declare enum InteractiveSessionVoteDirection {
|
|
|
1369
1384
|
|
|
1370
1385
|
export function sendInteractiveRequestToProvider(providerId: string, message: InteractiveSessionDynamicRequest): void;
|
|
1371
1386
|
|
|
1372
|
-
export function registerInteractiveEditorSessionProvider(provider: InteractiveEditorSessionProvider): Disposable;
|
|
1387
|
+
export function registerInteractiveEditorSessionProvider(provider: InteractiveEditorSessionProvider, metadata?: InteractiveEditorSessionProviderMetadata): Disposable;
|
|
1373
1388
|
|
|
1374
1389
|
export function transferChatSession(session: InteractiveSession, toWorkspace: Uri): void;
|
|
1375
1390
|
}
|
|
@@ -1424,29 +1439,14 @@ declare enum InteractiveSessionVoteDirection {
|
|
|
1424
1439
|
*/
|
|
1425
1440
|
readonly messagePassingProtocol: MessagePassingProtocol | undefined;
|
|
1426
1441
|
}
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
interface LanguageConfiguration {
|
|
1430
|
-
autoClosingPairs?: {
|
|
1431
|
-
open: string;
|
|
1432
|
-
close: string;
|
|
1433
|
-
notIn?: string[];
|
|
1434
|
-
}[];
|
|
1435
|
-
}
|
|
1436
|
-
interface RelatedContextItem {
|
|
1442
|
+
interface DocumentContextItem {
|
|
1437
1443
|
readonly uri: Uri;
|
|
1438
|
-
readonly
|
|
1444
|
+
readonly version: number;
|
|
1445
|
+
readonly ranges: Range[];
|
|
1439
1446
|
}
|
|
1440
1447
|
|
|
1441
1448
|
interface MappedEditsContext {
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* If there's no context, the array should be empty. It's also empty until we figure out how to compute this or retrieve from an extension (eg, copilot chat)
|
|
1446
|
-
*
|
|
1447
|
-
* TODO: it was suggested initially to be sorted from highest priority to lowest. How would it look like?
|
|
1448
|
-
*/
|
|
1449
|
-
related: RelatedContextItem[];
|
|
1449
|
+
documents: DocumentContextItem[][];
|
|
1450
1450
|
}
|
|
1451
1451
|
|
|
1452
1452
|
/**
|
|
@@ -1470,6 +1470,10 @@ interface RelatedContextItem {
|
|
|
1470
1470
|
): ProviderResult<WorkspaceEdit | null>;
|
|
1471
1471
|
}
|
|
1472
1472
|
|
|
1473
|
+
declare namespace chat {
|
|
1474
|
+
export function registerAgent(id: string, agent: ChatAgent, metadata: ChatAgentMetadata): Disposable;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1473
1477
|
declare namespace chat {
|
|
1474
1478
|
|
|
1475
1479
|
/**
|
|
@@ -1540,15 +1544,6 @@ interface RelatedContextItem {
|
|
|
1540
1544
|
*/
|
|
1541
1545
|
readonly state: NotebookCellExecutionState;
|
|
1542
1546
|
}
|
|
1543
|
-
// https://github.com/microsoft/vscode/issues/179213
|
|
1544
|
-
|
|
1545
|
-
declare class NotebookCodeActionKind {
|
|
1546
|
-
// can only return MULTI CELL workspaceEdits
|
|
1547
|
-
// ex: notebook.organizeImprots
|
|
1548
|
-
static readonly Notebook: CodeActionKind;
|
|
1549
|
-
|
|
1550
|
-
constructor(value: string);
|
|
1551
|
-
}
|
|
1552
1547
|
// https://github.com/microsoft/vscode/issues/161144
|
|
1553
1548
|
declare enum NotebookControllerAffinity2 {
|
|
1554
1549
|
Default = 1,
|
|
@@ -1926,10 +1921,129 @@ interface ProfileContentHandler {
|
|
|
1926
1921
|
}
|
|
1927
1922
|
|
|
1928
1923
|
/**
|
|
1929
|
-
*
|
|
1930
|
-
*
|
|
1924
|
+
* An ExecServer allows spawning processes on a remote machine. An ExecServer is provided by resolvers. It can be
|
|
1925
|
+
* acquired by `workspace.getRemoteExecServer` or from the context when in a resolver (`RemoteAuthorityResolverContext.execServer`).
|
|
1931
1926
|
*/
|
|
1932
|
-
|
|
1927
|
+
interface ExecServer {
|
|
1928
|
+
/**
|
|
1929
|
+
* Spawns a given subprocess with the given command and arguments.
|
|
1930
|
+
* @param command The command to execute.
|
|
1931
|
+
* @param args The arguments to pass to the command.
|
|
1932
|
+
* @param options Additional options for the spawned process.
|
|
1933
|
+
* @returns A promise that gives access to the process' stdin, stdout and stderr streams, as well as the process' exit code.
|
|
1934
|
+
*/
|
|
1935
|
+
spawn(command: string, args: string[], options?: ExecServerSpawnOptions): Thenable<SpawnedCommand>;
|
|
1936
|
+
|
|
1937
|
+
/**
|
|
1938
|
+
* Spawns an connector that allows to start a remote server. It is assumed the command starts a Code CLI. Additional
|
|
1939
|
+
* arguments will be passed to the connector.
|
|
1940
|
+
* @param command The command to execute. It is assumed the command spawns a Code CLI executable.
|
|
1941
|
+
* @param args The arguments to pass to the connector
|
|
1942
|
+
* @param options Additional options for the spawned process.
|
|
1943
|
+
* @returns A promise that gives access to the spawned {@link RemoteServerConnector}. It also provides a stream to which standard
|
|
1944
|
+
* log messages are written.
|
|
1945
|
+
*/
|
|
1946
|
+
spawnRemoteServerConnector?(command: string, args: string[], options?: ExecServerSpawnOptions): Thenable<RemoteServerConnector>;
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Downloads the CLI executable of the desired platform and quality and pipes it to the
|
|
1950
|
+
* provided process' stdin.
|
|
1951
|
+
* @param buildTarget The CLI build target to download.
|
|
1952
|
+
* @param command The command to execute. The downloaded bits will be piped to the command's stdin.
|
|
1953
|
+
* @param args The arguments to pass to the command.
|
|
1954
|
+
* @param options Additional options for the spawned process.
|
|
1955
|
+
* @returns A promise that resolves when the process exits with a {@link ProcessExit} object.
|
|
1956
|
+
*/
|
|
1957
|
+
downloadCliExecutable?(buildTarget: CliBuild, command: string, args: string[], options?: ExecServerSpawnOptions): Thenable<ProcessExit>;
|
|
1958
|
+
|
|
1959
|
+
/**
|
|
1960
|
+
* Gets the environment where the exec server is running.
|
|
1961
|
+
* @returns A promise that resolves to an {@link ExecEnvironment} object.
|
|
1962
|
+
*/
|
|
1963
|
+
env(): Thenable<ExecEnvironment>;
|
|
1964
|
+
|
|
1965
|
+
/**
|
|
1966
|
+
* Access to the file system of the remote.
|
|
1967
|
+
*/
|
|
1968
|
+
readonly fs: RemoteFileSystem;
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
type ProcessEnv = Record<string, string>;
|
|
1972
|
+
|
|
1973
|
+
interface ExecServerSpawnOptions {
|
|
1974
|
+
readonly env?: ProcessEnv;
|
|
1975
|
+
readonly cwd?: string;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
interface SpawnedCommand {
|
|
1979
|
+
readonly stdin: WriteStream;
|
|
1980
|
+
readonly stdout: ReadStream;
|
|
1981
|
+
readonly stderr: ReadStream;
|
|
1982
|
+
readonly onExit: Thenable<ProcessExit>;
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
interface RemoteServerConnector {
|
|
1986
|
+
readonly logs: ReadStream;
|
|
1987
|
+
readonly onExit: Thenable<ProcessExit>;
|
|
1988
|
+
/**
|
|
1989
|
+
* Connect to a new code server, returning a stream that can be used to communicate with it.
|
|
1990
|
+
* @param params The parameters for the code server.
|
|
1991
|
+
* @returns A promise that resolves to a {@link ManagedMessagePassing} object that can be used with a resolver
|
|
1992
|
+
*/
|
|
1993
|
+
connect(params: ServeParams): Thenable<ManagedMessagePassing>;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
interface ProcessExit {
|
|
1997
|
+
readonly status: number;
|
|
1998
|
+
readonly message?: string;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
interface ReadStream {
|
|
2002
|
+
readonly onDidReceiveMessage: Event<Uint8Array>;
|
|
2003
|
+
readonly onEnd: Thenable<void>;
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
interface WriteStream {
|
|
2007
|
+
write(data: Uint8Array): void;
|
|
2008
|
+
end(): void;
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
interface ServeParams {
|
|
2012
|
+
readonly socketId: number;
|
|
2013
|
+
readonly commit?: string;
|
|
2014
|
+
readonly quality: string;
|
|
2015
|
+
readonly extensions: string[];
|
|
2016
|
+
/** Whether server traffic should be compressed. */
|
|
2017
|
+
readonly compress?: boolean;
|
|
2018
|
+
/** Optional explicit connection token for the server. */
|
|
2019
|
+
readonly connectionToken?: string;
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
interface CliBuild {
|
|
2023
|
+
readonly quality: string;
|
|
2024
|
+
/** 'LinuxAlpineX64' | 'LinuxX64' | 'LinuxARM64' | 'LinuxARM32' | 'DarwinX64' | 'DarwinARM64' | 'WindowsX64' | 'WindowsX86' | 'WindowsARM64' */
|
|
2025
|
+
readonly buildTarget: string;
|
|
2026
|
+
readonly commit: string;
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
interface ExecEnvironment {
|
|
2030
|
+
readonly env: ProcessEnv;
|
|
2031
|
+
/** 'darwin' | 'linux' | 'win32' */
|
|
2032
|
+
readonly osPlatform: string;
|
|
2033
|
+
/** uname.version or windows version number, undefined if it could not be read. */
|
|
2034
|
+
readonly osRelease?: string;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
interface RemoteFileSystem {
|
|
2038
|
+
/**
|
|
2039
|
+
* Retrieve metadata about a file.
|
|
2040
|
+
*
|
|
2041
|
+
* @param path The path of the file to retrieve metadata about.
|
|
2042
|
+
* @returns The file metadata about the file.
|
|
2043
|
+
* @throws an exception when `path` doesn't exist.
|
|
2044
|
+
*/
|
|
2045
|
+
stat(path: string): Thenable<FileStat>;
|
|
2046
|
+
}
|
|
1933
2047
|
|
|
1934
2048
|
interface RemoteAuthorityResolver {
|
|
1935
2049
|
/**
|
|
@@ -2013,9 +2127,72 @@ interface ProfileContentHandler {
|
|
|
2013
2127
|
enabled: boolean;
|
|
2014
2128
|
}
|
|
2015
2129
|
|
|
2130
|
+
interface SourceControlHistoryProvider {
|
|
2131
|
+
actionButton?: SourceControlActionButton;
|
|
2132
|
+
currentHistoryItemGroup?: SourceControlHistoryItemGroup;
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* Fires when the action button changes
|
|
2136
|
+
*/
|
|
2137
|
+
onDidChangeActionButton: Event<void>;
|
|
2138
|
+
|
|
2139
|
+
/**
|
|
2140
|
+
* Fires when the current history item group changes (ex: checkout)
|
|
2141
|
+
*/
|
|
2142
|
+
onDidChangeCurrentHistoryItemGroup: Event<void>;
|
|
2143
|
+
|
|
2144
|
+
/**
|
|
2145
|
+
* Fires when the history item groups change (ex: commit, push, fetch)
|
|
2146
|
+
*/
|
|
2147
|
+
// onDidChangeHistoryItemGroups: Event<SourceControlHistoryChangeEvent>;
|
|
2148
|
+
|
|
2149
|
+
provideHistoryItems(historyItemGroupId: string, options: SourceControlHistoryOptions, token: CancellationToken): ProviderResult<SourceControlHistoryItem[]>;
|
|
2150
|
+
provideHistoryItemChanges(historyItemId: string, token: CancellationToken): ProviderResult<SourceControlHistoryItemChange[]>;
|
|
2151
|
+
|
|
2152
|
+
resolveHistoryItemGroupBase(historyItemGroupId: string, token: CancellationToken): ProviderResult<SourceControlHistoryItemGroup | undefined>;
|
|
2153
|
+
resolveHistoryItemGroupCommonAncestor(historyItemGroupId1: string, historyItemGroupId: string, token: CancellationToken): ProviderResult<{ id: string; ahead: number; behind: number }>;
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
interface SourceControlHistoryOptions {
|
|
2157
|
+
readonly cursor?: string;
|
|
2158
|
+
readonly limit?: number | { id?: string };
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
interface SourceControlHistoryItemGroup {
|
|
2162
|
+
readonly id: string;
|
|
2163
|
+
readonly label: string;
|
|
2164
|
+
readonly upstream?: SourceControlRemoteHistoryItemGroup;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
interface SourceControlRemoteHistoryItemGroup {
|
|
2168
|
+
readonly id: string;
|
|
2169
|
+
readonly label: string;
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2172
|
+
interface SourceControlHistoryItem {
|
|
2173
|
+
readonly id: string;
|
|
2174
|
+
readonly parentIds: string[];
|
|
2175
|
+
readonly label: string;
|
|
2176
|
+
readonly description?: string;
|
|
2177
|
+
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
2178
|
+
readonly timestamp?: number;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
interface SourceControlHistoryItemChange {
|
|
2182
|
+
readonly uri: Uri;
|
|
2183
|
+
readonly originalUri: Uri | undefined;
|
|
2184
|
+
readonly modifiedUri: Uri | undefined;
|
|
2185
|
+
readonly renameUri: Uri | undefined;
|
|
2186
|
+
}
|
|
2187
|
+
|
|
2016
2188
|
interface SourceControl {
|
|
2017
2189
|
actionButton?: SourceControlActionButton;
|
|
2018
2190
|
}
|
|
2191
|
+
// https://github.com/microsoft/vscode/issues/185269
|
|
2192
|
+
|
|
2193
|
+
interface SourceControl {
|
|
2194
|
+
historyProvider?: SourceControlHistoryProvider;
|
|
2195
|
+
}
|
|
2019
2196
|
// todo@joaomoreno add issue reference
|
|
2020
2197
|
|
|
2021
2198
|
interface SourceControl {
|
|
@@ -2197,14 +2374,6 @@ interface TelemetryConfiguration {
|
|
|
2197
2374
|
*/
|
|
2198
2375
|
readonly isCrashEnabled: boolean;
|
|
2199
2376
|
}
|
|
2200
|
-
// See https://github.com/microsoft/vscode/issues/160694
|
|
2201
|
-
declare namespace env {
|
|
2202
|
-
|
|
2203
|
-
/**
|
|
2204
|
-
* An {@link Event} which fires when the default shell changes.
|
|
2205
|
-
*/
|
|
2206
|
-
export const onDidChangeShell: Event<string>;
|
|
2207
|
-
}
|
|
2208
2377
|
|
|
2209
2378
|
declare namespace env {
|
|
2210
2379
|
export function openExternal(target: Uri, options?: OpenExternalOptions): Thenable<boolean>;
|
|
@@ -2260,7 +2429,6 @@ interface TelemetryConfiguration {
|
|
|
2260
2429
|
*/
|
|
2261
2430
|
export const onDidChangeTelemetryConfiguration: Event<TelemetryConfiguration | undefined>;
|
|
2262
2431
|
}
|
|
2263
|
-
|
|
2264
2432
|
// https://github.com/microsoft/vscode/issues/78502
|
|
2265
2433
|
//
|
|
2266
2434
|
// This API is still proposed but we don't intent on promoting it to stable due to problems
|
|
@@ -3300,7 +3468,7 @@ interface TelemetryConfiguration {
|
|
|
3300
3468
|
declare namespace languages {
|
|
3301
3469
|
export function registerDocumentDropEditProvider(selector: DocumentSelector, provider: DocumentDropEditProvider, metadata?: DocumentDropEditProviderMetadata): Disposable;
|
|
3302
3470
|
}
|
|
3303
|
-
// https://github.com/microsoft/vscode/issues/124024 @hediet
|
|
3471
|
+
// https://github.com/microsoft/vscode/issues/124024 @hediet
|
|
3304
3472
|
|
|
3305
3473
|
declare namespace languages {
|
|
3306
3474
|
/**
|
|
@@ -3701,4 +3869,4 @@ declare namespace workspace {
|
|
|
3701
3869
|
export function requestWorkspaceTrust(options?: WorkspaceTrustRequestOptions): Thenable<boolean | undefined>;
|
|
3702
3870
|
}
|
|
3703
3871
|
|
|
3704
|
-
export { type AuthenticationForceNewSessionOptions, type AuthenticationProvider, type AuthenticationProviderCreateSessionOptions, type AuthenticationSession, BranchCoverage, CandidatePortSource, type CanonicalUriProvider, type CanonicalUriRequestOptions, type ChatAccess, ChatMessage, ChatMessageRole, type ChatResponseFragment, type ChatResponseProvider, type ChatResponseProviderMetadata, type ChatVariableContext, ChatVariableLevel, type ChatVariableResolver, type ChatVariableValue, type CommandInformationResult, type Comment, type CommentController, CommentState, type CommentThread2, type CommentingRangeProvider2, CoveredCount, type CustomTextEditorProvider, type DetailedCoverage, type DocumentDropEdit, type DocumentDropEditProviderMetadata, type DocumentFilter, DocumentPasteEdit, type DocumentPasteEditProvider, type DocumentPasteProviderMetadata, EditSessionIdentityMatch, type EditSessionIdentityProvider, type EditSessionIdentityWillCreateEvent, type EmbeddingVectorProvider, type ExecServer, type Extension, type ExtensionContext, ExtensionRuntime, type ExternalUriOpener, type ExternalUriOpenerMetadata, ExternalUriOpenerPriority, FileCoverage, FileDecoration2, type FileSearchOptions, type FileSearchProvider, type FileSearchQuery, type FileSystemProvider, type FileTreeData, type FindTextInFilesOptions, FunctionCoverage, type GlobString, type InlineCompletionItem, type InlineCompletionItemProvider, type InlineCompletionItemProviderMetadata, type InlineCompletionList, type InteractiveEditorMessageResponse, type InteractiveEditorRequest, type InteractiveEditorResponse, InteractiveEditorResponseFeedbackKind, type InteractiveEditorSession, type InteractiveEditorSessionProvider, type InteractiveEditorSlashCommand, type InteractiveProgress, type InteractiveProgressContent, type InteractiveProgressFileTree, type InteractiveProgressId, type InteractiveProgressTask, type InteractiveRequest, type InteractiveResponseCommand, type InteractiveResponseErrorDetails, type InteractiveResponseForProgress, type InteractiveSession, type InteractiveSessionCommandAction, type InteractiveSessionCopyAction, InteractiveSessionCopyKind, type InteractiveSessionDynamicRequest, type InteractiveSessionFollowup, type InteractiveSessionInsertAction, type InteractiveSessionParticipantInformation, type InteractiveSessionProvider, type InteractiveSessionReplyFollowup, type InteractiveSessionRequestArgs, type InteractiveSessionSlashCommand, type InteractiveSessionState, type InteractiveSessionTerminalAction, type InteractiveSessionUserAction, type InteractiveSessionUserActionEvent, type InteractiveSessionVoteAction, InteractiveSessionVoteDirection, type InteractiveWelcomeMessageContent, type IssueUriRequestHandler, type
|
|
3872
|
+
export { type AuthenticationForceNewSessionOptions, type AuthenticationProvider, type AuthenticationProviderCreateSessionOptions, type AuthenticationSession, BranchCoverage, CandidatePortSource, type CanonicalUriProvider, type CanonicalUriRequestOptions, type ChatAccess, type ChatAgent, type ChatAgentCommand, type ChatAgentContext, type ChatAgentMetadata, type ChatAgentResponse, type ChatAgentResult, ChatMessage, ChatMessageRole, type ChatResponseFragment, type ChatResponseProvider, type ChatResponseProviderMetadata, type ChatVariableContext, ChatVariableLevel, type ChatVariableResolver, type ChatVariableValue, type CliBuild, type CommandInformationResult, type Comment, type CommentController, CommentState, type CommentThread2, type CommentingRangeProvider2, CoveredCount, type CustomTextEditorProvider, type DetailedCoverage, type DocumentContext, type DocumentContextItem, type DocumentDropEdit, type DocumentDropEditProviderMetadata, type DocumentFilter, DocumentPasteEdit, type DocumentPasteEditProvider, type DocumentPasteProviderMetadata, EditSessionIdentityMatch, type EditSessionIdentityProvider, type EditSessionIdentityWillCreateEvent, type EmbeddingVectorProvider, type ExecEnvironment, type ExecServer, type ExecServerSpawnOptions, type Extension, type ExtensionContext, ExtensionRuntime, type ExternalUriOpener, type ExternalUriOpenerMetadata, ExternalUriOpenerPriority, FileCoverage, FileDecoration2, type FileSearchOptions, type FileSearchProvider, type FileSearchQuery, type FileSystemProvider, type FileTreeData, type FindTextInFilesOptions, FunctionCoverage, type GlobString, type InlineCompletionItem, type InlineCompletionItemProvider, type InlineCompletionItemProviderMetadata, type InlineCompletionList, type InteractiveEditorMessageResponse, type InteractiveEditorRequest, type InteractiveEditorResponse, InteractiveEditorResponseFeedbackKind, type InteractiveEditorSession, type InteractiveEditorSessionProvider, type InteractiveEditorSessionProviderMetadata, type InteractiveEditorSlashCommand, type InteractiveProgress, type InteractiveProgressContent, type InteractiveProgressFileTree, type InteractiveProgressId, type InteractiveProgressTask, type InteractiveProgressUsedContext, type InteractiveRequest, type InteractiveResponseCommand, type InteractiveResponseErrorDetails, type InteractiveResponseForProgress, type InteractiveSession, type InteractiveSessionCommandAction, type InteractiveSessionCopyAction, InteractiveSessionCopyKind, type InteractiveSessionDynamicRequest, type InteractiveSessionFollowup, type InteractiveSessionInsertAction, type InteractiveSessionParticipantInformation, type InteractiveSessionProvider, type InteractiveSessionReplyFollowup, type InteractiveSessionRequestArgs, type InteractiveSessionSlashCommand, type InteractiveSessionState, type InteractiveSessionTerminalAction, type InteractiveSessionUserAction, type InteractiveSessionUserActionEvent, type InteractiveSessionVoteAction, InteractiveSessionVoteDirection, type InteractiveWelcomeMessageContent, type IssueUriRequestHandler, type LineChange, type ManagedMessagePassing, ManagedResolvedAuthority, type MappedEditsContext, type MappedEditsProvider, type MessageOptions, type MessagePassingProtocol, type NotebookCell, type NotebookCellData, NotebookCellExecutionState, type NotebookCellExecutionStateChangeEvent, type NotebookCellOutput, type NotebookController, NotebookControllerAffinity2, type NotebookControllerDetectionTask, type NotebookDocumentContentOptions, type NotebookExecution, NotebookKernelSourceAction, type NotebookKernelSourceActionProvider, type NotebookRegistrationData, NotebookRendererScript, type OpenDialogOptions, type OpenExternalOptions, type OpenExternalUriContext, PortAttributes, type PortAttributesProvider, type PortAttributesSelector, PortAutoForwardAction, type ProcessEnv, type ProcessExit, type ProfileContentHandler, type QuickDiffProvider, type QuickPick, type QuickPickItem, type ReadStream, type RelatedInformationBaseResult, type RelatedInformationProvider, type RelatedInformationResult, RelatedInformationType, type RemoteAuthorityResolver, type RemoteAuthorityResolverContext, RemoteAuthorityResolverError, type RemoteFileSystem, type RemoteServerConnector, ResolvedAuthority, type ResolvedOptions, type ResolverResult, type ResourceLabelFormatter, type ResourceLabelFormatting, type SearchOptions, type ServeParams, type SettingInformationResult, type ShareProvider, type ShareableItem, type SingleOrMany, type SlashCommand, type SlashCommandContext, type SlashCommandMetadata, type SlashResponse, type SlashResult, type SourceControl, type SourceControlActionButton, type SourceControlHistoryItem, type SourceControlHistoryItemChange, type SourceControlHistoryItemGroup, type SourceControlHistoryOptions, type SourceControlHistoryProvider, type SourceControlInputBox, type SourceControlInputBoxValidation, SourceControlInputBoxValidationType, type SourceControlRemoteHistoryItemGroup, type SpawnedCommand, StackFrameFocus, StandardTokenType, StatementCoverage, type Tab, TabInputInteractiveWindow, TabInputTextMerge, type TaskPresentationOptions, type TelemetryConfiguration, type Terminal, type TerminalCommandMatchResult, type TerminalDataWriteEvent, type TerminalDimensionsChangeEvent, type TerminalExecutedCommand, TerminalOutputAnchor, type TerminalOutputMatcher, TerminalQuickFixExecuteTerminalCommand, TerminalQuickFixOpener, type TerminalQuickFixProvider, type TestCoverageProvider, TestMessage2, type TestObserver, type TestResultSnapshot, TestResultState, type TestRun, type TestRunResult, type TestSnapshotTaskState, type TestsChangeEvent, type TextDocumentContext, type TextSearchComplete, type TextSearchCompleteMessage, TextSearchCompleteMessageType, type TextSearchContext, type TextSearchMatch, type TextSearchMatchPreview, type TextSearchOptions, type TextSearchPreviewOptions, type TextSearchProvider, type TextSearchQuery, type TextSearchResult, ThreadFocus, type Timeline, type TimelineChangeEvent, TimelineItem, type TimelineOptions, type TimelineProvider, type TokenInformation, type TreeItem, type TreeView, type TreeView2, type TreeViewActiveItemChangeEvent, type Tunnel, type TunnelCreationOptions, type TunnelDescription, type TunnelInformation, type TunnelOptions, type TunnelPrivacy, type TunnelProvider, type WebviewEditorInset, type WindowState, type WorkspaceTrustRequestOptions, type WriteStream, ai, authentication, chat, commands, debug, env, extensions, interactive, languages, notebooks, tests, window, workspace };
|