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 (#6964)

fixes #6963
  • Loading branch information
Tomasz Pasternak authored Nov 5, 2024
1 parent c7cd1df commit a51558f
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 a51558f

Please sign in to comment.