Skip to content

Activation trigger should be more selective #497

@rgrunber

Description

@rgrunber

The Quarkus extension and language server are triggered for onLanguage:java. This seems excessive. I can have an invisible project with just folders and Java source files (no Maven, no Gradle), and it still starts.

quarkus-starts-on-java-project

At the very least we could bring it down to just :

"workspaceContains:pom.xml",
"workspaceContains:build.gradle",
"workspaceContains:settings.gradle"

As for a better approach, maybe vscode-java could define some command that reads the build files for presence of Quarkus metadata (eg. quarkus-bom, quarkus-maven-plugin, io.quarkus.extension, etc), and emit some command for which vscode-quarkus simply listens with https://code.visualstudio.com/api/references/activation-events#onCommand

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions