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.

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
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.At the very least we could bring it down to just :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