implements PLN-0099

This commit is contained in:
2026-07-15 07:12:03 +01:00
parent f32a25eb59
commit e7647165bc
3 changed files with 9 additions and 3 deletions
@@ -228,6 +228,9 @@ class CompilerLanguageServiceBridgeTest {
final String overlay = """
[Doc(markdown = \"""
Computes the answer.
- returns `42`
- has no parameters
\""")]
fn helper() -> int { return 42; }
@@ -247,6 +250,8 @@ class CompilerLanguageServiceBridgeTest {
helperPosition.line(),
helperPosition.character());
assertTrue(hover.markdown().contains("Computes the answer."));
assertTrue(hover.markdown().contains("- returns `42`"));
assertTrue(hover.markdown().indexOf("**function**") < hover.markdown().indexOf("Computes the answer."));
final var completion = bridge.completion(
context,
@@ -258,7 +263,8 @@ class CompilerLanguageServiceBridgeTest {
.filter(item -> item.label().equals("helper"))
.findFirst()
.orElseThrow();
assertEquals("Computes the answer.", helper.documentation());
assertTrue(helper.documentation().contains("Computes the answer."));
assertTrue(helper.documentation().contains("- returns `42`"));
}
@Test