From cf4c7266c8f7cc7f278318caf9a53da8ab753823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Paku=C5=82a?= Date: Wed, 22 May 2024 08:31:18 +0200 Subject: [PATCH] Register PublishDiagnosticsCapabilities (#1008) --- .../src/org/eclipse/lsp4e/internal/SupportedFeatures.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/internal/SupportedFeatures.java b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/internal/SupportedFeatures.java index 59a4035d5..2bfb80dc1 100644 --- a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/internal/SupportedFeatures.java +++ b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/internal/SupportedFeatures.java @@ -41,6 +41,7 @@ import org.eclipse.lsp4j.InlayHintCapabilities; import org.eclipse.lsp4j.InsertTextMode; import org.eclipse.lsp4j.MarkupKind; +import org.eclipse.lsp4j.PublishDiagnosticsCapabilities; import org.eclipse.lsp4j.RangeFormattingCapabilities; import org.eclipse.lsp4j.ReferencesCapabilities; import org.eclipse.lsp4j.RenameCapabilities; @@ -76,6 +77,7 @@ public class SupportedFeatures { textDocumentClientCapabilities.setCodeLens(new CodeLensCapabilities()); textDocumentClientCapabilities.setInlayHint(new InlayHintCapabilities()); textDocumentClientCapabilities.setColorProvider(new ColorProviderCapabilities()); + textDocumentClientCapabilities.setPublishDiagnostics(new PublishDiagnosticsCapabilities()); final var completionItemCapabilities = new CompletionItemCapabilities(Boolean.TRUE); completionItemCapabilities .setDocumentationFormat(Arrays.asList(MarkupKind.MARKDOWN, MarkupKind.PLAINTEXT));