Skip to content

Commit

Permalink
fix: add symlinks when settings are applied
Browse files Browse the repository at this point in the history
  • Loading branch information
cvette committed Jul 24, 2023
1 parent 685c720 commit 95f4714
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/de/vette/idea/neos/ComposerUpdateListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public void packageRefreshed(@NotNull Project project) {
return;
}

addSymlinks(project);
}


public static void addSymlinks(Project project) {
VirtualFile config = ComposerDataService.getInstance(project).getCurrentConfigFile();

if (config == null) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/de/vette/idea/neos/SettingsForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public boolean isModified() {

@Override
public void apply() {
if (!getSettings().excludePackageSymlinks && excludePackageSymlinks.isSelected()) {
ComposerUpdateListener.addSymlinks(project);
}

getSettings().pluginEnabled = pluginEnabled.isSelected();
getSettings().excludePackageSymlinks = excludePackageSymlinks.isSelected();
}
Expand Down

0 comments on commit 95f4714

Please sign in to comment.