Comments (2)
textDocument/documentSymbols
supports both a list of SymbolInformation
& DocumentSymbol
. DocumentSymbol
is the one that includes a range
& selectionRange
.
It looks like JDT-LS is only returning what appears to be SymbolInformation
for you. Is your client setting hierarchicalDocumentSymbolSupport
? If you aren't then JDT-LS will continue to return non-hierarchical symbols, which lack the API to specify both ranges :
Part of the issue is we didn't migrate our non-hierarchical textDocument/documentSymbols
implementation to also use DocumentSymbol
(it still uses SymbolInformation
).
from eclipse.jdt.ls.
Hi Roland, thanks so much for your prompt reply, I really appreciate it. After specifying hierarchicalDocumentSymbolSupport
to be true
, I got what I wanted.
Specifically, in the initialize
message, I specified:
"documentSymbol": {
"dynamicRegistration": false,
"symbolKind": {
"valueSet": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]
},
"hierarchicalDocumentSymbolSupport": true,
"tagSupport": {
"valueSet": [1]
},
"labelSupport": true
},
Since the issue has been resolved, please feel free to close this issue. Thanks again.
from eclipse.jdt.ls.
Related Issues (20)
- Change signature is only available over method with an annotation / documentation / comment
- Custom file extensions
- Error: A JNI error has occurred, please check your installation and try again HOT 2
- Compilation errors
- Issues with 2024-06 and gson library used by lsp4j v0.22 HOT 8
- SignatureHelp activeSignature/activeParameter not set for DOM nodes with HOT 1
- `InitializationOptions.settings` is incorrectly documented as an array
- [Lombok] ASTParsing error with latest eclipse jdt version when javadoc is present
- Referenced classpath provider does not exist (Buildship)
- [feature] [call-hierarchy] Group by source file HOT 1
- New setting to control search scope
- Feature: Go to implementation for functional consumer interfaces
- PermissionError: [Errno 13] Permission denied with --java-executable argument HOT 1
- CompletionHandlerTest.testCompletion_Lambda fails randomly HOT 2
- Support Vineflower Decompiler HOT 2
- Why @Deprecated Class Why isn't there a code hint HOT 2
- After a class is repeated multiple times, dd re-enters, and then dd deletes, and there will be no prompt HOT 1
- NPE after applying 'Add final modifier for ...'
- Provide support for Java 23
- Find references only working in the current document. Not working. Across the project.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eclipse.jdt.ls.