Skip to content

Commit

Permalink
Undo cs only folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallyLiri committed Oct 21, 2019
1 parent c646bd8 commit afe14c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ instrumentCode {
}

group 'com.reallyliri.plugins'
version '1.1'
version '1.2'

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,8 @@ private void listen(ProjectModelNode parentNode) throws IOException {
Set<String> projectDirectoriesPaths = directoriesPathsByProject.get(projectName);
Set<String> currentDirectoryNodesPaths = parentNode.getChildren(false, false).stream()
.filter(node -> node.getDescriptor() instanceof RdProjectFolderDescriptor)
.filter(node -> node.getChildren(false, false).stream()
.anyMatch(child -> child.getDescriptor() instanceof RdProjectFileDescriptor && child.getName().endsWith(".cs"))
)
.map(this::nodeFullRelativePath)
.collect(Collectors.toSet());
if (parentNode.getDescriptor() instanceof RdProjectFolderDescriptor) {
currentDirectoryNodesPaths.add(nodeFullRelativePath(parentNode));
}

Set<String> addedDirectories = difference(currentDirectoryNodesPaths, projectDirectoriesPaths);
// TODO - add support for removed directories - not that simple due to current node being only one level of the tree
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<id>com.reallyliri.plugins.no-namespace-providers</id>
<name>No Namespace Providers</name>
<vendor url="https://github.com/reallyliri">ReallyLiri</vendor>
<version>1.1</version>
<version>1.2</version>
<idea-version since-build="*" />

<description>Automatically mark all directories in your projects as not a namespace providers.</description>
Expand Down

0 comments on commit afe14c3

Please sign in to comment.