You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Pattern to mirror: core (`packages/salesforcedx-vscode-core/src/services/extensionProvider.ts`) — local `extensionProvider.ts` keeps only `AllServicesLayer`/`setAllServicesLayer`; imports `buildAllServicesLayer` from `@salesforce/effect-ext-utils`; does NOT re-export it; `index.ts` imports it from shared too and calls `buildAllServicesLayer(ctx, nls.localize('channel_name'))` (core index.ts:49).
- Import `buildAllServicesLayer` from `@salesforce/effect-ext-utils` (used by the `ReturnType<>` type refs in `AllServicesLayer`/`setAllServicesLayer`/`OrgRuntime`).
27
-
- Do NOT re-export it (matches core; avoids re-exporting a third-party symbol as our own surface).
- Import `buildAllServicesLayer` from `@salesforce/effect-ext-utils` (used by the `ReturnType<>` type refs in `AllServicesLayer`/`setAllServicesLayer`/`OrgRuntime`); do NOT re-export it (matches core; avoids re-exporting a third-party symbol as our own surface).
28
27
- Drop now-unused imports: `ExtensionPackageJsonSchema`, `ExtensionProviderService`, `ExtensionPackageJson`, `getServicesApi`, `Effect`, `Schema`, `ExtensionContext`. `Layer` stays (used by `OrgRuntime` type via `Layer.Layer.Success`/`Layer.Layer.Error`).
@@ -50,7 +49,7 @@ commit msg: `refactor(org): use shared buildAllServicesLayer in extensionProvide
50
49
51
50
## Verification
52
51
53
-
-`npm run compile` (or package tsc) — type check; confirms removed imports resolve and the 3 repointed test casts resolve `ReturnType<typeof buildAllServicesLayer>` from `@salesforce/effect-ext-utils`.
52
+
-`npm run compile` (or package tsc) — confirms removed imports + 3 repointed test casts resolve `ReturnType<typeof buildAllServicesLayer>` from `@salesforce/effect-ext-utils`.
0 commit comments