Skip to content
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

feat: use server bundle #1291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,21 +1,15 @@
<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
15 changes: 4 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,11 @@
<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"
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
Loading