We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Today properties snippets uses context/dependency to show the snippet according to the dependency classpath:
context/dependency
"Add datasource properties": { "prefix": "qds", "body": [ "quarkus.datasource.url=${1|jdbc:mariadb://localhost:3306/mydb,jdbc:mysql://localhost:3306/test,jdbc:h2:mem:mydb,jdbc:postgresql://localhost/mydb,jdbc:sqlserver://localhost:1433;databaseName=mydb|}", "quarkus.datasource.driver=${2|org.mariadb.jdbc.Driver,org.mysql.jdbc.Driver,org.h2.Driver,org.postgresql.Driver,com.microsoft.sqlserver.jdbc.SQLServerDriver|}", "quarkus.datasource.username=${3:developer}", "quarkus.datasource.password=${4:developer}", "quarkus.hibernate-orm.database.generation=${5|update,drop-and-create,create,drop,none|}" ], "description": "Configure Quarkus datasource", "context": { "dependency": "quarkus-agroal" } }
There are some limitation, because those properties could be linked to the dependency version.
To fix this limitation, a simple fix is to filter according to the properties to insert
... "context": { "properties": ["quarkus.datasource.url", "quarkus.hibernate-orm.database.generation"] } }
The text was updated successfully, but these errors were encountered:
Filter properties snippet with properties instead of dependency
11ed073
Fixes redhat-developer#312 Signed-off-by: azerr <azerr@redhat.com>
31a92fc
5bac316
3bb03e2
d63fb24
580c8af
f1b7f51
Fixes #312 Signed-off-by: azerr <azerr@redhat.com>
angelozerr
Successfully merging a pull request may close this issue.
Today properties snippets uses
context/dependency
to show the snippet according to the dependency classpath:There are some limitation, because those properties could be linked to the dependency version.
To fix this limitation, a simple fix is to filter according to the properties to insert
The text was updated successfully, but these errors were encountered: