@codingame/monaco-vscode-extensions-service-override 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/index.d.ts +2 -2
- package/package.json +3 -3
- package/extensions.d.ts +0 -44
- package/localExtensionHost.d.ts +0 -41
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +0 -13
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +0 -53
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -106
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +0 -45
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +0 -10
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +0 -162
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +0 -18
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +0 -39
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +0 -17
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.d.ts +0 -20
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +0 -45
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +0 -17
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +0 -6
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +0 -49
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.d.ts +0 -40
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +0 -185
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +0 -11
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.d.ts +0 -9
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export {
|
|
1
|
+
export * from 'vscode/service-override/extensions';
|
|
2
|
+
export { default } from 'vscode/service-override/extensions';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-extensions-service-override",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@4.5.
|
|
30
|
-
"@codingame/monaco-vscode-files-service-override": "4.5.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.5.1",
|
|
30
|
+
"@codingame/monaco-vscode-files-service-override": "4.5.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/extensions.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
2
|
-
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
3
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
4
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
|
-
import { IExtension, IRelaxedExtensionDescription } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
6
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
7
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
9
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
10
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
11
|
-
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
12
|
-
import { IRemoteExtensionsScannerService } from './vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.js';
|
|
13
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
14
|
-
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService, IWebExtensionsScannerService } from './vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.js';
|
|
15
|
-
import { IExtensionManifestPropertiesService } from './vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.js';
|
|
16
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
17
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
18
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
19
|
-
import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
20
|
-
import { IUserDataInitializationService } from './vscode/src/vs/workbench/services/userData/browser/userDataInit.service.js';
|
|
21
|
-
import { ExtensionService } from './vscode/src/vs/workbench/services/extensions/browser/extensionService.js';
|
|
22
|
-
import { ExtensionHostKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
23
|
-
export { ExtensionHostKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
24
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
25
|
-
import { IWorkspaceTrustManagementService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
26
|
-
import { IRemoteExplorerService } from './vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js';
|
|
27
|
-
import { LocalExtensionHost } from './localExtensionHost.js';
|
|
28
|
-
|
|
29
|
-
interface WorkerConfig {
|
|
30
|
-
url: string;
|
|
31
|
-
options?: WorkerOptions;
|
|
32
|
-
}
|
|
33
|
-
declare function setLocalExtensionHost(_localExtensionHost: typeof LocalExtensionHost): void;
|
|
34
|
-
interface IExtensionWithExtHostKind extends IExtension {
|
|
35
|
-
extHostKind?: ExtensionHostKind;
|
|
36
|
-
}
|
|
37
|
-
declare class ExtensionServiceOverride extends ExtensionService implements IExtensionService {
|
|
38
|
-
constructor(workerConfig: WorkerConfig | undefined, 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);
|
|
39
|
-
deltaExtensions(toAdd: IExtensionWithExtHostKind[], toRemove: IExtension[]): Promise<void>;
|
|
40
|
-
protected _scanSingleExtension(extension: IExtension): Promise<Readonly<IRelaxedExtensionDescription> | null>;
|
|
41
|
-
}
|
|
42
|
-
declare function getServiceOverride(workerConfig?: WorkerConfig, _iframeAlternateDomains?: string): IEditorOverrideServices;
|
|
43
|
-
|
|
44
|
-
export { ExtensionServiceOverride, type IExtensionWithExtHostKind, type WorkerConfig, getServiceOverride as default, setLocalExtensionHost };
|
package/localExtensionHost.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IMessagePassingProtocol } from 'vscode/vscode/vs/base/parts/ipc/common/ipc';
|
|
2
|
-
import { LocalProcessRunningLocation } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionRunningLocation';
|
|
3
|
-
import { IExtensionHost, ExtensionHostStartup, ExtensionHostExtensions } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
4
|
-
import { IWebWorkerExtensionHostDataProvider } from './vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.js';
|
|
5
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
6
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
7
|
-
import { ILabelService } from 'vscode/vscode/vs/platform/label/common/label.service';
|
|
8
|
-
import { ILogService, ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
9
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
10
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
11
|
-
import { IUserDataProfilesService } from 'vscode/vscode/vs/platform/userDataProfile/common/userDataProfile.service';
|
|
12
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
13
|
-
|
|
14
|
-
declare class LocalExtensionHost implements IExtensionHost {
|
|
15
|
-
readonly runningLocation: LocalProcessRunningLocation;
|
|
16
|
-
readonly startup: ExtensionHostStartup;
|
|
17
|
-
private readonly _initDataProvider;
|
|
18
|
-
private readonly _telemetryService;
|
|
19
|
-
private readonly _contextService;
|
|
20
|
-
private readonly _labelService;
|
|
21
|
-
private readonly _logService;
|
|
22
|
-
private readonly _loggerService;
|
|
23
|
-
private readonly _environmentService;
|
|
24
|
-
private readonly _productService;
|
|
25
|
-
private readonly _userDataProfilesService;
|
|
26
|
-
readonly remoteAuthority: null;
|
|
27
|
-
extensions: ExtensionHostExtensions | null;
|
|
28
|
-
private readonly _extensionHostLogsLocation;
|
|
29
|
-
private _protocolPromise;
|
|
30
|
-
pid: null;
|
|
31
|
-
constructor(runningLocation: LocalProcessRunningLocation, startup: ExtensionHostStartup, _initDataProvider: IWebWorkerExtensionHostDataProvider, _telemetryService: ITelemetryService, _contextService: IWorkspaceContextService, _labelService: ILabelService, _logService: ILogService, _loggerService: ILoggerService, _environmentService: IBrowserWorkbenchEnvironmentService, _productService: IProductService, _userDataProfilesService: IUserDataProfilesService);
|
|
32
|
-
onExit: Event<any>;
|
|
33
|
-
start(): Promise<IMessagePassingProtocol>;
|
|
34
|
-
_start(): Promise<IMessagePassingProtocol>;
|
|
35
|
-
private _createExtHostInitData;
|
|
36
|
-
getInspectPort(): number | undefined;
|
|
37
|
-
enableInspectPort(): Promise<boolean>;
|
|
38
|
-
dispose(): void;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { LocalExtensionHost };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ServiceIdentifier } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
|
-
import { IExtensionDescription } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
4
|
-
|
|
5
|
-
declare const IRemoteExtensionsScannerService: ServiceIdentifier<IRemoteExtensionsScannerService>;
|
|
6
|
-
interface IRemoteExtensionsScannerService {
|
|
7
|
-
readonly _serviceBrand: undefined;
|
|
8
|
-
whenExtensionsReady(): Promise<void>;
|
|
9
|
-
scanExtensions(): Promise<IExtensionDescription[]>;
|
|
10
|
-
scanSingleExtension(extensionLocation: URI, isBuiltin: boolean): Promise<IExtensionDescription | null>;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { IRemoteExtensionsScannerService };
|
package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { IExtensionIdentifier, IExtensionManifest, IExtension } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
2
|
-
import { InstallExtensionEvent, UninstallExtensionEvent, DidUninstallExtensionEvent, Metadata, ILocalExtension } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
3
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
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
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { ServiceIdentifier } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
-
import { IExtensionManagementService } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
4
|
-
import { InstallExtensionOnServerEvent, UninstallExtensionOnServerEvent, DidUninstallExtensionOnServerEvent, DidChangeProfileForServerEvent, IResourceExtension, EnablementState, ScanOptions, IScannedExtension, DidChangeProfileEvent } from './extensionManagement.js';
|
|
5
|
-
import { IExtension, IExtensionManifest, ExtensionType } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
6
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
7
|
-
import { InstallExtensionResult, ILocalExtension, InstallOptions, IGalleryExtension, Metadata } from 'vscode/vscode/vs/platform/extensionManagement/common/extensionManagement';
|
|
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 };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
2
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
3
|
-
import { IExtension, IExtensionDescription } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
4
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
5
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
7
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
8
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
9
|
-
import { ResolverResult } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
10
|
-
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
11
|
-
import { IRemoteExtensionsScannerService } from '../../../../platform/remote/common/remoteExtensionsScanner.service.js';
|
|
12
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
13
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
14
|
-
import { IWorkspaceTrustManagementService } from 'vscode/vscode/vs/platform/workspace/common/workspaceTrust.service';
|
|
15
|
-
import { IBrowserWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
16
|
-
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService, IWebExtensionsScannerService } from '../../extensionManagement/common/extensionManagement.service.js';
|
|
17
|
-
import { IExtensionHostKindPicker } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
18
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
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 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
23
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
24
|
-
import { IRemoteExplorerService } from '../../remote/common/remoteExplorerService.service.js';
|
|
25
|
-
import { IUserDataInitializationService } from '../../userData/browser/userDataInit.service.js';
|
|
26
|
-
import { IUserDataProfileService } from 'vscode/vscode/vs/workbench/services/userDataProfile/common/userDataProfile.service';
|
|
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 };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ExtensionHostExtensions } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
2
|
-
|
|
3
|
-
interface IWebWorkerExtensionHostInitData {
|
|
4
|
-
readonly extensions: ExtensionHostExtensions;
|
|
5
|
-
}
|
|
6
|
-
interface IWebWorkerExtensionHostDataProvider {
|
|
7
|
-
getInitData(): Promise<IWebWorkerExtensionHostInitData>;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export type { IWebWorkerExtensionHostDataProvider, IWebWorkerExtensionHostInitData };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
4
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
5
|
-
import { ExtensionIdentifier, IExtensionDescription, IExtension, IExtensionContributions } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
6
|
-
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
7
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
9
|
-
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
10
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
11
|
-
import { ResolverResult } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
12
|
-
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
13
|
-
import { IRemoteExtensionsScannerService } from '../../../../platform/remote/common/remoteExtensionsScanner.service.js';
|
|
14
|
-
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
15
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
16
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
17
|
-
import { IWorkbenchExtensionEnablementService, IWorkbenchExtensionManagementService } from '../../extensionManagement/common/extensionManagement.service.js';
|
|
18
|
-
import { ExtensionDescriptionRegistrySnapshot } from './extensionDescriptionRegistry.js';
|
|
19
|
-
import { IExtensionHostKindPicker, ExtensionHostKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
20
|
-
import { IExtensionHostManager } from './extensionHostManagers.js';
|
|
21
|
-
import { IExtensionManifestPropertiesService } from './extensionManifestPropertiesService.service.js';
|
|
22
|
-
import { ExtensionRunningLocation } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionRunningLocation';
|
|
23
|
-
import { ExtensionRunningLocationTracker } from './extensionRunningLocationTracker.js';
|
|
24
|
-
import { IWillActivateEvent, IResponsiveStateChangeEvent, WillStopExtensionHostsEvent, IExtensionHost, ActivationKind, ExtensionActivationReason, ExtensionPointContribution, IExtensionsStatus } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
25
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
26
|
-
import { ExtensionsProposedApi } from './extensionsProposedApi.js';
|
|
27
|
-
import { IExtensionPoint } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
28
|
-
import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
29
|
-
import { IRemoteAgentService } from 'vscode/vscode/vs/workbench/services/remote/common/remoteAgentService.service';
|
|
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 };
|
package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IExtensionDescription, ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
2
|
-
|
|
3
|
-
interface IReadOnlyExtensionDescriptionRegistry {
|
|
4
|
-
containsActivationEvent(activationEvent: string): boolean;
|
|
5
|
-
containsExtension(extensionId: ExtensionIdentifier): boolean;
|
|
6
|
-
getExtensionDescriptionsForActivationEvent(activationEvent: string): IExtensionDescription[];
|
|
7
|
-
getAllExtensionDescriptions(): IExtensionDescription[];
|
|
8
|
-
getExtensionDescription(extensionId: ExtensionIdentifier | string): IExtensionDescription | undefined;
|
|
9
|
-
getExtensionDescriptionByUUID(uuid: string): IExtensionDescription | undefined;
|
|
10
|
-
getExtensionDescriptionByIdOrUUID(extensionId: ExtensionIdentifier | string, uuid: string | undefined): IExtensionDescription | undefined;
|
|
11
|
-
}
|
|
12
|
-
declare class ExtensionDescriptionRegistrySnapshot {
|
|
13
|
-
readonly versionId: number;
|
|
14
|
-
readonly extensions: readonly IExtensionDescription[];
|
|
15
|
-
constructor(versionId: number, extensions: readonly IExtensionDescription[]);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { ExtensionDescriptionRegistrySnapshot, type IReadOnlyExtensionDescriptionRegistry };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
3
|
-
import { ExtensionIdentifier, IExtensionDescription } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
4
|
-
import { ExtensionHostKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
5
|
-
import { IExtensionDescriptionDelta } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostProtocol';
|
|
6
|
-
import { IResolveAuthorityResult } from './extensionHostProxy.js';
|
|
7
|
-
import { ExtensionRunningLocation } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionRunningLocation';
|
|
8
|
-
import { ExtensionHostStartup, ExtensionActivationReason, ActivationKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
9
|
-
import { ResponsiveState } from './rpcProtocol.js';
|
|
10
|
-
|
|
11
|
-
interface IExtensionHostManager {
|
|
12
|
-
readonly pid: number | null;
|
|
13
|
-
readonly kind: ExtensionHostKind;
|
|
14
|
-
readonly startup: ExtensionHostStartup;
|
|
15
|
-
readonly friendyName: string;
|
|
16
|
-
readonly onDidExit: Event<[number, string | null]>;
|
|
17
|
-
readonly onDidChangeResponsiveState: Event<ResponsiveState>;
|
|
18
|
-
dispose(): void;
|
|
19
|
-
ready(): Promise<void>;
|
|
20
|
-
representsRunningLocation(runningLocation: ExtensionRunningLocation): boolean;
|
|
21
|
-
deltaExtensions(extensionsDelta: IExtensionDescriptionDelta): Promise<void>;
|
|
22
|
-
containsExtension(extensionId: ExtensionIdentifier): boolean;
|
|
23
|
-
activate(extension: ExtensionIdentifier, reason: ExtensionActivationReason): Promise<boolean>;
|
|
24
|
-
activateByEvent(activationEvent: string, activationKind: ActivationKind): Promise<void>;
|
|
25
|
-
activationEventIsDone(activationEvent: string): boolean;
|
|
26
|
-
getInspectPort(tryEnableInspector: boolean): Promise<number>;
|
|
27
|
-
resolveAuthority(remoteAuthority: string, resolveAttempt: number): Promise<IResolveAuthorityResult>;
|
|
28
|
-
/**
|
|
29
|
-
* Returns `null` if no resolver for `remoteAuthority` is found.
|
|
30
|
-
*/
|
|
31
|
-
getCanonicalURI(remoteAuthority: string, uri: URI): Promise<URI | null>;
|
|
32
|
-
start(extensionRegistryVersionId: number, allExtensions: readonly IExtensionDescription[], myExtensions: ExtensionIdentifier[]): Promise<void>;
|
|
33
|
-
extensionTestsExecute(): Promise<number>;
|
|
34
|
-
setRemoteEnvironment(env: {
|
|
35
|
-
[key: string]: string | null;
|
|
36
|
-
}): Promise<void>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type { IExtensionHostManager };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { RemoteAuthorityResolverErrorCode, ResolverResult } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
2
|
-
|
|
3
|
-
interface IResolveAuthorityErrorResult {
|
|
4
|
-
type: 'error';
|
|
5
|
-
error: {
|
|
6
|
-
message: string | undefined;
|
|
7
|
-
code: RemoteAuthorityResolverErrorCode;
|
|
8
|
-
detail: any;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
interface IResolveAuthorityOKResult {
|
|
12
|
-
type: 'ok';
|
|
13
|
-
value: ResolverResult;
|
|
14
|
-
}
|
|
15
|
-
type IResolveAuthorityResult = IResolveAuthorityErrorResult | IResolveAuthorityOKResult;
|
|
16
|
-
|
|
17
|
-
export type { IResolveAuthorityErrorResult, IResolveAuthorityOKResult, IResolveAuthorityResult };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ServiceIdentifier } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
import { IExtensionManifest, IExtensionIdentifier, ExtensionUntrustedWorkspaceSupportType, ExtensionVirtualWorkspaceSupportType } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
3
|
-
import { ExtensionKind } from 'vscode/vscode/vs/platform/environment/common/environment';
|
|
4
|
-
|
|
5
|
-
declare const IExtensionManifestPropertiesService: ServiceIdentifier<IExtensionManifestPropertiesService>;
|
|
6
|
-
interface IExtensionManifestPropertiesService {
|
|
7
|
-
readonly _serviceBrand: undefined;
|
|
8
|
-
prefersExecuteOnUI(manifest: IExtensionManifest): boolean;
|
|
9
|
-
prefersExecuteOnWorkspace(manifest: IExtensionManifest): boolean;
|
|
10
|
-
prefersExecuteOnWeb(manifest: IExtensionManifest): boolean;
|
|
11
|
-
canExecuteOnUI(manifest: IExtensionManifest): boolean;
|
|
12
|
-
canExecuteOnWorkspace(manifest: IExtensionManifest): boolean;
|
|
13
|
-
canExecuteOnWeb(manifest: IExtensionManifest): boolean;
|
|
14
|
-
getExtensionKind(manifest: IExtensionManifest): ExtensionKind[];
|
|
15
|
-
getUserConfiguredExtensionKind(extensionIdentifier: IExtensionIdentifier): ExtensionKind[] | undefined;
|
|
16
|
-
getExtensionUntrustedWorkspaceSupportType(manifest: IExtensionManifest): ExtensionUntrustedWorkspaceSupportType;
|
|
17
|
-
getExtensionVirtualWorkspaceSupportType(manifest: IExtensionManifest): ExtensionVirtualWorkspaceSupportType;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { IExtensionManifestPropertiesService };
|
package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
2
|
-
import { ExtensionKind } from 'vscode/vscode/vs/platform/environment/common/environment';
|
|
3
|
-
import { ExtensionIdentifier, IExtensionDescription, ExtensionIdentifierMap } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
4
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
5
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
6
|
-
import { IReadOnlyExtensionDescriptionRegistry } from './extensionDescriptionRegistry.js';
|
|
7
|
-
import { IExtensionHostKindPicker, ExtensionHostKind } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionHostKind';
|
|
8
|
-
import { IExtensionHostManager } from './extensionHostManagers.js';
|
|
9
|
-
import { IExtensionManifestPropertiesService } from './extensionManifestPropertiesService.service.js';
|
|
10
|
-
import { ExtensionRunningLocation } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionRunningLocation';
|
|
11
|
-
|
|
12
|
-
declare class ExtensionRunningLocationTracker {
|
|
13
|
-
private readonly _registry;
|
|
14
|
-
private readonly _extensionHostKindPicker;
|
|
15
|
-
private readonly _environmentService;
|
|
16
|
-
private readonly _configurationService;
|
|
17
|
-
private readonly _logService;
|
|
18
|
-
private readonly _extensionManifestPropertiesService;
|
|
19
|
-
private _runningLocation;
|
|
20
|
-
private _maxLocalProcessAffinity;
|
|
21
|
-
private _maxLocalWebWorkerAffinity;
|
|
22
|
-
get maxLocalProcessAffinity(): number;
|
|
23
|
-
get maxLocalWebWorkerAffinity(): number;
|
|
24
|
-
constructor(_registry: IReadOnlyExtensionDescriptionRegistry, _extensionHostKindPicker: IExtensionHostKindPicker, _environmentService: IWorkbenchEnvironmentService, _configurationService: IConfigurationService, _logService: ILogService, _extensionManifestPropertiesService: IExtensionManifestPropertiesService);
|
|
25
|
-
set(extensionId: ExtensionIdentifier, runningLocation: ExtensionRunningLocation): void;
|
|
26
|
-
readExtensionKinds(extensionDescription: IExtensionDescription): ExtensionKind[];
|
|
27
|
-
getRunningLocation(extensionId: ExtensionIdentifier): ExtensionRunningLocation | null;
|
|
28
|
-
filterByRunningLocation(extensions: readonly IExtensionDescription[], desiredRunningLocation: ExtensionRunningLocation): IExtensionDescription[];
|
|
29
|
-
filterByExtensionHostKind(extensions: readonly IExtensionDescription[], desiredExtensionHostKind: ExtensionHostKind): IExtensionDescription[];
|
|
30
|
-
filterByExtensionHostManager(extensions: readonly IExtensionDescription[], extensionHostManager: IExtensionHostManager): IExtensionDescription[];
|
|
31
|
-
private _computeAffinity;
|
|
32
|
-
computeRunningLocation(localExtensions: IExtensionDescription[], remoteExtensions: IExtensionDescription[], isInitialAllocation: boolean): ExtensionIdentifierMap<ExtensionRunningLocation | null>;
|
|
33
|
-
private _doComputeRunningLocation;
|
|
34
|
-
initializeRunningLocation(localExtensions: IExtensionDescription[], remoteExtensions: IExtensionDescription[]): void;
|
|
35
|
-
/**
|
|
36
|
-
* Returns the running locations for the removed extensions.
|
|
37
|
-
*/
|
|
38
|
-
deltaExtensions(toAdd: IExtensionDescription[], toRemove: ExtensionIdentifier[]): ExtensionIdentifierMap<ExtensionRunningLocation | null>;
|
|
39
|
-
/**
|
|
40
|
-
* Update `this._runningLocation` with running locations for newly enabled/installed extensions.
|
|
41
|
-
*/
|
|
42
|
-
private _updateRunningLocationForAddedExtensions;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { ExtensionRunningLocationTracker };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IExtensionDescription } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
2
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
3
|
-
import { IProductService } from 'vscode/vscode/vs/platform/product/common/productService.service';
|
|
4
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
5
|
-
|
|
6
|
-
declare class ExtensionsProposedApi {
|
|
7
|
-
private readonly _logService;
|
|
8
|
-
private readonly _environmentService;
|
|
9
|
-
private readonly _envEnablesProposedApiForAll;
|
|
10
|
-
private readonly _envEnabledExtensions;
|
|
11
|
-
private readonly _productEnabledExtensions;
|
|
12
|
-
constructor(_logService: ILogService, _environmentService: IWorkbenchEnvironmentService, productService: IProductService);
|
|
13
|
-
updateEnabledApiProposals(extensions: IExtensionDescription[]): void;
|
|
14
|
-
private doUpdateEnabledApiProposals;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export { ExtensionsProposedApi };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
2
|
-
import { TunnelProtocol } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
3
|
-
import { TunnelPrivacy } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
4
|
-
import { IExtensionDescription } from 'vscode/vscode/vs/platform/extensions/common/extensions';
|
|
5
|
-
import { TunnelSource } from './tunnelModel.js';
|
|
6
|
-
|
|
7
|
-
declare enum TunnelType {
|
|
8
|
-
Candidate = "Candidate",
|
|
9
|
-
Detected = "Detected",
|
|
10
|
-
Forwarded = "Forwarded",
|
|
11
|
-
Add = "Add"
|
|
12
|
-
}
|
|
13
|
-
interface ITunnelItem {
|
|
14
|
-
tunnelType: TunnelType;
|
|
15
|
-
remoteHost: string;
|
|
16
|
-
remotePort: number;
|
|
17
|
-
localAddress?: string;
|
|
18
|
-
protocol: TunnelProtocol;
|
|
19
|
-
localUri?: URI;
|
|
20
|
-
localPort?: number;
|
|
21
|
-
name?: string;
|
|
22
|
-
closeable?: boolean;
|
|
23
|
-
source: {
|
|
24
|
-
source: TunnelSource;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
privacy: TunnelPrivacy;
|
|
28
|
-
processDescription?: string;
|
|
29
|
-
readonly label: string;
|
|
30
|
-
}
|
|
31
|
-
declare enum TunnelEditId {
|
|
32
|
-
None = 0,
|
|
33
|
-
New = 1,
|
|
34
|
-
Label = 2,
|
|
35
|
-
LocalPort = 3
|
|
36
|
-
}
|
|
37
|
-
interface HelpInformation {
|
|
38
|
-
extensionDescription: IExtensionDescription;
|
|
39
|
-
getStarted?: string | {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
documentation?: string;
|
|
43
|
-
issues?: string;
|
|
44
|
-
reportIssue?: string;
|
|
45
|
-
remoteName?: string[] | string;
|
|
46
|
-
virtualWorkspace?: string;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { type HelpInformation, type ITunnelItem, TunnelEditId, TunnelType };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ServiceIdentifier } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
|
-
import { RemoteTunnel } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
4
|
-
import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { IEditableData } from 'vscode/vscode/vs/workbench/common/views';
|
|
6
|
-
import { TunnelInformation } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
7
|
-
import { TunnelModel, TunnelProperties, Attributes, TunnelCloseReason, CandidatePort } from './tunnelModel.js';
|
|
8
|
-
import { IExtensionPointUser } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
9
|
-
import { HelpInformation, ITunnelItem, TunnelEditId } from './remoteExplorerService.js';
|
|
10
|
-
|
|
11
|
-
declare const IRemoteExplorerService: ServiceIdentifier<IRemoteExplorerService>;
|
|
12
|
-
interface IRemoteExplorerService {
|
|
13
|
-
readonly _serviceBrand: undefined;
|
|
14
|
-
onDidChangeTargetType: Event<string[]>;
|
|
15
|
-
targetType: string[];
|
|
16
|
-
onDidChangeHelpInformation: Event<readonly IExtensionPointUser<HelpInformation>[]>;
|
|
17
|
-
helpInformation: IExtensionPointUser<HelpInformation>[];
|
|
18
|
-
readonly tunnelModel: TunnelModel;
|
|
19
|
-
onDidChangeEditable: Event<{
|
|
20
|
-
tunnel: ITunnelItem;
|
|
21
|
-
editId: TunnelEditId;
|
|
22
|
-
} | undefined>;
|
|
23
|
-
setEditable(tunnelItem: ITunnelItem | undefined, editId: TunnelEditId, data: IEditableData | null): void;
|
|
24
|
-
getEditableData(tunnelItem: ITunnelItem | undefined, editId?: TunnelEditId): IEditableData | undefined;
|
|
25
|
-
forward(tunnelProperties: TunnelProperties, attributes?: Attributes | null): Promise<RemoteTunnel | string | undefined>;
|
|
26
|
-
close(remote: {
|
|
27
|
-
host: string;
|
|
28
|
-
port: number;
|
|
29
|
-
}, reason: TunnelCloseReason): Promise<void>;
|
|
30
|
-
setTunnelInformation(tunnelInformation: TunnelInformation | undefined): void;
|
|
31
|
-
setCandidateFilter(filter: ((candidates: CandidatePort[]) => Promise<CandidatePort[]>) | undefined): IDisposable;
|
|
32
|
-
onFoundNewCandidates(candidates: CandidatePort[]): void;
|
|
33
|
-
restore(): Promise<void>;
|
|
34
|
-
enablePortsFeatures(): void;
|
|
35
|
-
onEnabledPortsFeatures: Event<void>;
|
|
36
|
-
portsFeaturesEnabled: boolean;
|
|
37
|
-
readonly namedProcesses: Map<number, string>;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export { IRemoteExplorerService };
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
2
|
-
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
|
-
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
4
|
-
import { ConfigurationTarget } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
5
|
-
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
6
|
-
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
7
|
-
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
8
|
-
import { TunnelDescription } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver';
|
|
9
|
-
import { IRemoteAuthorityResolverService } from 'vscode/vscode/vs/platform/remote/common/remoteAuthorityResolver.service';
|
|
10
|
-
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
11
|
-
import { TunnelProtocol, RemoteTunnel, PortAttributesProvider, TunnelPrivacyId, ProvidedOnAutoForward } from 'vscode/vscode/vs/platform/tunnel/common/tunnel';
|
|
12
|
-
import { ITunnelService } from 'vscode/vscode/vs/platform/tunnel/common/tunnel.service';
|
|
13
|
-
import { IWorkspaceContextService } from 'vscode/vscode/vs/platform/workspace/common/workspace.service';
|
|
14
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
15
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
16
|
-
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
17
|
-
|
|
18
|
-
interface Tunnel {
|
|
19
|
-
remoteHost: string;
|
|
20
|
-
remotePort: number;
|
|
21
|
-
localAddress: string;
|
|
22
|
-
localUri: URI;
|
|
23
|
-
protocol: TunnelProtocol;
|
|
24
|
-
localPort?: number;
|
|
25
|
-
name?: string;
|
|
26
|
-
closeable?: boolean;
|
|
27
|
-
privacy: TunnelPrivacyId | string;
|
|
28
|
-
runningProcess: string | undefined;
|
|
29
|
-
hasRunningProcess?: boolean;
|
|
30
|
-
pid: number | undefined;
|
|
31
|
-
source: {
|
|
32
|
-
source: TunnelSource;
|
|
33
|
-
description: string;
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
declare enum TunnelCloseReason {
|
|
37
|
-
Other = "Other",
|
|
38
|
-
User = "User",
|
|
39
|
-
AutoForwardEnd = "AutoForwardEnd"
|
|
40
|
-
}
|
|
41
|
-
declare enum TunnelSource {
|
|
42
|
-
User = 0,
|
|
43
|
-
Auto = 1,
|
|
44
|
-
Extension = 2
|
|
45
|
-
}
|
|
46
|
-
interface TunnelProperties {
|
|
47
|
-
remote: {
|
|
48
|
-
host: string;
|
|
49
|
-
port: number;
|
|
50
|
-
};
|
|
51
|
-
local?: number;
|
|
52
|
-
name?: string;
|
|
53
|
-
source?: {
|
|
54
|
-
source: TunnelSource;
|
|
55
|
-
description: string;
|
|
56
|
-
};
|
|
57
|
-
elevateIfNeeded?: boolean;
|
|
58
|
-
privacy?: string;
|
|
59
|
-
}
|
|
60
|
-
interface CandidatePort {
|
|
61
|
-
host: string;
|
|
62
|
-
port: number;
|
|
63
|
-
detail?: string;
|
|
64
|
-
pid?: number;
|
|
65
|
-
}
|
|
66
|
-
declare enum OnPortForward {
|
|
67
|
-
Notify = "notify",
|
|
68
|
-
OpenBrowser = "openBrowser",
|
|
69
|
-
OpenBrowserOnce = "openBrowserOnce",
|
|
70
|
-
OpenPreview = "openPreview",
|
|
71
|
-
Silent = "silent",
|
|
72
|
-
Ignore = "ignore"
|
|
73
|
-
}
|
|
74
|
-
interface Attributes {
|
|
75
|
-
label: string | undefined;
|
|
76
|
-
onAutoForward: OnPortForward | undefined;
|
|
77
|
-
elevateIfNeeded: boolean | undefined;
|
|
78
|
-
requireLocalPort: boolean | undefined;
|
|
79
|
-
protocol: TunnelProtocol | undefined;
|
|
80
|
-
}
|
|
81
|
-
declare class PortsAttributes extends Disposable {
|
|
82
|
-
private readonly configurationService;
|
|
83
|
-
private static SETTING;
|
|
84
|
-
private static DEFAULTS;
|
|
85
|
-
private static RANGE;
|
|
86
|
-
private static HOST_AND_PORT;
|
|
87
|
-
private portsAttributes;
|
|
88
|
-
private defaultPortAttributes;
|
|
89
|
-
private _onDidChangeAttributes;
|
|
90
|
-
readonly onDidChangeAttributes: Event<void>;
|
|
91
|
-
constructor(configurationService: IConfigurationService);
|
|
92
|
-
private updateAttributes;
|
|
93
|
-
getAttributes(port: number, host: string, commandLine?: string): Attributes | undefined;
|
|
94
|
-
private hasStartEnd;
|
|
95
|
-
private hasHostAndPort;
|
|
96
|
-
private findNextIndex;
|
|
97
|
-
private readSetting;
|
|
98
|
-
private sortAttributes;
|
|
99
|
-
private getOtherAttributes;
|
|
100
|
-
static providedActionToAction(providedAction: ProvidedOnAutoForward | undefined): OnPortForward | undefined;
|
|
101
|
-
addAttributes(port: number, attributes: Partial<Attributes>, target: ConfigurationTarget): Promise<void>;
|
|
102
|
-
}
|
|
103
|
-
declare class TunnelModel extends Disposable {
|
|
104
|
-
private readonly tunnelService;
|
|
105
|
-
private readonly storageService;
|
|
106
|
-
private readonly configurationService;
|
|
107
|
-
private readonly environmentService;
|
|
108
|
-
private readonly remoteAuthorityResolverService;
|
|
109
|
-
private readonly workspaceContextService;
|
|
110
|
-
private readonly logService;
|
|
111
|
-
private readonly dialogService;
|
|
112
|
-
private readonly extensionService;
|
|
113
|
-
private readonly contextKeyService;
|
|
114
|
-
readonly forwarded: Map<string, Tunnel>;
|
|
115
|
-
private readonly inProgress;
|
|
116
|
-
readonly detected: Map<string, Tunnel>;
|
|
117
|
-
private remoteTunnels;
|
|
118
|
-
private _onForwardPort;
|
|
119
|
-
onForwardPort: Event<Tunnel | void>;
|
|
120
|
-
private _onClosePort;
|
|
121
|
-
onClosePort: Event<{
|
|
122
|
-
host: string;
|
|
123
|
-
port: number;
|
|
124
|
-
}>;
|
|
125
|
-
private _onPortName;
|
|
126
|
-
onPortName: Event<{
|
|
127
|
-
host: string;
|
|
128
|
-
port: number;
|
|
129
|
-
}>;
|
|
130
|
-
private _candidates;
|
|
131
|
-
private _onCandidatesChanged;
|
|
132
|
-
onCandidatesChanged: Event<Map<string, {
|
|
133
|
-
host: string;
|
|
134
|
-
port: number;
|
|
135
|
-
}>>;
|
|
136
|
-
private _candidateFilter;
|
|
137
|
-
private tunnelRestoreValue;
|
|
138
|
-
private _onEnvironmentTunnelsSet;
|
|
139
|
-
onEnvironmentTunnelsSet: Event<void>;
|
|
140
|
-
private _environmentTunnelsSet;
|
|
141
|
-
readonly configPortsAttributes: PortsAttributes;
|
|
142
|
-
private restoreListener;
|
|
143
|
-
private knownPortsRestoreValue;
|
|
144
|
-
private restoreComplete;
|
|
145
|
-
private onRestoreComplete;
|
|
146
|
-
private unrestoredExtensionTunnels;
|
|
147
|
-
private sessionCachedProperties;
|
|
148
|
-
private portAttributesProviders;
|
|
149
|
-
constructor(tunnelService: ITunnelService, storageService: IStorageService, configurationService: IConfigurationService, environmentService: IWorkbenchEnvironmentService, remoteAuthorityResolverService: IRemoteAuthorityResolverService, workspaceContextService: IWorkspaceContextService, logService: ILogService, dialogService: IDialogService, extensionService: IExtensionService, contextKeyService: IContextKeyService);
|
|
150
|
-
private extensionHasActivationEvent;
|
|
151
|
-
private checkExtensionActivationEvents;
|
|
152
|
-
private onTunnelClosed;
|
|
153
|
-
private makeLocalUri;
|
|
154
|
-
private addStorageKeyPostfix;
|
|
155
|
-
private getTunnelRestoreStorageKey;
|
|
156
|
-
private getRestoreExpirationStorageKey;
|
|
157
|
-
private getTunnelRestoreValue;
|
|
158
|
-
restoreForwarded(): Promise<void>;
|
|
159
|
-
private cleanupExpiredTunnelsForRestore;
|
|
160
|
-
private storeForwarded;
|
|
161
|
-
private mismatchCooldown;
|
|
162
|
-
private showPortMismatchModalIfNeeded;
|
|
163
|
-
forward(tunnelProperties: TunnelProperties, attributes?: Attributes | null): Promise<RemoteTunnel | string | undefined>;
|
|
164
|
-
private doForward;
|
|
165
|
-
private mergeCachedAndUnrestoredProperties;
|
|
166
|
-
private mergeAttributesIntoExistingTunnel;
|
|
167
|
-
name(host: string, port: number, name: string): Promise<void>;
|
|
168
|
-
close(host: string, port: number, reason: TunnelCloseReason): Promise<void>;
|
|
169
|
-
address(host: string, port: number): string | undefined;
|
|
170
|
-
get environmentTunnelsSet(): boolean;
|
|
171
|
-
addEnvironmentTunnels(tunnels: TunnelDescription[] | undefined): void;
|
|
172
|
-
setCandidateFilter(filter: ((candidates: CandidatePort[]) => Promise<CandidatePort[]>) | undefined): void;
|
|
173
|
-
setCandidates(candidates: CandidatePort[]): Promise<void>;
|
|
174
|
-
private updateInResponseToCandidates;
|
|
175
|
-
get candidates(): CandidatePort[];
|
|
176
|
-
get candidatesOrUndefined(): CandidatePort[] | undefined;
|
|
177
|
-
private updateAttributes;
|
|
178
|
-
getAttributes(forwardedPorts: {
|
|
179
|
-
host: string;
|
|
180
|
-
port: number;
|
|
181
|
-
}[], checkProviders?: boolean): Promise<Map<number, Attributes> | undefined>;
|
|
182
|
-
addAttributesProvider(provider: PortAttributesProvider): void;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
export { type Attributes, type CandidatePort, OnPortForward, PortsAttributes, type Tunnel, TunnelCloseReason, TunnelModel, type TunnelProperties, TunnelSource };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
|
|
3
|
-
interface IUserDataInitializer {
|
|
4
|
-
requiresInitialization(): Promise<boolean>;
|
|
5
|
-
whenInitializationFinished(): Promise<void>;
|
|
6
|
-
initializeRequiredResources(): Promise<void>;
|
|
7
|
-
initializeInstalledExtensions(instantiationService: IInstantiationService): Promise<void>;
|
|
8
|
-
initializeOtherResources(instantiationService: IInstantiationService): Promise<void>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export type { IUserDataInitializer };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ServiceIdentifier } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
2
|
-
import { IUserDataInitializer } from './userDataInit.js';
|
|
3
|
-
|
|
4
|
-
declare const IUserDataInitializationService: ServiceIdentifier<IUserDataInitializationService>;
|
|
5
|
-
interface IUserDataInitializationService extends IUserDataInitializer {
|
|
6
|
-
_serviceBrand: any;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export { IUserDataInitializationService };
|