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
if(!foundSourceRoots&&(!hasNblsProjectSourceRootsCommand||!isSupportedProjectUri(folder.uri))){// Workaround to allow deep search when using JDT, fixes GDK & JDT without Micronaut Tools
79
79
unrecognizedProjectFolders.push(folder.uri);
80
80
}
81
81
}catch(err){
@@ -91,7 +91,7 @@ export async function getSourceRoots(workspaceFolder?: vscode.WorkspaceFolder):
if(!foundSourceRoots&&(!hasNblsProjectSourceRootsCommand||!isSupportedProjectUri(subfolderUri))){// Workaround to allow deep search when using JDT, fixes GDK & JDT without Micronaut Tools
95
95
unrecognizedProjectFolders.push(subfolderUri);
96
96
}
97
97
}
@@ -135,7 +135,7 @@ async function getUriSourceRootsNbls(sourceRoots: string[], folder: vscode.Works
135
135
}
136
136
}
137
137
for(constsubprojectofsubprojects){
138
-
foundSourceRoots=foundSourceRoots||awaitgetUriSourceRootsNbls(sourceRoots,folder,subproject,false,false);// false prevents deep search (OK for GCN, may need to be enabled for other projects)
138
+
foundSourceRoots=awaitgetUriSourceRootsNbls(sourceRoots,folder,subproject,false,false)||foundSourceRoots;// false prevents deep search (OK for GCN, may need to be enabled for other projects)
139
139
}
140
140
}
141
141
}
@@ -144,7 +144,7 @@ async function getUriSourceRootsNbls(sourceRoots: string[], folder: vscode.Works
144
144
returnfoundSourceRoots;
145
145
}
146
146
147
-
// TODO: add support for modules/subprojects?
147
+
// TODO: add support for modules/subprojects (for example GDK project and Micronaut Tools ext. not installed)
148
148
// NOTE: modules/subprojects are defined by the Micronaut Tools ext., which has NBLS as a required dependency -> getUriSourceRootsNbls will be executed instead of getUriSourceRootsJdt
if(!foundPackages&&(!hasNblsProjectPackagesCommand||!isSupportedProjectUri(folder.uri))){// Workaround to allow deep search when using JDT, fixes GDK & JDT without Micronaut Tools
199
199
unrecognizedProjectFolders.push(folder.uri);
200
200
}
201
201
}catch(err){
@@ -211,7 +211,7 @@ export async function getPackages(workspaceFolder?: vscode.WorkspaceFolder): Pro
if(!foundPackages&&(!hasNblsProjectPackagesCommand||!isSupportedProjectUri(subfolderUri))){// Workaround to allow deep search when using JDT, fixes GDK & JDT without Micronaut Tools
215
215
unrecognizedProjectFolders.push(subfolderUri);
216
216
}
217
217
}
@@ -247,7 +247,7 @@ async function getUriPackagesNbls(packages: string[], folder: vscode.WorkspaceFo
for(constsubprojectofinfos[0].subprojects){// multimodule - most likely GCN
250
-
foundPackages=foundPackages||awaitgetUriPackagesNbls(packages,folder,subproject,false,false);// false prevents deep search (OK for GCN, may need to be enabled for other projects)
250
+
foundPackages=awaitgetUriPackagesNbls(packages,folder,subproject,false,false)||foundPackages;// false prevents deep search (OK for GCN, may need to be enabled for other projects)
251
251
}
252
252
}
253
253
}
@@ -256,7 +256,7 @@ async function getUriPackagesNbls(packages: string[], folder: vscode.WorkspaceFo
256
256
returnfoundPackages;
257
257
}
258
258
259
-
// TODO: add support for modules/subprojects?
259
+
// TODO: add support for modules/subprojects (for example GDK project and Micronaut Tools ext. not installed)
260
260
// NOTE: modules/subprojects are defined by the Micronaut Tools ext., which has NBLS as a required dependency -> getUriPackagesNbls will be executed instead of getUriPackagesJdt
0 commit comments