diff options
Diffstat (limited to 'src/vs/workbench/api/browser/mainThreadExtensionService.ts')
-rw-r--r-- | src/vs/workbench/api/browser/mainThreadExtensionService.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/vs/workbench/api/browser/mainThreadExtensionService.ts b/src/vs/workbench/api/browser/mainThreadExtensionService.ts index 4bc58f95e00..41309ab2bd9 100644 --- a/src/vs/workbench/api/browser/mainThreadExtensionService.ts +++ b/src/vs/workbench/api/browser/mainThreadExtensionService.ts @@ -26,6 +26,7 @@ import { VSBuffer } from 'vs/base/common/buffer'; import { IRemoteConnectionData } from 'vs/platform/remote/common/remoteAuthorityResolver'; import { URI, UriComponents } from 'vs/base/common/uri'; import { FileAccess } from 'vs/base/common/network'; +import { IExtensionDescriptionDelta } from 'vs/workbench/services/extensions/common/extensionHostProtocol'; @extHostNamedCustomer(MainContext.MainThreadExtensionService) export class MainThreadExtensionService implements MainThreadExtensionServiceShape { @@ -57,6 +58,9 @@ export class MainThreadExtensionService implements MainThreadExtensionServiceSha public dispose(): void { } + $getExtension(extensionId: string) { + return this._extensionService.getExtension(extensionId); + } $activateExtension(extensionId: ExtensionIdentifier, reason: ExtensionActivationReason): Promise<void> { return this._internalExtensionService._activateById(extensionId, reason); } @@ -201,8 +205,8 @@ class ExtensionHostProxy implements IExtensionHostProxy { const uriComponents = await this._actual.$getCanonicalURI(remoteAuthority, uri); return (uriComponents ? URI.revive(uriComponents) : uriComponents); } - startExtensionHost(enabledExtensionIds: ExtensionIdentifier[]): Promise<void> { - return this._actual.$startExtensionHost(enabledExtensionIds); + startExtensionHost(extensionsDelta: IExtensionDescriptionDelta): Promise<void> { + return this._actual.$startExtensionHost(extensionsDelta); } extensionTestsExecute(): Promise<number> { return this._actual.$extensionTestsExecute(); @@ -222,8 +226,8 @@ class ExtensionHostProxy implements IExtensionHostProxy { updateRemoteConnectionData(connectionData: IRemoteConnectionData): Promise<void> { return this._actual.$updateRemoteConnectionData(connectionData); } - deltaExtensions(toAdd: IExtensionDescription[], toRemove: ExtensionIdentifier[]): Promise<void> { - return this._actual.$deltaExtensions(toAdd, toRemove); + deltaExtensions(extensionsDelta: IExtensionDescriptionDelta): Promise<void> { + return this._actual.$deltaExtensions(extensionsDelta); } test_latency(n: number): Promise<number> { return this._actual.$test_latency(n); |