Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/client.ts')
-rw-r--r--editors/code/src/client.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts
index 9a576570be..565cb9c643 100644
--- a/editors/code/src/client.ts
+++ b/editors/code/src/client.ts
@@ -96,7 +96,12 @@ export async function createClient(
if (resp && Array.isArray(resp)) {
return resp.map((val) => {
return prepareVSCodeConfig(val, (key, cfg) => {
- if (key === "linkedProjects") {
+ // we only want to set discovered workspaces on the right key
+ // and if a workspace has been discovered.
+ if (
+ key === "linkedProjects" &&
+ config.discoveredWorkspaces.length > 0
+ ) {
cfg[key] = config.discoveredWorkspaces;
}
});