File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 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(
9696 if ( resp && Array . isArray ( resp ) ) {
9797 return resp . map ( ( val ) => {
9898 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+ ) {
100105 cfg [ key ] = config . discoveredWorkspaces ;
101106 }
102107 } ) ;
Original file line number Diff line number Diff line change @@ -205,7 +205,9 @@ export class Ctx {
205205 const initializationOptions = prepareVSCodeConfig (
206206 rawInitializationOptions ,
207207 ( 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 ) {
209211 obj [ "linkedProjects" ] = this . config . discoveredWorkspaces ;
210212 }
211213 }
You can’t perform that action at this time.
0 commit comments