Skip to content

Commit

Permalink
Register PublishDiagnosticsCapabilities (eclipse-lsp4e#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
zulus authored May 22, 2024
1 parent a27b7a9 commit cf4c726
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit cf4c726

Please sign in to comment.