org.eclipse.lsp4j.SymbolCapabilities Java Examples
The following examples show how to use
org.eclipse.lsp4j.SymbolCapabilities.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LanguageServerWrapper.java From lsp4intellij with Apache License 2.0 | 5 votes |
private InitializeParams getInitParams() { InitializeParams initParams = new InitializeParams(); initParams.setRootUri(FileUtils.pathToUri(projectRootPath)); //TODO update capabilities when implemented WorkspaceClientCapabilities workspaceClientCapabilities = new WorkspaceClientCapabilities(); workspaceClientCapabilities.setApplyEdit(true); workspaceClientCapabilities.setDidChangeWatchedFiles(new DidChangeWatchedFilesCapabilities()); workspaceClientCapabilities.setExecuteCommand(new ExecuteCommandCapabilities()); workspaceClientCapabilities.setWorkspaceEdit(new WorkspaceEditCapabilities()); workspaceClientCapabilities.setSymbol(new SymbolCapabilities()); workspaceClientCapabilities.setWorkspaceFolders(false); workspaceClientCapabilities.setConfiguration(false); TextDocumentClientCapabilities textDocumentClientCapabilities = new TextDocumentClientCapabilities(); textDocumentClientCapabilities.setCodeAction(new CodeActionCapabilities()); textDocumentClientCapabilities.setCompletion(new CompletionCapabilities(new CompletionItemCapabilities(true))); textDocumentClientCapabilities.setDefinition(new DefinitionCapabilities()); textDocumentClientCapabilities.setDocumentHighlight(new DocumentHighlightCapabilities()); textDocumentClientCapabilities.setFormatting(new FormattingCapabilities()); textDocumentClientCapabilities.setHover(new HoverCapabilities()); textDocumentClientCapabilities.setOnTypeFormatting(new OnTypeFormattingCapabilities()); textDocumentClientCapabilities.setRangeFormatting(new RangeFormattingCapabilities()); textDocumentClientCapabilities.setReferences(new ReferencesCapabilities()); textDocumentClientCapabilities.setRename(new RenameCapabilities()); textDocumentClientCapabilities.setSemanticHighlightingCapabilities(new SemanticHighlightingCapabilities(false)); textDocumentClientCapabilities.setSignatureHelp(new SignatureHelpCapabilities()); textDocumentClientCapabilities.setSynchronization(new SynchronizationCapabilities(true, true, true)); initParams.setCapabilities( new ClientCapabilities(workspaceClientCapabilities, textDocumentClientCapabilities, null)); initParams.setInitializationOptions( serverDefinition.getInitializationOptions(URI.create(initParams.getRootUri()))); return initParams; }
Example #2
Source File: WorkspaceClientCapabilities.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * Capabilities specific to the `workspace/symbol` request. */ @Pure public SymbolCapabilities getSymbol() { return this.symbol; }
Example #3
Source File: WorkspaceClientCapabilities.java From lsp4j with Eclipse Public License 2.0 | 4 votes |
/** * Capabilities specific to the `workspace/symbol` request. */ public void setSymbol(final SymbolCapabilities symbol) { this.symbol = symbol; }