lsp tests: fix function overload hover splitting logic to conform with the new overload grouping
This commit is contained in:
parent
6faff5eeb1
commit
a9cda2b725
1 changed files with 2 additions and 5 deletions
|
@ -149,11 +149,8 @@ async def test_hover(
|
|||
def expect_function(expected: str|set[str], result: lspt.Hover):
|
||||
def strip_md(mdtext: lspt.MarkupContent) -> list[str]:
|
||||
|
||||
text = mdtext.value
|
||||
entries = text.split(sep="---")
|
||||
|
||||
for i, entry in enumerate(entries):
|
||||
entries[i] = strip_until_naked(entry)
|
||||
text = strip_until_naked(mdtext.value)
|
||||
entries = text.split(sep="\n")
|
||||
|
||||
return entries
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue