Skip to content

Hover handler test failing #1082

Closed
Closed
@rjmholt

Description

@rjmholt

The hover handler E2E test is failing in the build because the result depends on help being installed:

[Fact]
public async Task CanSendHoverRequest()
{
string filePath = NewTestFile("Write-Host");
Hover hover = await LanguageClient.TextDocument.Hover(filePath, line: 0, column: 1);
Assert.True(hover.Contents.HasMarkedStrings);
Assert.Collection(hover.Contents.MarkedStrings,
str1 =>
{
Assert.Equal("function Write-Host", str1.Value);
},
str2 =>
{
Assert.Equal("markdown", str2.Language);
Assert.Equal("Writes customized output to a host.", str2.Value);
});
}

When no help is installed, hover gives back the signature rather than a function description.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions