use of org.eclipse.lsp4j.SemanticTokensLegend in project OberonEmulator by schierlm.
the class Server method fillCapabilities.
protected void fillCapabilities(ServerCapabilities cap, InitializeParams params) {
cap.setTextDocumentSync(TextDocumentSyncKind.Full);
cap.setSemanticTokensProvider(new SemanticTokensWithRegistrationOptions(new SemanticTokensLegend(Bridge.TOKEN_TYPES, Bridge.TOKEN_MODIFIERS), new SemanticTokensServerFull(false), false));
cap.setDocumentSymbolProvider(new DocumentSymbolOptions("Oberon"));
cap.setCompletionProvider(new CompletionOptions(false, null));
cap.setDefinitionProvider(true);
cap.setDocumentHighlightProvider(true);
cap.setReferencesProvider(true);
cap.setLinkedEditingRangeProvider(true);
cap.setSignatureHelpProvider(new SignatureHelpOptions(Arrays.asList("("), Arrays.asList(",", ")")));
cap.setFoldingRangeProvider(true);
cap.setHoverProvider(true);
cap.setRenameProvider(new RenameOptions(true));
cap.setDocumentFormattingProvider(true);
cap.setCallHierarchyProvider(true);
CodeActionOptions cao = new CodeActionOptions(Arrays.asList(CodeActionKind.QuickFix));
cao.setResolveProvider(true);
cap.setCodeActionProvider(cao);
}
Aggregations