microsoft / vscode-maven

VSCode extension "Maven for Java"
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-maven
Other
183 stars 89 forks source link

Execute commands shows pom.xml that are in excluded folders #969

Open dalbitresb12 opened 1 year ago

dalbitresb12 commented 1 year ago

Describe the bug

When running the "Maven: Execute Commands" action from the command palette, it shows projects that are listed in the excluded folders option (maven.excludedFolders).

To Reproduce Steps to reproduce the behavior:

  1. Use the default maven.excludedFolders option or set it exclude **/archetype-resources and **/target explicitly.
  2. Open the command palette
  3. Select "Maven: Execute Commands"
  4. See projects listed that should not be there

Expected behavior

Projects that are excluded should not be shown when using this command.

Environments (please complete the following information as much as possible):

Screenshots

image

image

It is correctly filtered from the project panel in the explorer:

image

Additional context

I don't know if I'm wrong and this is working as intended, but I expect those projects to be also filtered from the "Maven: Execute Commands" action. If this is working as intended, maybe an option to disable those projects from being shown would be great.