@codingame/monaco-vscode-api 1.83.14 → 1.83.15
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/api.js +1 -1
- package/contributions.js +36 -0
- package/extensions.d.ts +83 -4
- package/extensions.js +9 -14
- package/lifecycle.js +4 -1
- package/localExtensionHost.js +207 -0
- package/missing-services.js +15 -3
- package/monaco-editor-treemending.patch +966 -955
- package/monaco.js +4 -36
- package/package.json +10 -6
- package/service-override/tools/editor.d.ts +6 -6
- package/services.d.ts +18 -18
- package/services.js +1 -0
- package/vscode/src/vs/base/common/errors.d.ts +1 -8
- package/vscode/src/vs/base/common/uri.d.ts +1 -7
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -27
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +39 -1
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -44
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +160 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +564 -11
- package/vscode/src/vs/workbench/contrib/scm/common/scm.js +9 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +1 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +594 -2
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +307 -1
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +10 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +2 -37
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +2 -73
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +1 -5
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +6 -2
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +174 -0
- package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +49 -0
- package/vscode-dts/vscode.proposed.authGetSessions.d.ts +62 -0
- package/vscode-dts/vscode.proposed.authSession.d.ts +13 -0
- package/vscode-dts/vscode.proposed.canonicalUriProvider.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chat.d.ts +25 -0
- package/vscode-dts/vscode.proposed.chatAgents.d.ts +39 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +38 -0
- package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +47 -0
- package/vscode-dts/vscode.proposed.chatVariables.d.ts +35 -0
- package/vscode-dts/vscode.proposed.codiconDecoration.d.ts +48 -0
- package/vscode-dts/vscode.proposed.commentsDraftState.d.ts +18 -0
- package/vscode-dts/vscode.proposed.contribCommentEditorActionsMenu.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribCommentPeekContext.d.ts +10 -0
- package/vscode-dts/vscode.proposed.contribCommentThreadAdditionalMenu.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribEditSessions.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribEditorContentMenu.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribLabelFormatterWorkspaceTooltip.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribMenuBarHome.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribMergeEditorMenus.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribNotebookStaticPreloads.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribRemoteHelp.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribShareMenu.d.ts +7 -0
- package/vscode-dts/vscode.proposed.contribStatusBarItems.d.ts +8 -0
- package/vscode-dts/vscode.proposed.contribViewsRemote.d.ts +6 -0
- package/vscode-dts/vscode.proposed.contribViewsWelcome.d.ts +6 -0
- package/vscode-dts/vscode.proposed.customEditorMove.d.ts +29 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +74 -0
- package/vscode-dts/vscode.proposed.diffCommand.d.ts +38 -0
- package/vscode-dts/vscode.proposed.diffContentOptions.d.ts +16 -0
- package/vscode-dts/vscode.proposed.documentFiltersExclusive.d.ts +13 -0
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +111 -0
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +60 -0
- package/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts +71 -0
- package/vscode-dts/vscode.proposed.editorInsets.d.ts +22 -0
- package/vscode-dts/vscode.proposed.extensionRuntime.d.ts +24 -0
- package/vscode-dts/vscode.proposed.extensionsAny.d.ts +40 -0
- package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +163 -0
- package/vscode-dts/vscode.proposed.fileComments.d.ts +85 -0
- package/vscode-dts/vscode.proposed.fileSearchProvider.d.ts +67 -0
- package/vscode-dts/vscode.proposed.findTextInFiles.d.ts +104 -0
- package/vscode-dts/vscode.proposed.fsChunks.d.ts +16 -0
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +31 -0
- package/vscode-dts/vscode.proposed.idToken.d.ts +16 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +71 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +227 -0
- package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +70 -0
- package/vscode-dts/vscode.proposed.interactiveWindow.d.ts +25 -0
- package/vscode-dts/vscode.proposed.ipc.d.ts +37 -0
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +42 -0
- package/vscode-dts/vscode.proposed.notebookCellExecutionState.d.ts +52 -0
- package/vscode-dts/vscode.proposed.notebookControllerAffinityHidden.d.ts +17 -0
- package/vscode-dts/vscode.proposed.notebookDeprecated.d.ts +16 -0
- package/vscode-dts/vscode.proposed.notebookExecution.d.ts +39 -0
- package/vscode-dts/vscode.proposed.notebookKernelSource.d.ts +46 -0
- package/vscode-dts/vscode.proposed.notebookLiveShare.d.ts +21 -0
- package/vscode-dts/vscode.proposed.notebookMessaging.d.ts +68 -0
- package/vscode-dts/vscode.proposed.notebookMime.d.ts +33 -0
- package/vscode-dts/vscode.proposed.portsAttributes.d.ts +100 -0
- package/vscode-dts/vscode.proposed.profileContentHandlers.d.ts +19 -0
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +17 -0
- package/vscode-dts/vscode.proposed.quickPickItemTooltip.d.ts +16 -0
- package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +16 -0
- package/vscode-dts/vscode.proposed.readonlyMessage.d.ts +14 -0
- package/vscode-dts/vscode.proposed.resolvers.d.ts +371 -0
- package/vscode-dts/vscode.proposed.saveEditor.d.ts +35 -0
- package/vscode-dts/vscode.proposed.scmActionButton.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +77 -0
- package/vscode-dts/vscode.proposed.scmSelectedProvider.d.ts +22 -0
- package/vscode-dts/vscode.proposed.scmTextDocument.d.ts +19 -0
- package/vscode-dts/vscode.proposed.scmValidation.d.ts +60 -0
- package/vscode-dts/vscode.proposed.shareProvider.d.ts +74 -0
- package/vscode-dts/vscode.proposed.showLocal.d.ts +19 -0
- package/vscode-dts/vscode.proposed.tabInputTextMerge.d.ts +25 -0
- package/vscode-dts/vscode.proposed.taskPresentationGroup.d.ts +16 -0
- package/vscode-dts/vscode.proposed.telemetry.d.ts +36 -0
- package/vscode-dts/vscode.proposed.terminalDataWriteEvent.d.ts +32 -0
- package/vscode-dts/vscode.proposed.terminalDimensions.d.ts +39 -0
- package/vscode-dts/vscode.proposed.terminalExecuteCommandEvent.d.ts +46 -0
- package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +83 -0
- package/vscode-dts/vscode.proposed.terminalSelection.d.ts +16 -0
- package/vscode-dts/vscode.proposed.testCoverage.d.ts +198 -0
- package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +45 -0
- package/vscode-dts/vscode.proposed.testObserver.d.ts +184 -0
- package/vscode-dts/vscode.proposed.textSearchProvider.d.ts +281 -0
- package/vscode-dts/vscode.proposed.timeline.d.ts +163 -0
- package/vscode-dts/vscode.proposed.tokenInformation.d.ts +26 -0
- package/vscode-dts/vscode.proposed.treeViewActiveItem.d.ts +30 -0
- package/vscode-dts/vscode.proposed.treeViewMarkdownMessage.d.ts +28 -0
- package/vscode-dts/vscode.proposed.treeViewReveal.d.ts +13 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +44 -0
- package/vscode-dts/vscode.proposed.tunnels.d.ts +64 -0
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +17 -0
- package/vscode-dts/vscode.proposed.workspaceTrust.d.ts +30 -0
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +0 -46
- package/vscode/src/vs/base/common/uriIpc.d.ts +0 -10
- package/vscode/src/vs/platform/workspace/common/editSessions.d.ts +0 -7
- package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.d.ts +0 -44
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +0 -52
- package/vscode.proposed.d.ts +0 -4787
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
// https://github.com/microsoft/vscode/issues/84297
|
|
9
|
+
|
|
10
|
+
export class TimelineItem {
|
|
11
|
+
/**
|
|
12
|
+
* A timestamp (in milliseconds since 1 January 1970 00:00:00) for when the timeline item occurred.
|
|
13
|
+
*/
|
|
14
|
+
timestamp: number;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A human-readable string describing the timeline item.
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Optional id for the timeline item. It must be unique across all the timeline items provided by this source.
|
|
23
|
+
*
|
|
24
|
+
* If not provided, an id is generated using the timeline item's timestamp.
|
|
25
|
+
*/
|
|
26
|
+
id?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The icon path or {@link ThemeIcon} for the timeline item.
|
|
30
|
+
*/
|
|
31
|
+
iconPath?: Uri | { light: Uri; dark: Uri } | ThemeIcon;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* A human readable string describing less prominent details of the timeline item.
|
|
35
|
+
*/
|
|
36
|
+
description?: string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The tooltip text when you hover over the timeline item.
|
|
40
|
+
*/
|
|
41
|
+
tooltip?: string | MarkdownString | undefined;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The {@link Command} that should be executed when the timeline item is selected.
|
|
45
|
+
*/
|
|
46
|
+
command?: Command;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Context value of the timeline item. This can be used to contribute specific actions to the item.
|
|
50
|
+
* For example, a timeline item is given a context value as `commit`. When contributing actions to `timeline/item/context`
|
|
51
|
+
* using `menus` extension point, you can specify context value for key `timelineItem` in `when` expression like `timelineItem == commit`.
|
|
52
|
+
* ```
|
|
53
|
+
* "contributes": {
|
|
54
|
+
* "menus": {
|
|
55
|
+
* "timeline/item/context": [
|
|
56
|
+
* {
|
|
57
|
+
* "command": "extension.copyCommitId",
|
|
58
|
+
* "when": "timelineItem == commit"
|
|
59
|
+
* }
|
|
60
|
+
* ]
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
* This will show the `extension.copyCommitId` action only for items where `contextValue` is `commit`.
|
|
65
|
+
*/
|
|
66
|
+
contextValue?: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Accessibility information used when screen reader interacts with this timeline item.
|
|
70
|
+
*/
|
|
71
|
+
accessibilityInformation?: AccessibilityInformation;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param label A human-readable string describing the timeline item
|
|
75
|
+
* @param timestamp A timestamp (in milliseconds since 1 January 1970 00:00:00) for when the timeline item occurred
|
|
76
|
+
*/
|
|
77
|
+
constructor(label: string, timestamp: number);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface TimelineChangeEvent {
|
|
81
|
+
/**
|
|
82
|
+
* The {@link Uri} of the resource for which the timeline changed.
|
|
83
|
+
*/
|
|
84
|
+
uri: Uri;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* A flag which indicates whether the entire timeline should be reset.
|
|
88
|
+
*/
|
|
89
|
+
reset?: boolean;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface Timeline {
|
|
93
|
+
readonly paging?: {
|
|
94
|
+
/**
|
|
95
|
+
* A provider-defined cursor specifying the starting point of timeline items which are after the ones returned.
|
|
96
|
+
* Use `undefined` to signal that there are no more items to be returned.
|
|
97
|
+
*/
|
|
98
|
+
readonly cursor: string | undefined;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* An array of {@link TimelineItem timeline items}.
|
|
103
|
+
*/
|
|
104
|
+
readonly items: readonly TimelineItem[];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export interface TimelineOptions {
|
|
108
|
+
/**
|
|
109
|
+
* A provider-defined cursor specifying the starting point of the timeline items that should be returned.
|
|
110
|
+
*/
|
|
111
|
+
cursor?: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* An optional maximum number timeline items or the all timeline items newer (inclusive) than the timestamp or id that should be returned.
|
|
115
|
+
* If `undefined` all timeline items should be returned.
|
|
116
|
+
*/
|
|
117
|
+
limit?: number | { timestamp: number; id?: string };
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface TimelineProvider {
|
|
121
|
+
/**
|
|
122
|
+
* An optional event to signal that the timeline for a source has changed.
|
|
123
|
+
* To signal that the timeline for all resources (uris) has changed, do not pass any argument or pass `undefined`.
|
|
124
|
+
*/
|
|
125
|
+
onDidChange?: Event<TimelineChangeEvent | undefined>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* An identifier of the source of the timeline items. This can be used to filter sources.
|
|
129
|
+
*/
|
|
130
|
+
readonly id: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* A human-readable string describing the source of the timeline items. This can be used as the display label when filtering sources.
|
|
134
|
+
*/
|
|
135
|
+
readonly label: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Provide {@link TimelineItem timeline items} for a {@link Uri}.
|
|
139
|
+
*
|
|
140
|
+
* @param uri The {@link Uri} of the file to provide the timeline for.
|
|
141
|
+
* @param options A set of options to determine how results should be returned.
|
|
142
|
+
* @param token A cancellation token.
|
|
143
|
+
* @return The {@link TimelineResult timeline result} or a thenable that resolves to such. The lack of a result
|
|
144
|
+
* can be signaled by returning `undefined`, `null`, or an empty array.
|
|
145
|
+
*/
|
|
146
|
+
provideTimeline(uri: Uri, options: TimelineOptions, token: CancellationToken): ProviderResult<Timeline>;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export namespace workspace {
|
|
150
|
+
/**
|
|
151
|
+
* Register a timeline provider.
|
|
152
|
+
*
|
|
153
|
+
* Multiple providers can be registered. In that case, providers are asked in
|
|
154
|
+
* parallel and the results are merged. A failing provider (rejected promise or exception) will
|
|
155
|
+
* not cause a failure of the whole operation.
|
|
156
|
+
*
|
|
157
|
+
* @param scheme A scheme or schemes that defines which documents this provider is applicable to. Can be `*` to target all documents.
|
|
158
|
+
* @param provider A timeline provider.
|
|
159
|
+
* @return A {@link Disposable} that unregisters this provider when being disposed.
|
|
160
|
+
*/
|
|
161
|
+
export function registerTimelineProvider(scheme: string | string[], provider: TimelineProvider): Disposable;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
// https://github.com/microsoft/vscode/issues/91555
|
|
9
|
+
|
|
10
|
+
export enum StandardTokenType {
|
|
11
|
+
Other = 0,
|
|
12
|
+
Comment = 1,
|
|
13
|
+
String = 2,
|
|
14
|
+
RegEx = 3
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface TokenInformation {
|
|
18
|
+
type: StandardTokenType;
|
|
19
|
+
range: Range;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace languages {
|
|
23
|
+
/** @deprecated */
|
|
24
|
+
export function getTokenInformationAtPosition(document: TextDocument, position: Position): Thenable<TokenInformation>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -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
|
+
// https://github.com/microsoft/vscode/issues/170248
|
|
9
|
+
|
|
10
|
+
export interface TreeView<T> extends Disposable {
|
|
11
|
+
/**
|
|
12
|
+
* Currently active item.
|
|
13
|
+
*/
|
|
14
|
+
readonly activeItem: T | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Event that is fired when the {@link TreeView.activeItem active item} has changed
|
|
17
|
+
*/
|
|
18
|
+
readonly onDidChangeActiveItem: Event<TreeViewActiveItemChangeEvent<T>>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The event that is fired when there is a change in {@link TreeView.activeItem tree view's active item}
|
|
23
|
+
*/
|
|
24
|
+
export interface TreeViewActiveItemChangeEvent<T> {
|
|
25
|
+
/**
|
|
26
|
+
* Active item.
|
|
27
|
+
*/
|
|
28
|
+
readonly activeItem: T | undefined;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 TreeView2<T> extends Disposable {
|
|
9
|
+
readonly onDidExpandElement: Event<TreeViewExpansionEvent<T>>;
|
|
10
|
+
readonly onDidCollapseElement: Event<TreeViewExpansionEvent<T>>;
|
|
11
|
+
readonly selection: readonly T[];
|
|
12
|
+
readonly onDidChangeSelection: Event<TreeViewSelectionChangeEvent<T>>;
|
|
13
|
+
readonly visible: boolean;
|
|
14
|
+
readonly onDidChangeVisibility: Event<TreeViewVisibilityChangeEvent>;
|
|
15
|
+
readonly onDidChangeCheckboxState: Event<TreeCheckboxChangeEvent<T>>;
|
|
16
|
+
title?: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
badge?: ViewBadge | undefined;
|
|
19
|
+
reveal(element: T, options?: { select?: boolean; focus?: boolean; expand?: boolean | number }): Thenable<void>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* An optional human-readable message that will be rendered in the view.
|
|
23
|
+
* Only a subset of markdown is supported.
|
|
24
|
+
* Setting the message to null, undefined, or empty string will remove the message from the view.
|
|
25
|
+
*/
|
|
26
|
+
message?: string | MarkdownString;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
// https://github.com/microsoft/vscode/issues/61313 @alexr00
|
|
9
|
+
|
|
10
|
+
export interface TreeView<T> extends Disposable {
|
|
11
|
+
reveal(element: T | undefined, options?: { select?: boolean; focus?: boolean; expand?: boolean | number }): Thenable<void>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Used as part of the ResolverResult if the extension has any candidate,
|
|
9
|
+
* published, or forwarded ports.
|
|
10
|
+
*/
|
|
11
|
+
export interface TunnelInformation {
|
|
12
|
+
/**
|
|
13
|
+
* Tunnels that are detected by the extension. The remotePort is used for display purposes.
|
|
14
|
+
* The localAddress should be the complete local address (ex. localhost:1234) for connecting to the port. Tunnels provided through
|
|
15
|
+
* environmentTunnels are read-only from the forwarded ports UI.
|
|
16
|
+
*/
|
|
17
|
+
environmentTunnels?: TunnelDescription[];
|
|
18
|
+
|
|
19
|
+
tunnelFeatures?: {
|
|
20
|
+
elevation: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* One of the the options must have the ID "private".
|
|
23
|
+
*/
|
|
24
|
+
privacyOptions: TunnelPrivacy[];
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface TunnelProvider {
|
|
29
|
+
/**
|
|
30
|
+
* Provides port forwarding capabilities. If there is a resolver that already provids tunnels, then the resolver's provider will
|
|
31
|
+
* be used. If multiple providers are registered, then only the first will be used.
|
|
32
|
+
*/
|
|
33
|
+
provideTunnel(tunnelOptions: TunnelOptions, tunnelCreationOptions: TunnelCreationOptions, token: CancellationToken): ProviderResult<Tunnel>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace workspace {
|
|
37
|
+
/**
|
|
38
|
+
* Registering a tunnel provider enables port forwarding. This will cause the Ports view to show.
|
|
39
|
+
* @param provider
|
|
40
|
+
*/
|
|
41
|
+
export function registerTunnelProvider(provider: TunnelProvider, information: TunnelInformation): Thenable<Disposable>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
// tunnels @alexr00
|
|
9
|
+
|
|
10
|
+
export interface TunnelOptions {
|
|
11
|
+
remoteAddress: { port: number; host: string };
|
|
12
|
+
// The desired local port. If this port can't be used, then another will be chosen.
|
|
13
|
+
localAddressPort?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use privacy instead
|
|
17
|
+
*/
|
|
18
|
+
public?: boolean;
|
|
19
|
+
privacy?: string;
|
|
20
|
+
protocol?: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface TunnelDescription {
|
|
24
|
+
remoteAddress: { port: number; host: string };
|
|
25
|
+
//The complete local address(ex. localhost:1234)
|
|
26
|
+
localAddress: { port: number; host: string } | string;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Use privacy instead
|
|
29
|
+
*/
|
|
30
|
+
public?: boolean;
|
|
31
|
+
privacy?: string;
|
|
32
|
+
// If protocol is not provided it is assumed to be http, regardless of the localAddress.
|
|
33
|
+
protocol?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface Tunnel extends TunnelDescription {
|
|
37
|
+
// Implementers of Tunnel should fire onDidDispose when dispose is called.
|
|
38
|
+
onDidDispose: Event<void>;
|
|
39
|
+
dispose(): void | Thenable<void>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export namespace workspace {
|
|
43
|
+
/**
|
|
44
|
+
* Forwards a port. If the current resolver implements RemoteAuthorityResolver:forwardPort then that will be used to make the tunnel.
|
|
45
|
+
* By default, openTunnel only support localhost; however, RemoteAuthorityResolver:tunnelFactory can be used to support other ips.
|
|
46
|
+
*
|
|
47
|
+
* @throws When run in an environment without a remote.
|
|
48
|
+
*
|
|
49
|
+
* @param tunnelOptions The `localPort` is a suggestion only. If that port is not available another will be chosen.
|
|
50
|
+
*/
|
|
51
|
+
export function openTunnel(tunnelOptions: TunnelOptions): Thenable<Tunnel>;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Gets an array of the currently available tunnels. This does not include environment tunnels, only tunnels that have been created by the user.
|
|
55
|
+
* Note that these are of type TunnelDescription and cannot be disposed.
|
|
56
|
+
*/
|
|
57
|
+
export let tunnels: Thenable<TunnelDescription[]>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Fired when the list of tunnels has changed.
|
|
61
|
+
*/
|
|
62
|
+
export const onDidChangeTunnels: Event<void>;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
// https://github.com/microsoft/vscode/issues/181569 @connor4312
|
|
9
|
+
|
|
10
|
+
export interface WindowState {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates whether the window has been interacted with recently. This will
|
|
13
|
+
* change immediately on activity, or after a short time of user inactivity.
|
|
14
|
+
*/
|
|
15
|
+
readonly active: boolean;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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
|
+
// https://github.com/microsoft/vscode/issues/120173
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The object describing the properties of the workspace trust request
|
|
12
|
+
*/
|
|
13
|
+
export interface WorkspaceTrustRequestOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Custom message describing the user action that requires workspace
|
|
16
|
+
* trust. If omitted, a generic message will be displayed in the workspace
|
|
17
|
+
* trust request dialog.
|
|
18
|
+
*/
|
|
19
|
+
readonly message?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace workspace {
|
|
23
|
+
/**
|
|
24
|
+
* Prompt the user to chose whether to trust the current workspace
|
|
25
|
+
* @param options Optional object describing the properties of the
|
|
26
|
+
* workspace trust request.
|
|
27
|
+
*/
|
|
28
|
+
export function requestWorkspaceTrust(options?: WorkspaceTrustRequestOptions): Thenable<boolean | undefined>;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { URI } from './uri.js';
|
|
2
|
-
|
|
3
|
-
interface IKeyIterator<K> {
|
|
4
|
-
reset(key: K): this;
|
|
5
|
-
next(): this;
|
|
6
|
-
hasNext(): boolean;
|
|
7
|
-
cmp(a: string): number;
|
|
8
|
-
value(): string;
|
|
9
|
-
}
|
|
10
|
-
declare class TernarySearchTree<K, V> {
|
|
11
|
-
static forUris<E>(ignorePathCasing?: (key: URI) => boolean, ignoreQueryAndFragment?: (key: URI) => boolean): TernarySearchTree<URI, E>;
|
|
12
|
-
static forPaths<E>(ignorePathCasing?: boolean): TernarySearchTree<string, E>;
|
|
13
|
-
static forStrings<E>(): TernarySearchTree<string, E>;
|
|
14
|
-
static forConfigKeys<E>(): TernarySearchTree<string, E>;
|
|
15
|
-
private _iter;
|
|
16
|
-
private _root;
|
|
17
|
-
constructor(segments: IKeyIterator<K>);
|
|
18
|
-
clear(): void;
|
|
19
|
-
/**
|
|
20
|
-
* Fill the tree with the same value of the given keys
|
|
21
|
-
*/
|
|
22
|
-
fill(element: V, keys: readonly K[]): void;
|
|
23
|
-
/**
|
|
24
|
-
* Fill the tree with given [key,value]-tuples
|
|
25
|
-
*/
|
|
26
|
-
fill(values: readonly [K, V][]): void;
|
|
27
|
-
set(key: K, element: V): V | undefined;
|
|
28
|
-
get(key: K): V | undefined;
|
|
29
|
-
private _getNode;
|
|
30
|
-
has(key: K): boolean;
|
|
31
|
-
delete(key: K): void;
|
|
32
|
-
deleteSuperstr(key: K): void;
|
|
33
|
-
private _delete;
|
|
34
|
-
private _min;
|
|
35
|
-
findSubstr(key: K): V | undefined;
|
|
36
|
-
findSuperstr(key: K): IterableIterator<[K, V]> | undefined;
|
|
37
|
-
private _findSuperstrOrElement;
|
|
38
|
-
hasElementOrSubtree(key: K): boolean;
|
|
39
|
-
forEach(callback: (value: V, index: K) => any): void;
|
|
40
|
-
[Symbol.iterator](): IterableIterator<[K, V]>;
|
|
41
|
-
private _entries;
|
|
42
|
-
private _dfsEntries;
|
|
43
|
-
_isBalanced(): boolean;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { type IKeyIterator, TernarySearchTree };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UriComponents, URI } from './uri.js';
|
|
2
|
-
|
|
3
|
-
interface IURITransformer {
|
|
4
|
-
transformIncoming(uri: UriComponents): UriComponents;
|
|
5
|
-
transformOutgoing(uri: UriComponents): UriComponents;
|
|
6
|
-
transformOutgoingURI(uri: URI): URI;
|
|
7
|
-
transformOutgoingScheme(scheme: string): string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type { IURITransformer };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { VSBuffer } from '../../../../base/common/buffer.js';
|
|
2
|
-
import { CancellationToken } from '../../../../base/common/cancellation.js';
|
|
3
|
-
|
|
4
|
-
interface IRPCProtocol {
|
|
5
|
-
/**
|
|
6
|
-
* Returns a proxy to an object addressable/named in the extension host process or in the renderer process.
|
|
7
|
-
*/
|
|
8
|
-
getProxy<T>(identifier: ProxyIdentifier<T>): Proxied<T>;
|
|
9
|
-
/**
|
|
10
|
-
* Register manually created instance.
|
|
11
|
-
*/
|
|
12
|
-
set<T, R extends T>(identifier: ProxyIdentifier<T>, instance: R): R;
|
|
13
|
-
/**
|
|
14
|
-
* Assert these identifiers are already registered via `.set`.
|
|
15
|
-
*/
|
|
16
|
-
assertRegistered(identifiers: ProxyIdentifier<any>[]): void;
|
|
17
|
-
/**
|
|
18
|
-
* Wait for the write buffer (if applicable) to become empty.
|
|
19
|
-
*/
|
|
20
|
-
drain(): Promise<void>;
|
|
21
|
-
dispose(): void;
|
|
22
|
-
}
|
|
23
|
-
declare class ProxyIdentifier<T> {
|
|
24
|
-
static count: number;
|
|
25
|
-
_proxyIdentifierBrand: void;
|
|
26
|
-
readonly sid: string;
|
|
27
|
-
readonly nid: number;
|
|
28
|
-
constructor(sid: string);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Mapped-type that replaces all JSONable-types with their toJSON-result type
|
|
32
|
-
*/
|
|
33
|
-
type Dto<T> = T extends {
|
|
34
|
-
toJSON(): infer U;
|
|
35
|
-
} ? U : T extends VSBuffer ? T : T extends CancellationToken ? T : T extends Function ? never : T extends object ? {
|
|
36
|
-
[k in keyof T]: Dto<T[k]>;
|
|
37
|
-
} : T;
|
|
38
|
-
type Proxied<T> = {
|
|
39
|
-
[K in keyof T]: T[K] extends (...args: infer A) => infer R ? (...args: {
|
|
40
|
-
[K in keyof A]: Dto<A[K]>;
|
|
41
|
-
}) => Promise<Dto<Awaited<R>>> : never;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export { type Dto, type IRPCProtocol, type Proxied, ProxyIdentifier };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { UriComponents, URI } from '../../../../base/common/uri.js';
|
|
2
|
-
|
|
3
|
-
interface IPatternInfo {
|
|
4
|
-
pattern: string;
|
|
5
|
-
isRegExp?: boolean;
|
|
6
|
-
isWordMatch?: boolean;
|
|
7
|
-
wordSeparators?: string;
|
|
8
|
-
isMultiline?: boolean;
|
|
9
|
-
isUnicode?: boolean;
|
|
10
|
-
isCaseSensitive?: boolean;
|
|
11
|
-
notebookInfo?: INotebookPatternInfo;
|
|
12
|
-
}
|
|
13
|
-
interface INotebookPatternInfo {
|
|
14
|
-
isInNotebookMarkdownInput?: boolean;
|
|
15
|
-
isInNotebookMarkdownPreview?: boolean;
|
|
16
|
-
isInNotebookCellInput?: boolean;
|
|
17
|
-
isInNotebookCellOutput?: boolean;
|
|
18
|
-
}
|
|
19
|
-
interface IFileMatch<U extends UriComponents = URI> {
|
|
20
|
-
resource: U;
|
|
21
|
-
results?: ITextSearchResult[];
|
|
22
|
-
}
|
|
23
|
-
type IRawFileMatch2 = IFileMatch<UriComponents>;
|
|
24
|
-
interface ITextSearchPreviewOptions {
|
|
25
|
-
matchLines: number;
|
|
26
|
-
charsPerLine: number;
|
|
27
|
-
}
|
|
28
|
-
interface ISearchRange {
|
|
29
|
-
readonly startLineNumber: number;
|
|
30
|
-
readonly startColumn: number;
|
|
31
|
-
readonly endLineNumber: number;
|
|
32
|
-
readonly endColumn: number;
|
|
33
|
-
}
|
|
34
|
-
interface ITextSearchResultPreview {
|
|
35
|
-
text: string;
|
|
36
|
-
matches: ISearchRange | ISearchRange[];
|
|
37
|
-
cellFragment?: string;
|
|
38
|
-
}
|
|
39
|
-
interface ITextSearchMatch {
|
|
40
|
-
uri?: URI;
|
|
41
|
-
ranges: ISearchRange | ISearchRange[];
|
|
42
|
-
preview: ITextSearchResultPreview;
|
|
43
|
-
webviewIndex?: number;
|
|
44
|
-
}
|
|
45
|
-
interface ITextSearchContext {
|
|
46
|
-
uri?: URI;
|
|
47
|
-
text: string;
|
|
48
|
-
lineNumber: number;
|
|
49
|
-
}
|
|
50
|
-
type ITextSearchResult = ITextSearchMatch | ITextSearchContext;
|
|
51
|
-
|
|
52
|
-
export type { IFileMatch, INotebookPatternInfo, IPatternInfo, IRawFileMatch2, ISearchRange, ITextSearchContext, ITextSearchMatch, ITextSearchPreviewOptions, ITextSearchResult, ITextSearchResultPreview };
|