vscode-maven icon indicating copy to clipboard operation
vscode-maven copied to clipboard

Execute commands shows pom.xml that are in excluded folders

Open dalbitresb12 opened this issue 2 years ago • 0 comments

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):

  • OS: Windows 10 22H2 (OS Build 19045.2846)
  • VS Code version: 1.78.0 (user setup) [Commit: 252e5463d60e63238250799aef7375787f68b4ee]
  • Extension version: v0.41.0

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.

dalbitresb12 avatar May 06 '23 01:05 dalbitresb12