ruby-lsp icon indicating copy to clipboard operation
ruby-lsp copied to clipboard

Implement `typeHierarchy/subtypes` requests support

Open Morriar opened this issue 1 year ago • 1 comments

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.

Morriar avatar Jun 07 '24 14:06 Morriar

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

github-actions[bot] avatar Aug 07 '24 12:08 github-actions[bot]