lsp4intellij icon indicating copy to clipboard operation
lsp4intellij copied to clipboard

Support of `textDocument/documentSymbol`?

Open nixel2007 opened this issue 6 years ago • 6 comments

Any plans or ideas for $subject?

nixel2007 avatar Aug 29 '19 15:08 nixel2007

@nixel2007 Maybe we can expose this using IntelliJ structure view API (https://www.jetbrains.org/intellij/sdk/docs/reference_guide/custom_language_support/structure_view.html)

Hopefully I'll be able to work on this in the next few weeks after adding completion snippet support. :) Do you have any blocker for due to the missing $subject?

NipunaRanasinghe avatar Sep 04 '19 03:09 NipunaRanasinghe

It's not a blocker for me. Currently BSL LS supports not many features:

  • diagnostics
  • code actions (quick fixes for diagnosics)
  • file formatting
  • document symbols (no workspaceSymbols support so far)
  • folding
  • code lens

https://1c-syntax.github.io/bsl-language-server/en/

So 50% of BSL LS functionality are supported in lsp4intellij :) I thought that if you already did the workspaceSymbol support it won't be difficult to support documentSymbols, but now I see that it is different intellij APIs and it isn't as easy :)

nixel2007 avatar Sep 04 '19 07:09 nixel2007

I did a prototype for docsymbol/the structureview in the fork of my ongoing thesis. I'll create a PR in the new year.

swissiety avatar Nov 03 '20 23:11 swissiety

Why wait so long? O_o

nixel2007 avatar Nov 03 '20 23:11 nixel2007

lack of time (can't promise to do it earlier) and its not finished yet.

swissiety avatar Nov 03 '20 23:11 swissiety

maybe you could send a draft PR so anyone can help you if they want?

nixel2007 avatar Nov 04 '20 08:11 nixel2007