Skip to content

"Run with Profile..." containing unit test profile, and in duplicates #366

@BoykoAlex

Description

@BoykoAlex

Describe the bug

When I select "Run with Profile..." or "Debug with Profile...", it shows a list of available profiles.
In that list, I have profiles used for unit tests, and in multiple duplicates, which is irrelevant.
Image

Environments

  • OS: Windows 11 Enterprise with WSL2 Debian 12
  • VS Code version: 1.102.1
  • Extension version 1.63.0

To Reproduce

In the Spring projects explorer, right click on a project to launch and "Run with Profile..." or "Debug with Profile...".
In my case, on the picture :

  • "local" is probably interpolated because of the application-local.yml file in the main resources folder, but it is also defined in the spring-boot-maven-plugin configuration.
  • "unittest" is probably interpolated because of the application-unittest.yml file in the test resources folder, but it is also defined with @ActiveProfile for some unit tests.
  • "gitlabci"... I don't know... maybe interpolated because of the .gitlab-ci.yml file ?

Expected behavior

Not having unit test profiles.
Not having duplicates.

Sample

I can't prive a sample as it is a company project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions