documentSymbol(...) returns an ArrayList<ArraryList<SymbolInformation>>
Closed this issue · 2 comments
mickaelistria commented
LanguageServer.getTextDocumentService().documentSymbol(params)
seems to return an ArrayList<ArrayList<SymbolInformation>>
whereas it's expected to return a List<SymbolInformation>
. It was returning the right list with the last version of ls-api I tried.
svenefftinge commented
For what language server? Have you checked the response message in json?
mickaelistria commented
VSCode JSON, here is the message (I only added line break before each {"nam"
):
{"jsonrpc":"2.0","id":"2",
"result": [
{"name":"$schema","kind":15,"location":{"uri":"file:/home/mistria/runtime-EclipseApplication-with-patch/EclipseConEurope/something.json","range":{"start":{"line":1,"character":3},"end":{"line":1,"character":55}}}},
{"name":"type","kind":15,"location":{"uri":"file:/home/mistria/runtime-EclipseApplication-with-patch/EclipseConEurope/something.json","range":{"start":{"line":2,"character":3},"end":{"line":2,"character":19}}}},
{"name":"title","kind":15,"location":{"uri":"file:/home/mistria/runtime-EclipseApplication-with-patch/EclipseConEurope/something.json","range":{"start":{"line":3,"character":3},"end":{"line":3,"character":50}}}},
{"name":"additionalProperties","kind":17,"location":{"uri":"file:/home/mistria/runtime-EclipseApplication-with-patch/EclipseConEurope/something.json","range":{"start":{"line":4,"character":4},"end":{"line":4,"character":32}}}},
{"name":"properties","kind":15,"location":{"uri":"file:/home/mistria/runtime-EclipseApplication-with-patch/EclipseConEurope/something.json","range":{"start":{"line":5,"character":3},"end":{"line":5,"character":20}}}}
]}