Skip to content

Commit

Permalink
refactor: use new LSP4IJ API
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Mar 19, 2024
1 parent 58be88b commit f0f0cc2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.intellij.openapi.project.Project;
import com.intellij.profile.codeInspection.InspectionProfileManager;
import com.redhat.devtools.lsp4ij.inspections.AbstractDelegateInspectionWithExclusions;
import com.redhat.devtools.lsp4ij.operations.diagnostics.SeverityMapping;
import com.redhat.devtools.lsp4ij.features.diagnostics.SeverityMapping;
import com.redhat.devtools.intellij.lsp4mp4ij.psi.core.inspections.*;
import org.eclipse.lsp4j.DiagnosticSeverity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.intellij.openapi.project.Project;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.xmlb.annotations.Tag;
import com.redhat.devtools.lsp4ij.operations.diagnostics.SeverityMapping;
import com.redhat.devtools.lsp4ij.features.diagnostics.SeverityMapping;
import org.eclipse.lsp4j.DiagnosticSeverity;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import com.redhat.devtools.lsp4ij.commands.LSPCommand;
import com.redhat.devtools.lsp4ij.commands.LSPCommandAction;
import com.redhat.devtools.lsp4ij.inspections.AbstractDelegateInspectionWithExclusions;
import com.redhat.devtools.lsp4ij.operations.diagnostics.SeverityMapping;
import com.redhat.devtools.lsp4ij.features.diagnostics.SeverityMapping;
import org.eclipse.lsp4j.Command;
import org.eclipse.lsp4j.DiagnosticSeverity;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import com.intellij.codeInspection.ex.InspectionToolWrapper;
import com.intellij.openapi.project.Project;
import com.intellij.profile.codeInspection.InspectionProfileManager;
import com.redhat.devtools.lsp4ij.operations.diagnostics.SeverityMapping;
import com.redhat.devtools.lsp4ij.features.diagnostics.SeverityMapping;
import com.redhat.devtools.lsp4ij.inspections.AbstractDelegateInspectionWithExclusions;
import com.redhat.devtools.intellij.qute.psi.core.inspections.QuteGlobalInspection;
import com.redhat.devtools.intellij.qute.psi.core.inspections.QuteUndefinedNamespaceInspection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import com.intellij.openapi.project.Project;
import com.intellij.util.containers.ContainerUtil;
import com.intellij.util.xmlb.annotations.Tag;
import com.redhat.devtools.lsp4ij.operations.diagnostics.SeverityMapping;
import com.redhat.devtools.lsp4ij.features.diagnostics.SeverityMapping;
import org.eclipse.lsp4j.DiagnosticSeverity;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/META-INF/lsp4ij-quarkus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!-- Quarkus LSP -->
<server id="microprofile"
label="Tools for MicroProfile"
name="Tools for MicroProfile"
icon="com.redhat.devtools.intellij.microprofile.lang.MicroProfileIcons.MicroProfile"
factoryClass="com.redhat.devtools.intellij.quarkus.lsp.QuarkusLanguageServerFactory">
<description><![CDATA[
Expand Down Expand Up @@ -69,13 +69,13 @@
we define the LSPDocumentationProvider at the first order -->
<lang.documentationProvider
language="Properties"
implementationClass="com.redhat.devtools.lsp4ij.operations.documentation.LSPDocumentationProvider"
implementationClass="com.redhat.devtools.lsp4ij.features.documentation.LSPDocumentationProvider"
order="first"/>
<!-- As IJ provides the com.intellij.lang.java.JavaDocumentationProvider which manages hover for Java file,
we define the LSPDocumentationProvider at the first order -->
<lang.documentationProvider
language="JAVA"
implementationClass="com.redhat.devtools.lsp4ij.operations.documentation.LSPDocumentationProvider"
implementationClass="com.redhat.devtools.lsp4ij.features.documentation.LSPDocumentationProvider"
order="first"/>

<localInspection
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/META-INF/lsp4ij-qute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<extensions defaultExtensionNs="com.redhat.devtools.lsp4ij">
<!-- Qute LSP -->
<server id="qute"
label="Qute support"
name="Qute support"
icon="com.redhat.devtools.intellij.quarkus.lang.QuarkusIcons.Quarkus"
factoryClass="com.redhat.devtools.intellij.qute.lsp.QuteLanguageServerFactory">
<description><![CDATA[
Expand Down Expand Up @@ -40,17 +40,17 @@
we define the LSPDocumentationProvider at the first order -->
<lang.documentationProvider
language="yaml"
implementationClass="com.redhat.devtools.lsp4ij.operations.documentation.LSPDocumentationProvider"
implementationClass="com.redhat.devtools.lsp4ij.features.documentation.LSPDocumentationProvider"
order="first"/>
<!-- As IJ provides the com.jetbrains.jsonSchema.imp.JsonSchemaDocumentationProvider which manages hover for json file,
we define the LSPDocumentationProvider at the first order -->
<lang.documentationProvider
language="JSON"
implementationClass="com.redhat.devtools.lsp4ij.operations.documentation.LSPDocumentationProvider"
implementationClass="com.redhat.devtools.lsp4ij.features.documentation.LSPDocumentationProvider"
order="first"/>

<completion.confidence language="HTML" order="before htmlText"
implementationClass="com.redhat.devtools.lsp4ij.operations.completion.LSPCompletionConfidence"/>
implementationClass="com.redhat.devtools.lsp4ij.features.completion.LSPCompletionConfidence"/>

<implicitUsageProvider
implementation="com.redhat.devtools.intellij.qute.psi.internal.extensions.renarde.RenardeImplicitUsageProvider"/>
Expand Down

0 comments on commit f0f0cc2

Please sign in to comment.