File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,12 @@ export async function createClient(
96
96
if ( resp && Array . isArray ( resp ) ) {
97
97
return resp . map ( ( val ) => {
98
98
return prepareVSCodeConfig ( val , ( key , cfg ) => {
99
- if ( key === "linkedProjects" ) {
99
+ // we only want to set discovered workspaces on the right key
100
+ // and if a workspace has been discovered.
101
+ if (
102
+ key === "linkedProjects" &&
103
+ config . discoveredWorkspaces . length > 0
104
+ ) {
100
105
cfg [ key ] = config . discoveredWorkspaces ;
101
106
}
102
107
} ) ;
Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ export class Ctx {
205
205
const initializationOptions = prepareVSCodeConfig (
206
206
rawInitializationOptions ,
207
207
( key , obj ) => {
208
- if ( key === "linkedProjects" ) {
208
+ // we only want to set discovered workspaces on the right key
209
+ // and if a workspace has been discovered.
210
+ if ( key === "linkedProjects" && this . config . discoveredWorkspaces . length > 0 ) {
209
211
obj [ "linkedProjects" ] = this . config . discoveredWorkspaces ;
210
212
}
211
213
}
You can’t perform that action at this time.
0 commit comments