Skip to content

Commit 7e5e0f8

Browse files
committed
feat: use server bundle
Signed-off-by: azerr <azerr@redhat.com>
1 parent 867c05f commit 7e5e0f8

File tree

5 files changed

+29
-25
lines changed

5 files changed

+29
-25
lines changed

src/main/resources/META-INF/lsp4ij-quarkus.xml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
<idea-plugin>
22
<extensions defaultExtensionNs="com.redhat.devtools.lsp4ij">
3+
34
<!-- Quarkus LSP -->
45
<server id="microprofile"
5-
label="Tools for MicroProfile"
6+
bundle="messages.MicroProfileBundle"
7+
labelKey="microprofile.server.label"
8+
descriptionKey="microprofile.server.description"
69
icon="com.redhat.devtools.intellij.microprofile.lang.MicroProfileIcons.MicroProfile"
7-
factoryClass="com.redhat.devtools.intellij.quarkus.lsp.QuarkusLanguageServerFactory">
8-
<description><![CDATA[
9-
The <a href="https://github.com/eclipse/lsp4mp">MicroProfile language server</a> provides <a href="https://microprofile.io/">MicroProfile</a> support in:
10-
<ul>
11-
<li><b>Java</b> files.</li>
12-
<li>and <b>microprofile-config.properties</b> files.</li>
13-
</ul>
14-
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.
15-
]]>
16-
</description>
17-
</server>
10+
factoryClass="com.redhat.devtools.intellij.quarkus.lsp.QuarkusLanguageServerFactory" />
11+
1812
<languageMapping language="Properties"
1913
serverId="microprofile"
2014
documentMatcher="com.redhat.devtools.intellij.quarkus.lsp.QuarkusDocumentMatcherForPropertiesFile" />

src/main/resources/META-INF/lsp4ij-qute.xml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@
33
<extensions defaultExtensionNs="com.redhat.devtools.lsp4ij">
44
<!-- Qute LSP -->
55
<server id="qute"
6-
label="Qute support"
6+
bundle="messages.QuteBundle"
7+
labelKey="qute.server.label"
8+
descriptionKey="qute.server.description"
79
icon="com.redhat.devtools.intellij.quarkus.lang.QuarkusIcons.Quarkus"
8-
factoryClass="com.redhat.devtools.intellij.qute.lsp.QuteLanguageServerFactory" >
9-
<description><![CDATA[
10-
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:
11-
<ul>
12-
<li><b>Java</b> files.</li>
13-
<li>and <b>*.html,*.txt,*.yml,*.json</b> Qute template files.</li>
14-
</ul>
15-
]]>
16-
</description>
17-
</server>
10+
factoryClass="com.redhat.devtools.intellij.qute.lsp.QuteLanguageServerFactory" />
11+
1812
<languageMapping language="Qute_"
1913
serverId="qute"
2014
documentMatcher="com.redhat.devtools.intellij.qute.lsp.QuteDocumentMatcherForTemplateFile"/>

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
</change-notes>
317317

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

321321
<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
322322
on how to target different products -->

src/main/resources/messages/MicroProfileBundle.properties

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@
1111
# Red Hat Inc. - initial API and implementation
1212
###############################################################################
1313

14+
# MicroProfile LS server
15+
microprofile.server.label=Tools for MicroProfile
16+
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:\
17+
<ul>\
18+
<li><b>Java</b> files.</li>\
19+
<li>and <b>microprofile-config.properties</b> files.</li>\
20+
</ul>\
21+
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.\
22+
1423
## MicroProfile UI settings page
1524
microprofile=MicroProfile
16-
microprofile.title=MicroProfile
1725
microprofile.description=Configure MicroProfile support in Java and 'microprofile-config.properties' files.
1826
microprofile.properties.inspection.group.name=Properties
1927
microprofile.java.inspection.group.name=Java files

src/main/resources/messages/QuteBundle.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
# Red Hat Inc. - initial API and implementation
1212
###############################################################################
1313

14+
# Qute LS server
15+
qute.server.label=Qute support
16+
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:\
17+
<ul>\
18+
<li><b>Java</b> files.</li>\
19+
<li>and <b>*.html,*.txt,*.yml,*.json</b> Qute template files.</li>\
20+
</ul>\
21+
1422
## Qute colors settings page
1523
options.qute.display.name=Qute
1624
options.qute.attribute.descriptor.comment=Comment

0 commit comments

Comments
 (0)