-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
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
Create/Update Quarkus snippets #227
Create/Update Quarkus snippets #227
Comments
@lordofthejars thanks for this issue. I would like to manage snippet on server side (and not on vscode client side) because :
See #119 I have already managed that in an another project (XML maven extension), the idea is that you describe your snippet in json file with the same format than vscode, but you host those files in the server side with a condition (in the Quarkus context, the condition is the extension name). If you have time to write those snippets in a PR (I mean just writing snippets, not the package.json declaration, it should be very cool). Thanks |
@lordofthejars is there any chance that you write vscode snippets and after that we will able to integrate on MicroProfile Language Server ? |
Ok, I'll do it ASAP, no worries. |
Thanks! |
For container images: "Add Container Image properties": {
"prefix": "cip",
"body": [
"quarkus.container-image.group=$1",
"quarkus.container-image.registry=${2:quay.io}",
"quarkus.kubernetes.expose=${3|true,false|}",
"#quarkus.container-image.username=$4",
"#quarkus.container-image.password=$5"
]
} DataSource: "Add Panache properties": {
"prefix": "qpm",
"body": [
"quarkus.datasource.url=${1:jdbc:mariadb://localhost:3306/mydb}",
"quarkus.datasource.db-kind=${2|h2,derby,mariadb,mssql,mysql,postgresql|}",
"quarkus.datasource.username=${3:developer}",
"quarkus.datasource.password=${4:developer}",
"quarkus.hibernate-orm.database.generation=${4:update}"
],
"description": "Configure Quarkus Panache"
}, |
@fbricon See that a new property has been added, this was what I was showing here so driver is not required anymore. |
@lordofthejars could you review https://github.com/redhat-developer/quarkus-ls/pull/310/files please |
So only the datasource snippet was updated, as the container story is not ready yet. See redhat-developer/quarkus-ls#310 (comment) |
Create new snippets for the new container-image extension: https://github.com/quarkusio/quarkus/blob/master/docs/src/main/asciidoc/container-image.adoc
So the configuration to push a container image to a remote registry is automatically set.
Update the snippet for defining a data source to the latest changes using
db-kind
instead of a driver. https://github.com/quarkusio/quarkus/blob/master/docs/src/main/asciidoc/datasource.adoc#jdbc-datasourceThe text was updated successfully, but these errors were encountered: