refactor(lsp): merge subtypes and supertypes into typehierarchy (#28467)

Both methods had pretty much the same documentation and shared the
implementation.
This commit is contained in:
Mathias Fußenegger
2024-04-23 19:05:01 +02:00
committed by GitHub
parent 052498ed42
commit c81b7849a0
4 changed files with 19 additions and 31 deletions

View File

@@ -3463,7 +3463,7 @@ describe('LSP', function()
end)
end)
describe('vim.lsp.buf.subtypes', function()
describe('vim.lsp.buf.typehierarchy subtypes', function()
it('does nothing for an empty response', function()
local qflist_count = exec_lua([=[
require'vim.lsp.handlers'['typeHierarchy/subtypes'](nil, nil, {})
@@ -3681,7 +3681,7 @@ describe('LSP', function()
end)
end)
describe('vim.lsp.buf.supertypes', function()
describe('vim.lsp.buf.typehierarchy supertypes', function()
it('does nothing for an empty response', function()
local qflist_count = exec_lua([=[
require'vim.lsp.handlers'['typeHierarchy/supertypes'](nil, nil, {})