summaryrefslogtreecommitdiff
path: root/cli/tests/integration/lsp_tests.rs
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-11-07 23:26:11 +0100
committerGitHub <noreply@github.com>2021-11-07 23:26:11 +0100
commitb6b25671b29133a8a2f1325094dbd871655f8560 (patch)
tree10f2bb7f3a46c5d7b5015fdf9ab976a961f2f422 /cli/tests/integration/lsp_tests.rs
parent0f8299d011420408b9a432a2c01af387af9d5fb2 (diff)
fix(lsp): display signature docs as markdown (#12636)
These were previously displayed as plain text. Now they are displayed as `MarkupContent` with type `Markdown`.
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r--cli/tests/integration/lsp_tests.rs30
1 files changed, 24 insertions, 6 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs
index ecfe5d334..6fbeec344 100644
--- a/cli/tests/integration/lsp_tests.rs
+++ b/cli/tests/integration/lsp_tests.rs
@@ -1931,15 +1931,24 @@ fn lsp_signature_help() {
"signatures": [
{
"label": "add(a: number, b: number): number",
- "documentation": "Adds two numbers.",
+ "documentation": {
+ "kind": "markdown",
+ "value": "Adds two numbers."
+ },
"parameters": [
{
"label": "a: number",
- "documentation": "This is a first number."
+ "documentation": {
+ "kind": "markdown",
+ "value": "This is a first number."
+ }
},
{
"label": "b: number",
- "documentation": "This is a second number."
+ "documentation": {
+ "kind": "markdown",
+ "value": "This is a second number."
+ }
}
]
}
@@ -1995,15 +2004,24 @@ fn lsp_signature_help() {
"signatures": [
{
"label": "add(a: number, b: number): number",
- "documentation": "Adds two numbers.",
+ "documentation": {
+ "kind": "markdown",
+ "value": "Adds two numbers."
+ },
"parameters": [
{
"label": "a: number",
- "documentation": "This is a first number."
+ "documentation": {
+ "kind": "markdown",
+ "value": "This is a first number."
+ }
},
{
"label": "b: number",
- "documentation": "This is a second number."
+ "documentation": {
+ "kind": "markdown",
+ "value": "This is a second number."
+ }
}
]
}