Skip to content

Commit

Permalink
fix(qsync): IJ incorrectly recognizes files as external and asks to a…
Browse files Browse the repository at this point in the history
…dd them the the PV

fixes bazelbuild#6963
  • Loading branch information
tpasternak committed Nov 5, 2024
1 parent c7cd1df commit 30f6842
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,9 @@ public boolean isExcluded(Path workspacePath) {
*/
public Optional<Path> getIncludingContentRoot(Path workspacePath) {
Optional<Path> contentRoot =
projectIncludes().stream().filter(workspacePath::startsWith).findAny();
projectIncludes().stream()
.filter(projectInclude -> projectInclude.toString().isEmpty() || workspacePath.startsWith(projectInclude))
.findAny();

if (contentRoot.isEmpty()) {
return contentRoot;
Expand Down

0 comments on commit 30f6842

Please sign in to comment.