@codingame/monaco-vscode-api 4.5.0-improve-code-splitting.1 → 4.5.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.
- package/README.md +2 -8
- package/editor.api.d.ts +8 -0
- package/localExtensionHost.d.ts +41 -0
- package/package.json +10 -8
- package/service-override/accessibility.d.ts +5 -0
- package/service-override/ai.d.ts +5 -0
- package/service-override/authentication.d.ts +5 -0
- package/service-override/base.d.ts +5 -0
- package/service-override/bulkEdit.d.ts +5 -0
- package/service-override/chat.d.ts +5 -0
- package/service-override/comments.d.ts +5 -0
- package/service-override/configuration.d.ts +31 -0
- package/service-override/debug.d.ts +5 -0
- package/service-override/dialogs.d.ts +12 -0
- package/service-override/editSessions.d.ts +5 -0
- package/service-override/editor.d.ts +10 -0
- package/service-override/emmet.d.ts +5 -0
- package/service-override/environment.d.ts +10 -0
- package/service-override/explorer.d.ts +5 -0
- package/service-override/extensionGallery.d.ts +12 -0
- package/service-override/extensions.d.ts +43 -0
- package/service-override/files.d.ts +164 -0
- package/service-override/host.d.ts +5 -0
- package/service-override/interactive.d.ts +5 -0
- package/service-override/issue.d.ts +5 -0
- package/service-override/keybindings.d.ts +21 -0
- package/service-override/languageDetectionWorker.d.ts +5 -0
- package/service-override/languages.d.ts +6 -0
- package/service-override/layout.d.ts +128 -0
- package/service-override/lifecycle.d.ts +5 -0
- package/service-override/localization.d.ts +14 -0
- package/service-override/log.d.ts +14 -0
- package/service-override/markers.d.ts +5 -0
- package/service-override/model.d.ts +5 -0
- package/service-override/monarch.d.ts +5 -0
- package/service-override/multiDiffEditor.d.ts +5 -0
- package/service-override/notebook.d.ts +5 -0
- package/service-override/notifications.d.ts +5 -0
- package/service-override/outline.d.ts +5 -0
- package/service-override/output.d.ts +10 -0
- package/service-override/performance.d.ts +5 -0
- package/service-override/preferences.d.ts +5 -0
- package/service-override/quickaccess.d.ts +11 -0
- package/service-override/relauncher.d.ts +5 -0
- package/service-override/remoteAgent.d.ts +12 -0
- package/service-override/scm.d.ts +5 -0
- package/service-override/search.d.ts +12 -0
- package/service-override/secretStorage.d.ts +5 -0
- package/service-override/share.d.ts +5 -0
- package/service-override/snippets.d.ts +9 -0
- package/service-override/speech.d.ts +5 -0
- package/service-override/storage.d.ts +66 -0
- package/service-override/survey.d.ts +5 -0
- package/service-override/task.d.ts +5 -0
- package/service-override/terminal.d.ts +71 -0
- package/service-override/testing.d.ts +5 -0
- package/service-override/textmate.d.ts +6 -0
- package/service-override/theme.d.ts +7 -0
- package/service-override/timeline.d.ts +5 -0
- package/service-override/update.d.ts +5 -0
- package/service-override/userDataSync.d.ts +5 -0
- package/service-override/viewBanner.d.ts +6 -0
- package/service-override/viewCommon.d.ts +6 -0
- package/service-override/viewStatusBar.d.ts +6 -0
- package/service-override/viewTitleBar.d.ts +5 -0
- package/service-override/views.d.ts +47 -0
- package/service-override/walkthrough.d.ts +5 -0
- package/service-override/welcome.d.ts +5 -0
- package/service-override/workbench.d.ts +18 -0
- package/service-override/workingCopy.d.ts +5 -0
- package/service-override/workspaceTrust.d.ts +5 -0
- package/services.js +0 -1
- package/vscode/src/vs/base/browser/indexedDB.d.ts +17 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +62 -0
- package/vscode/src/vs/base/common/worker/simpleWorker.js +2 -6
- package/vscode/src/vs/editor/common/languages/nullTokenize.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +17 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +73 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +43 -0
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.d.ts +48 -0
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +59 -0
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +13 -0
- package/vscode/src/vs/workbench/browser/dnd.d.ts +14 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +61 -0
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +46 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +89 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +108 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +138 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +48 -0
- package/vscode/src/vs/workbench/browser/workbench.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +795 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +168 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +238 -0
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +28 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +53 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +106 -0
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +11 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +162 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +18 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +39 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +6 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +50 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.d.ts +40 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +185 -0
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +41 -0
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service.d.ts +11 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +11 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css.js +0 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +0 -503
- package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +0 -107
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { Event } from '../../../../base/common/event.js';
|
|
2
|
+
import { IDisposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
+
import { OperatingSystem } from '../../../../base/common/platform.js';
|
|
4
|
+
import Severity from '../../../../base/common/severity.js';
|
|
5
|
+
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
6
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
7
|
+
import { ITerminalCapabilityStore } from '../../../../platform/terminal/common/capabilities/capabilities.js';
|
|
8
|
+
import { IMergedEnvironmentVariableCollection } from '../../../../platform/terminal/common/environmentVariable.js';
|
|
9
|
+
import { TitleEventSource, IFixedTerminalDimensions, IProcessProperty, IProcessReadyWindowsPty, ITerminalLaunchError, TerminalLocationString, ITerminalBackend, ITerminalProfileObject } from '../../../../platform/terminal/common/terminal.js';
|
|
10
|
+
import { IEnvironmentVariableInfo } from './environmentVariable.js';
|
|
11
|
+
|
|
12
|
+
type FontWeight = 'normal' | 'bold' | number;
|
|
13
|
+
interface ITerminalProfiles {
|
|
14
|
+
linux: {
|
|
15
|
+
[key: string]: ITerminalProfileObject;
|
|
16
|
+
};
|
|
17
|
+
osx: {
|
|
18
|
+
[key: string]: ITerminalProfileObject;
|
|
19
|
+
};
|
|
20
|
+
windows: {
|
|
21
|
+
[key: string]: ITerminalProfileObject;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type ConfirmOnKill = 'never' | 'always' | 'editor' | 'panel';
|
|
25
|
+
type ConfirmOnExit = 'never' | 'always' | 'hasChildProcesses';
|
|
26
|
+
interface ITerminalConfiguration {
|
|
27
|
+
shell: {
|
|
28
|
+
linux: string | null;
|
|
29
|
+
osx: string | null;
|
|
30
|
+
windows: string | null;
|
|
31
|
+
};
|
|
32
|
+
automationShell: {
|
|
33
|
+
linux: string | null;
|
|
34
|
+
osx: string | null;
|
|
35
|
+
windows: string | null;
|
|
36
|
+
};
|
|
37
|
+
shellArgs: {
|
|
38
|
+
linux: string[];
|
|
39
|
+
osx: string[];
|
|
40
|
+
windows: string[];
|
|
41
|
+
};
|
|
42
|
+
profiles: ITerminalProfiles;
|
|
43
|
+
defaultProfile: {
|
|
44
|
+
linux: string | null;
|
|
45
|
+
osx: string | null;
|
|
46
|
+
windows: string | null;
|
|
47
|
+
};
|
|
48
|
+
useWslProfiles: boolean;
|
|
49
|
+
altClickMovesCursor: boolean;
|
|
50
|
+
macOptionIsMeta: boolean;
|
|
51
|
+
macOptionClickForcesSelection: boolean;
|
|
52
|
+
gpuAcceleration: 'auto' | 'on' | 'canvas' | 'off';
|
|
53
|
+
rightClickBehavior: 'default' | 'copyPaste' | 'paste' | 'selectWord' | 'nothing';
|
|
54
|
+
cursorBlinking: boolean;
|
|
55
|
+
cursorStyle: 'block' | 'underline' | 'line';
|
|
56
|
+
cursorStyleInactive: 'outline' | 'block' | 'underline' | 'line' | 'none';
|
|
57
|
+
cursorWidth: number;
|
|
58
|
+
drawBoldTextInBrightColors: boolean;
|
|
59
|
+
fastScrollSensitivity: number;
|
|
60
|
+
fontFamily: string;
|
|
61
|
+
fontWeight: FontWeight;
|
|
62
|
+
fontWeightBold: FontWeight;
|
|
63
|
+
minimumContrastRatio: number;
|
|
64
|
+
mouseWheelScrollSensitivity: number;
|
|
65
|
+
tabStopWidth: number;
|
|
66
|
+
sendKeybindingsToShell: boolean;
|
|
67
|
+
fontSize: number;
|
|
68
|
+
letterSpacing: number;
|
|
69
|
+
lineHeight: number;
|
|
70
|
+
detectLocale: 'auto' | 'off' | 'on';
|
|
71
|
+
scrollback: number;
|
|
72
|
+
commandsToSkipShell: string[];
|
|
73
|
+
allowChords: boolean;
|
|
74
|
+
allowMnemonics: boolean;
|
|
75
|
+
cwd: string;
|
|
76
|
+
confirmOnExit: ConfirmOnExit;
|
|
77
|
+
confirmOnKill: ConfirmOnKill;
|
|
78
|
+
enableBell: boolean;
|
|
79
|
+
env: {
|
|
80
|
+
linux: {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
};
|
|
83
|
+
osx: {
|
|
84
|
+
[key: string]: string;
|
|
85
|
+
};
|
|
86
|
+
windows: {
|
|
87
|
+
[key: string]: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
environmentChangesIndicator: 'off' | 'on' | 'warnonly';
|
|
91
|
+
environmentChangesRelaunch: boolean;
|
|
92
|
+
showExitAlert: boolean;
|
|
93
|
+
splitCwd: 'workspaceRoot' | 'initial' | 'inherited';
|
|
94
|
+
windowsEnableConpty: boolean;
|
|
95
|
+
wordSeparators: string;
|
|
96
|
+
enableFileLinks: 'off' | 'on' | 'notRemote';
|
|
97
|
+
unicodeVersion: '6' | '11';
|
|
98
|
+
localEchoLatencyThreshold: number;
|
|
99
|
+
localEchoExcludePrograms: ReadonlyArray<string>;
|
|
100
|
+
localEchoEnabled: 'auto' | 'on' | 'off';
|
|
101
|
+
localEchoStyle: 'bold' | 'dim' | 'italic' | 'underlined' | 'inverted' | string;
|
|
102
|
+
enablePersistentSessions: boolean;
|
|
103
|
+
tabs: {
|
|
104
|
+
enabled: boolean;
|
|
105
|
+
hideCondition: 'never' | 'singleTerminal' | 'singleGroup';
|
|
106
|
+
showActiveTerminal: 'always' | 'singleTerminal' | 'singleTerminalOrNarrow' | 'singleGroup' | 'never';
|
|
107
|
+
location: 'left' | 'right';
|
|
108
|
+
focusMode: 'singleClick' | 'doubleClick';
|
|
109
|
+
title: string;
|
|
110
|
+
description: string;
|
|
111
|
+
separator: string;
|
|
112
|
+
};
|
|
113
|
+
bellDuration: number;
|
|
114
|
+
defaultLocation: TerminalLocationString;
|
|
115
|
+
customGlyphs: boolean;
|
|
116
|
+
persistentSessionReviveProcess: 'onExit' | 'onExitAndWindowClose' | 'never';
|
|
117
|
+
ignoreProcessNames: string[];
|
|
118
|
+
autoReplies: {
|
|
119
|
+
[key: string]: string;
|
|
120
|
+
};
|
|
121
|
+
shellIntegration?: {
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
decorationsEnabled: boolean;
|
|
124
|
+
};
|
|
125
|
+
enableImages: boolean;
|
|
126
|
+
smoothScrolling: boolean;
|
|
127
|
+
ignoreBracketedPasteMode: boolean;
|
|
128
|
+
rescaleOverlappingGlyphs: boolean;
|
|
129
|
+
}
|
|
130
|
+
interface ITerminalFont {
|
|
131
|
+
fontFamily: string;
|
|
132
|
+
fontSize: number;
|
|
133
|
+
letterSpacing: number;
|
|
134
|
+
lineHeight: number;
|
|
135
|
+
charWidth?: number;
|
|
136
|
+
charHeight?: number;
|
|
137
|
+
}
|
|
138
|
+
interface IRemoteTerminalAttachTarget {
|
|
139
|
+
id: number;
|
|
140
|
+
pid: number;
|
|
141
|
+
title: string;
|
|
142
|
+
titleSource: TitleEventSource;
|
|
143
|
+
cwd: string;
|
|
144
|
+
workspaceId: string;
|
|
145
|
+
workspaceName: string;
|
|
146
|
+
isOrphan: boolean;
|
|
147
|
+
icon: URI | {
|
|
148
|
+
light: URI;
|
|
149
|
+
dark: URI;
|
|
150
|
+
} | {
|
|
151
|
+
id: string;
|
|
152
|
+
color?: {
|
|
153
|
+
id: string;
|
|
154
|
+
};
|
|
155
|
+
} | undefined;
|
|
156
|
+
color: string | undefined;
|
|
157
|
+
fixedDimensions: IFixedTerminalDimensions | undefined;
|
|
158
|
+
shellIntegrationNonce: string;
|
|
159
|
+
}
|
|
160
|
+
/** Read-only process information that can apply to detached terminals. */
|
|
161
|
+
interface ITerminalProcessInfo {
|
|
162
|
+
readonly processState: ProcessState;
|
|
163
|
+
readonly ptyProcessReady: Promise<void>;
|
|
164
|
+
readonly shellProcessId: number | undefined;
|
|
165
|
+
readonly remoteAuthority: string | undefined;
|
|
166
|
+
readonly os: OperatingSystem | undefined;
|
|
167
|
+
readonly userHome: string | undefined;
|
|
168
|
+
readonly initialCwd: string;
|
|
169
|
+
readonly environmentVariableInfo: IEnvironmentVariableInfo | undefined;
|
|
170
|
+
readonly persistentProcessId: number | undefined;
|
|
171
|
+
readonly shouldPersist: boolean;
|
|
172
|
+
readonly hasWrittenData: boolean;
|
|
173
|
+
readonly hasChildProcesses: boolean;
|
|
174
|
+
readonly backend: ITerminalBackend | undefined;
|
|
175
|
+
readonly capabilities: ITerminalCapabilityStore;
|
|
176
|
+
readonly shellIntegrationNonce: string;
|
|
177
|
+
readonly extEnvironmentVariableCollection: IMergedEnvironmentVariableCollection | undefined;
|
|
178
|
+
}
|
|
179
|
+
declare const enum ProcessState {
|
|
180
|
+
Uninitialized = 1,
|
|
181
|
+
Launching = 2,
|
|
182
|
+
Running = 3,
|
|
183
|
+
KilledDuringLaunch = 4,
|
|
184
|
+
KilledByUser = 5,
|
|
185
|
+
KilledByProcess = 6
|
|
186
|
+
}
|
|
187
|
+
interface ITerminalProcessExtHostProxy extends IDisposable {
|
|
188
|
+
readonly instanceId: number;
|
|
189
|
+
emitData(data: string): void;
|
|
190
|
+
emitProcessProperty(property: IProcessProperty<any>): void;
|
|
191
|
+
emitReady(pid: number, cwd: string, windowsPty: IProcessReadyWindowsPty | undefined): void;
|
|
192
|
+
emitExit(exitCode: number | undefined): void;
|
|
193
|
+
onInput: Event<string>;
|
|
194
|
+
onBinary: Event<string>;
|
|
195
|
+
onResize: Event<{
|
|
196
|
+
cols: number;
|
|
197
|
+
rows: number;
|
|
198
|
+
}>;
|
|
199
|
+
onAcknowledgeDataEvent: Event<number>;
|
|
200
|
+
onShutdown: Event<boolean>;
|
|
201
|
+
onRequestInitialCwd: Event<void>;
|
|
202
|
+
onRequestCwd: Event<void>;
|
|
203
|
+
}
|
|
204
|
+
interface IStartExtensionTerminalRequest {
|
|
205
|
+
proxy: ITerminalProcessExtHostProxy;
|
|
206
|
+
cols: number;
|
|
207
|
+
rows: number;
|
|
208
|
+
callback: (error: ITerminalLaunchError | undefined) => void;
|
|
209
|
+
}
|
|
210
|
+
interface ITerminalStatus {
|
|
211
|
+
/** An internal string ID used to identify the status. */
|
|
212
|
+
id: string;
|
|
213
|
+
/**
|
|
214
|
+
* The severity of the status, this defines both the color and how likely the status is to be
|
|
215
|
+
* the "primary status".
|
|
216
|
+
*/
|
|
217
|
+
severity: Severity;
|
|
218
|
+
/**
|
|
219
|
+
* An icon representing the status, if this is not specified it will not show up on the terminal
|
|
220
|
+
* tab and will use the generic `info` icon when hovering.
|
|
221
|
+
*/
|
|
222
|
+
icon?: ThemeIcon;
|
|
223
|
+
/**
|
|
224
|
+
* What to show for this status in the terminal's hover.
|
|
225
|
+
*/
|
|
226
|
+
tooltip?: string | undefined;
|
|
227
|
+
/**
|
|
228
|
+
* Actions to expose on hover.
|
|
229
|
+
*/
|
|
230
|
+
hoverActions?: ITerminalStatusHoverAction[];
|
|
231
|
+
}
|
|
232
|
+
interface ITerminalStatusHoverAction {
|
|
233
|
+
label: string;
|
|
234
|
+
commandId: string;
|
|
235
|
+
run: () => void;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export { type ConfirmOnExit, type ConfirmOnKill, type FontWeight, type IRemoteTerminalAttachTarget, type IStartExtensionTerminalRequest, type ITerminalConfiguration, type ITerminalFont, type ITerminalProcessExtHostProxy, type ITerminalProcessInfo, type ITerminalProfiles, type ITerminalStatus, type ITerminalStatusHoverAction, ProcessState };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IActivity } from '../common/activity.js';
|
|
2
|
+
import { IActivityService } from '../common/activity.service.js';
|
|
3
|
+
import { Disposable, IDisposable } from '../../../../base/common/lifecycle.js';
|
|
4
|
+
import { ViewContainer } from '../../../common/views.js';
|
|
5
|
+
import { IViewDescriptorService } from '../../../common/views.service.js';
|
|
6
|
+
import { Event } from '../../../../base/common/event.js';
|
|
7
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
8
|
+
|
|
9
|
+
declare class ActivityService extends Disposable implements IActivityService {
|
|
10
|
+
private readonly viewDescriptorService;
|
|
11
|
+
private readonly instantiationService;
|
|
12
|
+
_serviceBrand: undefined;
|
|
13
|
+
private readonly viewActivities;
|
|
14
|
+
private readonly _onDidChangeActivity;
|
|
15
|
+
readonly onDidChangeActivity: Event<string | ViewContainer>;
|
|
16
|
+
private readonly viewContainerActivities;
|
|
17
|
+
private readonly globalActivities;
|
|
18
|
+
constructor(viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService);
|
|
19
|
+
showViewContainerActivity(viewContainerId: string, activity: IActivity): IDisposable;
|
|
20
|
+
getViewContainerActivities(viewContainerId: string): IActivity[];
|
|
21
|
+
showViewActivity(viewId: string, activity: IActivity): IDisposable;
|
|
22
|
+
showAccountsActivity(activity: IActivity): IDisposable;
|
|
23
|
+
showGlobalActivity(activity: IActivity): IDisposable;
|
|
24
|
+
getActivity(id: string): IActivity[];
|
|
25
|
+
private showActivity;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { ActivityService };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { IExtensionIdentifier, IExtensionManifest, IExtension } from '../../../../platform/extensions/common/extensions.js';
|
|
2
|
+
import { InstallExtensionEvent, UninstallExtensionEvent, DidUninstallExtensionEvent, Metadata, ILocalExtension } from '../../../../platform/extensionManagement/common/extensionManagement.js';
|
|
3
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
4
|
+
import { IProfileAwareExtensionManagementService } from './extensionManagement.service.js';
|
|
5
|
+
|
|
6
|
+
type DidChangeProfileEvent = {
|
|
7
|
+
readonly added: ILocalExtension[];
|
|
8
|
+
readonly removed: ILocalExtension[];
|
|
9
|
+
};
|
|
10
|
+
interface IExtensionManagementServer {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly label: string;
|
|
13
|
+
readonly extensionManagementService: IProfileAwareExtensionManagementService;
|
|
14
|
+
}
|
|
15
|
+
interface IResourceExtension {
|
|
16
|
+
readonly identifier: IExtensionIdentifier;
|
|
17
|
+
readonly location: URI;
|
|
18
|
+
readonly manifest: IExtensionManifest;
|
|
19
|
+
readonly readmeUri?: URI;
|
|
20
|
+
readonly changelogUri?: URI;
|
|
21
|
+
}
|
|
22
|
+
type InstallExtensionOnServerEvent = InstallExtensionEvent & {
|
|
23
|
+
server: IExtensionManagementServer;
|
|
24
|
+
};
|
|
25
|
+
type UninstallExtensionOnServerEvent = UninstallExtensionEvent & {
|
|
26
|
+
server: IExtensionManagementServer;
|
|
27
|
+
};
|
|
28
|
+
type DidUninstallExtensionOnServerEvent = DidUninstallExtensionEvent & {
|
|
29
|
+
server: IExtensionManagementServer;
|
|
30
|
+
};
|
|
31
|
+
type DidChangeProfileForServerEvent = DidChangeProfileEvent & {
|
|
32
|
+
server: IExtensionManagementServer;
|
|
33
|
+
};
|
|
34
|
+
declare const enum EnablementState {
|
|
35
|
+
DisabledByTrustRequirement = 0,
|
|
36
|
+
DisabledByExtensionKind = 1,
|
|
37
|
+
DisabledByEnvironment = 2,
|
|
38
|
+
EnabledByEnvironment = 3,
|
|
39
|
+
DisabledByVirtualWorkspace = 4,
|
|
40
|
+
DisabledByExtensionDependency = 5,
|
|
41
|
+
DisabledGlobally = 6,
|
|
42
|
+
DisabledWorkspace = 7,
|
|
43
|
+
EnabledGlobally = 8,
|
|
44
|
+
EnabledWorkspace = 9
|
|
45
|
+
}
|
|
46
|
+
interface IScannedExtension extends IExtension {
|
|
47
|
+
readonly metadata?: Metadata;
|
|
48
|
+
}
|
|
49
|
+
type ScanOptions = {
|
|
50
|
+
readonly skipInvalidExtensions?: boolean;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export { type DidChangeProfileEvent, type DidChangeProfileForServerEvent, type DidUninstallExtensionOnServerEvent, EnablementState, type IExtensionManagementServer, type IResourceExtension, type IScannedExtension, type InstallExtensionOnServerEvent, type ScanOptions, type UninstallExtensionOnServerEvent };
|
package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ServiceIdentifier } from '../../../../platform/instantiation/common/instantiation.js';
|
|
2
|
+
import { Event } from '../../../../base/common/event.js';
|
|
3
|
+
import { IExtensionManagementService } from '../../../../platform/extensionManagement/common/extensionManagement.service.js';
|
|
4
|
+
import { InstallExtensionOnServerEvent, UninstallExtensionOnServerEvent, DidUninstallExtensionOnServerEvent, DidChangeProfileForServerEvent, IResourceExtension, EnablementState, ScanOptions, IScannedExtension, DidChangeProfileEvent } from './extensionManagement.js';
|
|
5
|
+
import { IExtension, IExtensionManifest, ExtensionType } from '../../../../platform/extensions/common/extensions.js';
|
|
6
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
7
|
+
import { InstallExtensionResult, ILocalExtension, InstallOptions, IGalleryExtension, Metadata } from '../../../../platform/extensionManagement/common/extensionManagement.js';
|
|
8
|
+
|
|
9
|
+
declare const IProfileAwareExtensionManagementService: ServiceIdentifier<IProfileAwareExtensionManagementService>;
|
|
10
|
+
interface IProfileAwareExtensionManagementService extends IExtensionManagementService {
|
|
11
|
+
readonly onDidChangeProfile: Event<DidChangeProfileEvent>;
|
|
12
|
+
}
|
|
13
|
+
declare const IWorkbenchExtensionManagementService: ServiceIdentifier<IWorkbenchExtensionManagementService>;
|
|
14
|
+
interface IWorkbenchExtensionManagementService extends IProfileAwareExtensionManagementService {
|
|
15
|
+
readonly _serviceBrand: undefined;
|
|
16
|
+
onInstallExtension: Event<InstallExtensionOnServerEvent>;
|
|
17
|
+
onDidInstallExtensions: Event<readonly InstallExtensionResult[]>;
|
|
18
|
+
onUninstallExtension: Event<UninstallExtensionOnServerEvent>;
|
|
19
|
+
onDidUninstallExtension: Event<DidUninstallExtensionOnServerEvent>;
|
|
20
|
+
onDidChangeProfile: Event<DidChangeProfileForServerEvent>;
|
|
21
|
+
onDidEnableExtensions: Event<IExtension[]>;
|
|
22
|
+
isWorkspaceExtensionsSupported(): boolean;
|
|
23
|
+
getExtensions(locations: URI[]): Promise<IResourceExtension[]>;
|
|
24
|
+
getInstalledWorkspaceExtensions(includeInvalid: boolean): Promise<ILocalExtension[]>;
|
|
25
|
+
installVSIX(location: URI, manifest: IExtensionManifest, installOptions?: InstallOptions): Promise<ILocalExtension>;
|
|
26
|
+
installFromLocation(location: URI): Promise<ILocalExtension>;
|
|
27
|
+
installResourceExtension(extension: IResourceExtension, installOptions: InstallOptions): Promise<ILocalExtension>;
|
|
28
|
+
updateFromGallery(gallery: IGalleryExtension, extension: ILocalExtension, installOptions?: InstallOptions): Promise<ILocalExtension>;
|
|
29
|
+
}
|
|
30
|
+
declare const IWorkbenchExtensionEnablementService: ServiceIdentifier<IWorkbenchExtensionEnablementService>;
|
|
31
|
+
interface IWorkbenchExtensionEnablementService {
|
|
32
|
+
readonly _serviceBrand: undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Event to listen on for extension enablement changes
|
|
35
|
+
*/
|
|
36
|
+
readonly onEnablementChanged: Event<readonly IExtension[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Returns the enablement state for the given extension
|
|
39
|
+
*/
|
|
40
|
+
getEnablementState(extension: IExtension): EnablementState;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the enablement states for the given extensions
|
|
43
|
+
* @param extensions list of extensions
|
|
44
|
+
* @param workspaceTypeOverrides Workspace type overrides
|
|
45
|
+
*/
|
|
46
|
+
getEnablementStates(extensions: IExtension[], workspaceTypeOverrides?: {
|
|
47
|
+
trusted?: boolean;
|
|
48
|
+
}): EnablementState[];
|
|
49
|
+
/**
|
|
50
|
+
* Returns the enablement states for the dependencies of the given extension
|
|
51
|
+
*/
|
|
52
|
+
getDependenciesEnablementStates(extension: IExtension): [IExtension, EnablementState][];
|
|
53
|
+
/**
|
|
54
|
+
* Returns `true` if the enablement can be changed.
|
|
55
|
+
*/
|
|
56
|
+
canChangeEnablement(extension: IExtension): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Returns `true` if the enablement can be changed.
|
|
59
|
+
*/
|
|
60
|
+
canChangeWorkspaceEnablement(extension: IExtension): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Returns `true` if the given extension is enabled.
|
|
63
|
+
*/
|
|
64
|
+
isEnabled(extension: IExtension): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Returns `true` if the given enablement state is enabled enablement state.
|
|
67
|
+
*/
|
|
68
|
+
isEnabledEnablementState(enablementState: EnablementState): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Returns `true` if the given extension identifier is disabled globally.
|
|
71
|
+
* Extensions can be disabled globally or in workspace or both.
|
|
72
|
+
* If an extension is disabled in both then enablement state shows only workspace.
|
|
73
|
+
* This will
|
|
74
|
+
*/
|
|
75
|
+
isDisabledGlobally(extension: IExtension): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Enable or disable the given extension.
|
|
78
|
+
* if `workspace` is `true` then enablement is done for workspace, otherwise globally.
|
|
79
|
+
*
|
|
80
|
+
* Returns a promise that resolves to boolean value.
|
|
81
|
+
* if resolves to `true` then requires restart for the change to take effect.
|
|
82
|
+
*
|
|
83
|
+
* Throws error if enablement is requested for workspace and there is no workspace
|
|
84
|
+
*/
|
|
85
|
+
setEnablement(extensions: IExtension[], state: EnablementState): Promise<boolean[]>;
|
|
86
|
+
/**
|
|
87
|
+
* Updates the enablement state of the extensions when workspace trust changes.
|
|
88
|
+
*/
|
|
89
|
+
updateExtensionsEnablementsWhenWorkspaceTrustChanges(): Promise<void>;
|
|
90
|
+
}
|
|
91
|
+
declare const IWebExtensionsScannerService: ServiceIdentifier<IWebExtensionsScannerService>;
|
|
92
|
+
interface IWebExtensionsScannerService {
|
|
93
|
+
readonly _serviceBrand: undefined;
|
|
94
|
+
scanSystemExtensions(): Promise<IExtension[]>;
|
|
95
|
+
scanUserExtensions(profileLocation: URI, options?: ScanOptions): Promise<IScannedExtension[]>;
|
|
96
|
+
scanExtensionsUnderDevelopment(): Promise<IExtension[]>;
|
|
97
|
+
scanExistingExtension(extensionLocation: URI, extensionType: ExtensionType, profileLocation: URI): Promise<IScannedExtension | null>;
|
|
98
|
+
addExtension(location: URI, metadata: Metadata, profileLocation: URI): Promise<IScannedExtension>;
|
|
99
|
+
addExtensionFromGallery(galleryExtension: IGalleryExtension, metadata: Metadata, profileLocation: URI): Promise<IScannedExtension>;
|
|
100
|
+
removeExtension(extension: IScannedExtension, profileLocation: URI): Promise<void>;
|
|
101
|
+
copyExtensions(fromProfileLocation: URI, toProfileLocation: URI, filter: (extension: IScannedExtension) => boolean): Promise<void>;
|
|
102
|
+
updateMetadata(extension: IScannedExtension, metaData: Partial<Metadata>, profileLocation: URI): Promise<IScannedExtension>;
|
|
103
|
+
scanExtensionManifest(extensionLocation: URI): Promise<IExtensionManifest | null>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export { IProfileAwareExtensionManagementService, IWebExtensionsScannerService, IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
2
|
+
import { IDialogService } from '../../../../platform/dialogs/common/dialogs.service.js';
|
|
3
|
+
import { IExtension, IExtensionDescription } from '../../../../platform/extensions/common/extensions.js';
|
|
4
|
+
import { IFileService } from '../../../../platform/files/common/files.service.js';
|
|
5
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
6
|
+
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
7
|
+
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
8
|
+
import { IProductService } from '../../../../platform/product/common/productService.service.js';
|
|
9
|
+
import { ResolverResult } from '../../../../platform/remote/common/remoteAuthorityResolver.js';
|
|
10
|
+
import { IRemoteAuthorityResolverService } from '../../../../platform/remote/common/remoteAuthorityResolver.service.js';
|
|
11
|
+
import { IRemoteExtensionsScannerService } from '../../../../platform/remote/common/remoteExtensionsScanner.service.js';
|
|
12
|
+
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
13
|
+
import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.service.js';
|
|
14
|
+
import { IWorkspaceTrustManagementService } from '../../../../platform/workspace/common/workspaceTrust.service.js';
|
|
15
|
+
import { IBrowserWorkbenchEnvironmentService } from '../../environment/browser/environmentService.service.js';
|
|
16
|
+
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService, IWebExtensionsScannerService } from '../../extensionManagement/common/extensionManagement.service.js';
|
|
17
|
+
import { IExtensionHostKindPicker } from '../common/extensionHostKind.js';
|
|
18
|
+
import { IExtensionService } from '../common/extensions.service.js';
|
|
19
|
+
import { AbstractExtensionService, IExtensionHostFactory, ResolvedExtensions } from '../common/abstractExtensionService.js';
|
|
20
|
+
import { IExtensionManifestPropertiesService } from '../common/extensionManifestPropertiesService.service.js';
|
|
21
|
+
import { ExtensionsProposedApi } from '../common/extensionsProposedApi.js';
|
|
22
|
+
import { ILifecycleService } from '../../lifecycle/common/lifecycle.service.js';
|
|
23
|
+
import { IRemoteAgentService } from '../../remote/common/remoteAgentService.service.js';
|
|
24
|
+
import { IRemoteExplorerService } from '../../remote/common/remoteExplorerService.service.js';
|
|
25
|
+
import { IUserDataInitializationService } from '../../userData/browser/userDataInit.service.js';
|
|
26
|
+
import { IUserDataProfileService } from '../../userDataProfile/common/userDataProfile.service.js';
|
|
27
|
+
|
|
28
|
+
declare class ExtensionService extends AbstractExtensionService implements IExtensionService {
|
|
29
|
+
private readonly _browserEnvironmentService;
|
|
30
|
+
private readonly _webExtensionsScannerService;
|
|
31
|
+
private readonly _userDataInitializationService;
|
|
32
|
+
private readonly _userDataProfileService;
|
|
33
|
+
private readonly _workspaceTrustManagementService;
|
|
34
|
+
private readonly _remoteExplorerService;
|
|
35
|
+
constructor(extensionsProposedApi: ExtensionsProposedApi, extensionHostFactory: IExtensionHostFactory, extensionHostKindPicker: IExtensionHostKindPicker, instantiationService: IInstantiationService, notificationService: INotificationService, _browserEnvironmentService: IBrowserWorkbenchEnvironmentService, telemetryService: ITelemetryService, extensionEnablementService: IWorkbenchExtensionEnablementService, fileService: IFileService, productService: IProductService, extensionManagementService: IWorkbenchExtensionManagementService, contextService: IWorkspaceContextService, configurationService: IConfigurationService, extensionManifestPropertiesService: IExtensionManifestPropertiesService, _webExtensionsScannerService: IWebExtensionsScannerService, logService: ILogService, remoteAgentService: IRemoteAgentService, remoteExtensionsScannerService: IRemoteExtensionsScannerService, lifecycleService: ILifecycleService, remoteAuthorityResolverService: IRemoteAuthorityResolverService, _userDataInitializationService: IUserDataInitializationService, _userDataProfileService: IUserDataProfileService, _workspaceTrustManagementService: IWorkspaceTrustManagementService, _remoteExplorerService: IRemoteExplorerService, dialogService: IDialogService);
|
|
36
|
+
protected _scanSingleExtension(extension: IExtension): Promise<IExtensionDescription | null>;
|
|
37
|
+
private _initFetchFileSystem;
|
|
38
|
+
protected _scanWebExtensions(): Promise<IExtensionDescription[]>;
|
|
39
|
+
protected _resolveExtensionsDefault(): Promise<ResolvedExtensions>;
|
|
40
|
+
protected _resolveExtensions(): Promise<ResolvedExtensions>;
|
|
41
|
+
protected _onExtensionHostExit(code: number): Promise<void>;
|
|
42
|
+
protected _resolveAuthority(remoteAuthority: string): Promise<ResolverResult>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { ExtensionService };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '../../../../editor/editor.api.js';
|
|
2
|
+
import { ExtensionHostExtensions } from '../common/extensions.js';
|
|
3
|
+
|
|
4
|
+
interface IWebWorkerExtensionHostInitData {
|
|
5
|
+
readonly extensions: ExtensionHostExtensions;
|
|
6
|
+
}
|
|
7
|
+
interface IWebWorkerExtensionHostDataProvider {
|
|
8
|
+
getInitData(): Promise<IWebWorkerExtensionHostInitData>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type { IWebWorkerExtensionHostDataProvider, IWebWorkerExtensionHostInitData };
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { Event } from '../../../../base/common/event.js';
|
|
2
|
+
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
3
|
+
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
4
|
+
import { IDialogService } from '../../../../platform/dialogs/common/dialogs.service.js';
|
|
5
|
+
import { ExtensionIdentifier, IExtensionDescription, IExtension, IExtensionContributions } from '../../../../platform/extensions/common/extensions.js';
|
|
6
|
+
import { IFileService } from '../../../../platform/files/common/files.service.js';
|
|
7
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
8
|
+
import { ILogService } from '../../../../platform/log/common/log.service.js';
|
|
9
|
+
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
10
|
+
import { IProductService } from '../../../../platform/product/common/productService.service.js';
|
|
11
|
+
import { ResolverResult } from '../../../../platform/remote/common/remoteAuthorityResolver.js';
|
|
12
|
+
import { IRemoteAuthorityResolverService } from '../../../../platform/remote/common/remoteAuthorityResolver.service.js';
|
|
13
|
+
import { IRemoteExtensionsScannerService } from '../../../../platform/remote/common/remoteExtensionsScanner.service.js';
|
|
14
|
+
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
15
|
+
import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.service.js';
|
|
16
|
+
import { IWorkbenchEnvironmentService } from '../../environment/common/environmentService.service.js';
|
|
17
|
+
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService } from '../../extensionManagement/common/extensionManagement.service.js';
|
|
18
|
+
import { ExtensionDescriptionRegistrySnapshot } from './extensionDescriptionRegistry.js';
|
|
19
|
+
import { IExtensionHostKindPicker, ExtensionHostKind } from './extensionHostKind.js';
|
|
20
|
+
import { IExtensionHostManager } from './extensionHostManagers.js';
|
|
21
|
+
import { IExtensionManifestPropertiesService } from './extensionManifestPropertiesService.service.js';
|
|
22
|
+
import { ExtensionRunningLocation } from './extensionRunningLocation.js';
|
|
23
|
+
import { ExtensionRunningLocationTracker } from './extensionRunningLocationTracker.js';
|
|
24
|
+
import { IWillActivateEvent, IResponsiveStateChangeEvent, WillStopExtensionHostsEvent, IExtensionHost, ActivationKind, ExtensionActivationReason, ExtensionPointContribution, IExtensionsStatus } from './extensions.js';
|
|
25
|
+
import { IExtensionService } from './extensions.service.js';
|
|
26
|
+
import { ExtensionsProposedApi } from './extensionsProposedApi.js';
|
|
27
|
+
import { IExtensionPoint } from './extensionsRegistry.js';
|
|
28
|
+
import { ILifecycleService } from '../../lifecycle/common/lifecycle.service.js';
|
|
29
|
+
import { IRemoteAgentService } from '../../remote/common/remoteAgentService.service.js';
|
|
30
|
+
|
|
31
|
+
declare abstract class AbstractExtensionService extends Disposable implements IExtensionService {
|
|
32
|
+
protected readonly _extensionsProposedApi: ExtensionsProposedApi;
|
|
33
|
+
protected readonly _extensionHostFactory: IExtensionHostFactory;
|
|
34
|
+
protected readonly _extensionHostKindPicker: IExtensionHostKindPicker;
|
|
35
|
+
protected readonly _instantiationService: IInstantiationService;
|
|
36
|
+
protected readonly _notificationService: INotificationService;
|
|
37
|
+
protected readonly _environmentService: IWorkbenchEnvironmentService;
|
|
38
|
+
protected readonly _telemetryService: ITelemetryService;
|
|
39
|
+
protected readonly _extensionEnablementService: IWorkbenchExtensionEnablementService;
|
|
40
|
+
protected readonly _fileService: IFileService;
|
|
41
|
+
protected readonly _productService: IProductService;
|
|
42
|
+
protected readonly _extensionManagementService: IWorkbenchExtensionManagementService;
|
|
43
|
+
private readonly _contextService;
|
|
44
|
+
private readonly _configurationService;
|
|
45
|
+
private readonly _extensionManifestPropertiesService;
|
|
46
|
+
protected readonly _logService: ILogService;
|
|
47
|
+
protected readonly _remoteAgentService: IRemoteAgentService;
|
|
48
|
+
protected readonly _remoteExtensionsScannerService: IRemoteExtensionsScannerService;
|
|
49
|
+
private readonly _lifecycleService;
|
|
50
|
+
protected readonly _remoteAuthorityResolverService: IRemoteAuthorityResolverService;
|
|
51
|
+
private readonly _dialogService;
|
|
52
|
+
_serviceBrand: undefined;
|
|
53
|
+
private readonly _onDidRegisterExtensions;
|
|
54
|
+
readonly onDidRegisterExtensions: Event<void>;
|
|
55
|
+
private readonly _onDidChangeExtensionsStatus;
|
|
56
|
+
readonly onDidChangeExtensionsStatus: Event<ExtensionIdentifier[]>;
|
|
57
|
+
private readonly _onDidChangeExtensions;
|
|
58
|
+
readonly onDidChangeExtensions: Event<{
|
|
59
|
+
readonly added: ReadonlyArray<IExtensionDescription>;
|
|
60
|
+
readonly removed: ReadonlyArray<IExtensionDescription>;
|
|
61
|
+
}>;
|
|
62
|
+
private readonly _onWillActivateByEvent;
|
|
63
|
+
readonly onWillActivateByEvent: Event<IWillActivateEvent>;
|
|
64
|
+
private readonly _onDidChangeResponsiveChange;
|
|
65
|
+
readonly onDidChangeResponsiveChange: Event<IResponsiveStateChangeEvent>;
|
|
66
|
+
private readonly _onWillStop;
|
|
67
|
+
readonly onWillStop: Event<WillStopExtensionHostsEvent>;
|
|
68
|
+
private readonly _activationEventReader;
|
|
69
|
+
private readonly _registry;
|
|
70
|
+
private readonly _installedExtensionsReady;
|
|
71
|
+
private readonly _extensionStatus;
|
|
72
|
+
private readonly _allRequestedActivateEvents;
|
|
73
|
+
private readonly _runningLocations;
|
|
74
|
+
private readonly _remoteCrashTracker;
|
|
75
|
+
private _deltaExtensionsQueue;
|
|
76
|
+
private _inHandleDeltaExtensions;
|
|
77
|
+
private _extensionHostManagers;
|
|
78
|
+
private _resolveAuthorityAttempt;
|
|
79
|
+
constructor(_extensionsProposedApi: ExtensionsProposedApi, _extensionHostFactory: IExtensionHostFactory, _extensionHostKindPicker: IExtensionHostKindPicker, _instantiationService: IInstantiationService, _notificationService: INotificationService, _environmentService: IWorkbenchEnvironmentService, _telemetryService: ITelemetryService, _extensionEnablementService: IWorkbenchExtensionEnablementService, _fileService: IFileService, _productService: IProductService, _extensionManagementService: IWorkbenchExtensionManagementService, _contextService: IWorkspaceContextService, _configurationService: IConfigurationService, _extensionManifestPropertiesService: IExtensionManifestPropertiesService, _logService: ILogService, _remoteAgentService: IRemoteAgentService, _remoteExtensionsScannerService: IRemoteExtensionsScannerService, _lifecycleService: ILifecycleService, _remoteAuthorityResolverService: IRemoteAuthorityResolverService, _dialogService: IDialogService);
|
|
80
|
+
protected _getExtensionHostManagers(kind: ExtensionHostKind): IExtensionHostManager[];
|
|
81
|
+
private _getExtensionHostManagerByRunningLocation;
|
|
82
|
+
protected _handleDeltaExtensions(item: DeltaExtensionsQueueItem): Promise<void>;
|
|
83
|
+
private _deltaExtensions;
|
|
84
|
+
private _updateExtensionsOnExtHosts;
|
|
85
|
+
private _updateExtensionsOnExtHost;
|
|
86
|
+
canAddExtension(extension: IExtensionDescription): boolean;
|
|
87
|
+
private _canAddExtension;
|
|
88
|
+
canRemoveExtension(extension: IExtensionDescription): boolean;
|
|
89
|
+
private _activateAddedExtensionIfNeeded;
|
|
90
|
+
protected _initialize(): Promise<void>;
|
|
91
|
+
private _processExtensions;
|
|
92
|
+
private _handleExtensionTests;
|
|
93
|
+
private findTestExtensionHost;
|
|
94
|
+
private _releaseBarrier;
|
|
95
|
+
protected _resolveAuthorityInitial(remoteAuthority: string): Promise<ResolverResult>;
|
|
96
|
+
protected _resolveAuthorityAgain(): Promise<void>;
|
|
97
|
+
private _resolveAuthorityWithLogging;
|
|
98
|
+
protected _resolveAuthorityOnExtensionHosts(kind: ExtensionHostKind, remoteAuthority: string): Promise<ResolverResult>;
|
|
99
|
+
stopExtensionHosts(reason: string): Promise<boolean>;
|
|
100
|
+
protected _doStopExtensionHosts(): void;
|
|
101
|
+
private _doStopExtensionHostsWithVeto;
|
|
102
|
+
private _startExtensionHostsIfNecessary;
|
|
103
|
+
private _createExtensionHostManager;
|
|
104
|
+
protected _doCreateExtensionHostManager(extensionHost: IExtensionHost, initialActivationEvents: string[]): IExtensionHostManager;
|
|
105
|
+
private _onExtensionHostCrashOrExit;
|
|
106
|
+
protected _onExtensionHostCrashed(extensionHost: IExtensionHostManager, code: number, signal: string | null): void;
|
|
107
|
+
private _getExtensionHostExitInfoWithTimeout;
|
|
108
|
+
private _onRemoteExtensionHostCrashed;
|
|
109
|
+
protected _logExtensionHostCrash(extensionHost: IExtensionHostManager): void;
|
|
110
|
+
startExtensionHosts(updates?: {
|
|
111
|
+
toAdd: IExtension[];
|
|
112
|
+
toRemove: string[];
|
|
113
|
+
}): Promise<void>;
|
|
114
|
+
activateByEvent(activationEvent: string, activationKind?: ActivationKind): Promise<void>;
|
|
115
|
+
private _activateByEvent;
|
|
116
|
+
activateById(extensionId: ExtensionIdentifier, reason: ExtensionActivationReason): Promise<void>;
|
|
117
|
+
activationEventIsDone(activationEvent: string): boolean;
|
|
118
|
+
whenInstalledExtensionsRegistered(): Promise<boolean>;
|
|
119
|
+
get extensions(): IExtensionDescription[];
|
|
120
|
+
protected _getExtensionRegistrySnapshotWhenReady(): Promise<ExtensionDescriptionRegistrySnapshot>;
|
|
121
|
+
getExtension(id: string): Promise<IExtensionDescription | undefined>;
|
|
122
|
+
readExtensionPointContributions<T extends IExtensionContributions[keyof IExtensionContributions]>(extPoint: IExtensionPoint<T>): Promise<ExtensionPointContribution<T>[]>;
|
|
123
|
+
getExtensionsStatus(): {
|
|
124
|
+
[id: string]: IExtensionsStatus;
|
|
125
|
+
};
|
|
126
|
+
getInspectPorts(extensionHostKind: ExtensionHostKind, tryEnableInspector: boolean): Promise<number[]>;
|
|
127
|
+
setRemoteEnvironment(env: {
|
|
128
|
+
[key: string]: string | null;
|
|
129
|
+
}): Promise<void>;
|
|
130
|
+
private _safeInvokeIsEnabled;
|
|
131
|
+
private _doHandleExtensionPoints;
|
|
132
|
+
private _getOrCreateExtensionStatus;
|
|
133
|
+
private _handleExtensionPointMessage;
|
|
134
|
+
private static _handleExtensionPoint;
|
|
135
|
+
private _acquireInternalAPI;
|
|
136
|
+
_activateById(extensionId: ExtensionIdentifier, reason: ExtensionActivationReason): Promise<void>;
|
|
137
|
+
private _onWillActivateExtension;
|
|
138
|
+
private _onDidActivateExtension;
|
|
139
|
+
private _onDidActivateExtensionError;
|
|
140
|
+
private _onExtensionRuntimeError;
|
|
141
|
+
protected abstract _resolveExtensions(): Promise<ResolvedExtensions>;
|
|
142
|
+
protected abstract _scanSingleExtension(extension: IExtension): Promise<IExtensionDescription | null>;
|
|
143
|
+
protected abstract _onExtensionHostExit(code: number): void;
|
|
144
|
+
protected abstract _resolveAuthority(remoteAuthority: string): Promise<ResolverResult>;
|
|
145
|
+
}
|
|
146
|
+
declare class ResolvedExtensions {
|
|
147
|
+
readonly local: IExtensionDescription[];
|
|
148
|
+
readonly remote: IExtensionDescription[];
|
|
149
|
+
readonly hasLocalProcess: boolean;
|
|
150
|
+
readonly allowRemoteExtensionsInLocalWebWorker: boolean;
|
|
151
|
+
constructor(local: IExtensionDescription[], remote: IExtensionDescription[], hasLocalProcess: boolean, allowRemoteExtensionsInLocalWebWorker: boolean);
|
|
152
|
+
}
|
|
153
|
+
interface IExtensionHostFactory {
|
|
154
|
+
createExtensionHost(runningLocations: ExtensionRunningLocationTracker, runningLocation: ExtensionRunningLocation, isInitialStart: boolean): IExtensionHost | null;
|
|
155
|
+
}
|
|
156
|
+
declare class DeltaExtensionsQueueItem {
|
|
157
|
+
readonly toAdd: IExtension[];
|
|
158
|
+
readonly toRemove: string[] | IExtension[];
|
|
159
|
+
constructor(toAdd: IExtension[], toRemove: string[] | IExtension[]);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export { AbstractExtensionService, DeltaExtensionsQueueItem, type IExtensionHostFactory, ResolvedExtensions };
|