Skip to content

Commit

Permalink
Update language server to support microprofile-config.properties
Browse files Browse the repository at this point in the history
See #181

Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr committed Jan 14, 2020
1 parent 466b89e commit f02597c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"onCommand:quarkusTools.debugQuarkusProject",
"onCommand:quarkusTools.welcome",
"workspaceContains:**/src/main/resources/application.properties",
"workspaceContains:**src/main/resources/META-INF/microprofile-config.properties",
"onLanguage:microprofile-properties",
"onLanguage:quarkus-properties",
"onLanguage:java",
"onLanguage:qute-html"
Expand All @@ -51,6 +53,16 @@
"./jars/com.redhat.microprofile.jdt.quarkus.jar"
],
"languages": [
{
"id": "microprofile-properties",
"aliases": [
"MicroProfile properties"
],
"filenames": [
"microprofile-config.properties"
],
"configuration": "./language-support/properties-support/language-configuration.json"
},
{
"id": "quarkus-properties",
"aliases": [
Expand Down Expand Up @@ -95,6 +107,10 @@
"language": "java",
"path": "./snippets/quarkus.json"
},
{
"language": "microprofile-properties",
"path": "./snippets/properties.json"
},
{
"language": "quarkus-properties",
"path": "./snippets/properties.json"
Expand Down Expand Up @@ -223,6 +239,11 @@
}
},
"grammars": [
{
"language": "microprofile-properties",
"scopeName": "source.java-properties",
"path": "./language-support/properties-support/java-properties.tmLanguage"
},
{
"language": "quarkus-properties",
"scopeName": "source.java-properties",
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ function connectToLS(context: ExtensionContext) {
return requirements.resolveRequirements().then(requirements => {
const clientOptions: LanguageClientOptions = {
documentSelector: [
{ scheme: 'file', language: 'microprofile-properties' },
{ scheme: 'file', language: 'quarkus-properties' },
{ scheme: 'file', language: 'java' }
],
Expand Down

0 comments on commit f02597c

Please sign in to comment.