We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GoFilesOutsideDirs
1 parent f0df7cd commit 925e99cCopy full SHA for 925e99c
go/extractor/project/project.go
@@ -368,7 +368,8 @@ func getBuildRoots(emitDiagnostics bool) (goWorkspaces []GoWorkspace, totalModul
368
}
369
370
goModDirs := util.GetParentDirs(goModPaths)
371
- if util.AnyGoFilesOutsideDirs(".", goModDirs...) {
+ straySourceFiles := util.GoFilesOutsideDirs(".", goModDirs...)
372
+ if len(straySourceFiles) > 0 {
373
if emitDiagnostics {
374
diagnostics.EmitGoFilesOutsideGoModules(goModPaths)
375
0 commit comments