Skip to content

Commit a34bd7b

Browse files
authored
fix(vscode): getConfiguration handles object input for Service Provider connections with MSI (#8820)
drop down menu fix for services helper for creating service provider connections with MSI
1 parent ba5d393 commit a34bd7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/vs-code-react/src/app/designer/servicesHelper.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,13 @@ export const getDesignerServices = (
180180
getConfiguration: async (connectionId: string, manifest: OperationManifest | undefined): Promise<any> => {
181181
try {
182182
const configuration: Record<string, any> = {};
183+
// WORKAROUND: If connectionId is already a configuration object (not a string),
184+
// it means something is calling getConfiguration with the result of a previous call.
185+
// In this case, just return the object as-is.
186+
const connectionIdAsAny = connectionId as any;
187+
if (typeof connectionIdAsAny === 'object' && connectionIdAsAny !== null) {
188+
return connectionIdAsAny as Record<string, any>;
189+
}
183190

184191
if (shouldIncludeWorkflowAppLocation(isLocal, manifest)) {
185192
configuration.workflowAppLocation = appSettings.ProjectDirectoryPath;

0 commit comments

Comments
 (0)