Shopify / ruby-lsp

An opinionated language server for Ruby
https://shopify.github.io/ruby-lsp/
MIT License
1.57k stars 153 forks source link

Implement `typeHierarchy/subtypes` requests support #2144

Open Morriar opened 4 months ago

Morriar commented 4 months ago

Description

Follow up to https://github.com/Shopify/ruby-lsp/issues/1046 and https://github.com/Shopify/ruby-lsp/pull/2103.

We currently handle textDocument/prepareTypeHierarchy request and typeHierarchy/supertypes requests but the structure of the index doesn't allow for easy descendants lookup.

A partial solution would be to iterate over the whole linearization hash, though since the linearization is lazy, we will be missing entries. It would be better to think about a new data structure to support this feature.

LSP specification: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#typeHierarchy_subtypes.

github-actions[bot] commented 2 months ago

This issue is being marked as stale because there was no activity in the last 2 months