Skip to content

Commit

Permalink
feat: use server bundle
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Dec 14, 2023
1 parent 867c05f commit 7e5e0f8
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 25 deletions.
18 changes: 6 additions & 12 deletions src/main/resources/META-INF/lsp4ij-quarkus.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
<idea-plugin>
<extensions defaultExtensionNs="com.redhat.devtools.lsp4ij">

<!-- Quarkus LSP -->
<server id="microprofile"
label="Tools for MicroProfile"
bundle="messages.MicroProfileBundle"
labelKey="microprofile.server.label"
descriptionKey="microprofile.server.description"
icon="com.redhat.devtools.intellij.microprofile.lang.MicroProfileIcons.MicroProfile"
factoryClass="com.redhat.devtools.intellij.quarkus.lsp.QuarkusLanguageServerFactory">
<description><![CDATA[
The <a href="https://github.com/eclipse/lsp4mp">MicroProfile language server</a> provides <a href="https://microprofile.io/">MicroProfile</a> support in:
<ul>
<li><b>Java</b> files.</li>
<li>and <b>microprofile-config.properties</b> files.</li>
</ul>
This language server is extended with <a href="https://github.com/redhat-developer/quarkus-ls" >Quarkus extension</a> to provide <a href="https://quarkus.io/">Quarkus</a> support in <b>application.properties</b> file.
]]>
</description>
</server>
factoryClass="com.redhat.devtools.intellij.quarkus.lsp.QuarkusLanguageServerFactory" />

<languageMapping language="Properties"
serverId="microprofile"
documentMatcher="com.redhat.devtools.intellij.quarkus.lsp.QuarkusDocumentMatcherForPropertiesFile" />
Expand Down
16 changes: 5 additions & 11 deletions src/main/resources/META-INF/lsp4ij-qute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
<extensions defaultExtensionNs="com.redhat.devtools.lsp4ij">
<!-- Qute LSP -->
<server id="qute"
label="Qute support"
bundle="messages.QuteBundle"
labelKey="qute.server.label"
descriptionKey="qute.server.description"
icon="com.redhat.devtools.intellij.quarkus.lang.QuarkusIcons.Quarkus"
factoryClass="com.redhat.devtools.intellij.qute.lsp.QuteLanguageServerFactory" >
<description><![CDATA[
The <a href="https://github.com/redhat-developer/quarkus-ls">Qute language server</a> provides <a href="https://quarkus.io/guides/qute-reference">Qute</a> support in:
<ul>
<li><b>Java</b> files.</li>
<li>and <b>*.html,*.txt,*.yml,*.json</b> Qute template files.</li>
</ul>
]]>
</description>
</server>
factoryClass="com.redhat.devtools.intellij.qute.lsp.QuteLanguageServerFactory" />

<languageMapping language="Qute_"
serverId="qute"
documentMatcher="com.redhat.devtools.intellij.qute.lsp.QuteDocumentMatcherForTemplateFile"/>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="222"/>
<idea-version since-build="223"/>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
Expand Down
10 changes: 9 additions & 1 deletion src/main/resources/messages/MicroProfileBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
# Red Hat Inc. - initial API and implementation
###############################################################################

# MicroProfile LS server
microprofile.server.label=Tools for MicroProfile
microprofile.server.description=The <a href="https://github.com/eclipse/lsp4mp">MicroProfile language server</a> provides <a href="https://microprofile.io/">MicroProfile</a> support in:\
<ul>\
<li><b>Java</b> files.</li>\
<li>and <b>microprofile-config.properties</b> files.</li>\
</ul>\
This language server is extended with <a href="https://github.com/redhat-developer/quarkus-ls" >Quarkus extension</a> to provide <a href="https://quarkus.io/">Quarkus</a> support in <b>application.properties</b> file.\

## MicroProfile UI settings page
microprofile=MicroProfile
microprofile.title=MicroProfile
microprofile.description=Configure MicroProfile support in Java and 'microprofile-config.properties' files.
microprofile.properties.inspection.group.name=Properties
microprofile.java.inspection.group.name=Java files
Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/messages/QuteBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
# Red Hat Inc. - initial API and implementation
###############################################################################

# Qute LS server
qute.server.label=Qute support
qute.server.description=The <a href="https://github.com/redhat-developer/quarkus-ls">Qute language server</a> provides <a href="https://quarkus.io/guides/qute-reference">Qute</a> support in:\
<ul>\
<li><b>Java</b> files.</li>\
<li>and <b>*.html,*.txt,*.yml,*.json</b> Qute template files.</li>\
</ul>\

## Qute colors settings page
options.qute.display.name=Qute
options.qute.attribute.descriptor.comment=Comment
Expand Down

0 comments on commit 7e5e0f8

Please sign in to comment.