From f22d5fa92ba64b662ca9c4f2377b845b94b48ef1 Mon Sep 17 00:00:00 2001 From: Ives van Hoorne Date: Tue, 14 Nov 2023 12:47:09 +0100 Subject: [PATCH] feat: expose `WorkspaceService` We sometimes want to reinitialize the workspace (e.g. when the user decides to change their folders). For this, we need to run: ```ts const workspaceService = accessor.get(IWorkspaceContextService) as WorkspaceService ``` So we can call `initialize` on it. To be able to do this, we need to be able to access the `WorkspaceService` type. In this case I decided to expose it from `configuration.ts`, since it's only used when this service overridden. But let me know if you'd prefer to expose this from services! --- src/service-override/configuration.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/service-override/configuration.ts b/src/service-override/configuration.ts index 37378ece..9465e785 100644 --- a/src/service-override/configuration.ts +++ b/src/service-override/configuration.ts @@ -154,5 +154,6 @@ export { IWorkspaceIdentifier, ISingleFolderWorkspaceIdentifier, IEmptyWorkspaceIdentifier, - IWorkspaceFolderCreationData + IWorkspaceFolderCreationData, + WorkspaceService }