Skip to content

Wrong multiple choices of SpringBootApplication #1587

Description

@Maze-fr

Describe the bug

In the "Spring Apps" explorer, when I click on the "run arrow", it asks me to choose between multiple @SpringBootApplication classes : the one from the main folder and the one from the test folder for special tests purpose.

Environments

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

To Reproduce

  1. Create an empty Spring Boot project.
  2. Copy / paste the @SpringBootApplication class into the test folder with a different name.
  3. Got to run the project from the "Spring Apps" explorer.
  4. A popup menu appears on top to chose between the 2 @SpringBootApplication classes.

Expected behavior

When I run the project from the "Spring Apps" explorer, it should ignore the @SpringBootApplication class from the test folder, because it is irrelevant to use it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions