Skip to content

Commit dfdffe3

Browse files
committed
Add test case
1 parent 9df2f88 commit dfdffe3

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

tests/baselines/reference/quickInfoForJSDocCodefence.baseline

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,60 @@
5353
}
5454
]
5555
}
56+
},
57+
{
58+
"marker": {
59+
"fileName": "/tests/cases/fourslash/quickInfoForJSDocCodefence.ts",
60+
"position": 129
61+
},
62+
"quickInfo": {
63+
"kind": "function",
64+
"kindModifiers": "",
65+
"textSpan": {
66+
"start": 127,
67+
"length": 3
68+
},
69+
"displayParts": [
70+
{
71+
"text": "function",
72+
"kind": "keyword"
73+
},
74+
{
75+
"text": " ",
76+
"kind": "space"
77+
},
78+
{
79+
"text": "boo",
80+
"kind": "functionName"
81+
},
82+
{
83+
"text": "(",
84+
"kind": "punctuation"
85+
},
86+
{
87+
"text": ")",
88+
"kind": "punctuation"
89+
},
90+
{
91+
"text": ":",
92+
"kind": "punctuation"
93+
},
94+
{
95+
"text": " ",
96+
"kind": "space"
97+
},
98+
{
99+
"text": "string",
100+
"kind": "keyword"
101+
}
102+
],
103+
"documentation": [],
104+
"tags": [
105+
{
106+
"name": "example",
107+
"text": "``\n1 + 2\n`"
108+
}
109+
]
110+
}
56111
}
57112
]

tests/cases/fourslash/quickInfoForJSDocCodefence.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,13 @@
99
////function fo/*1*/o() {
1010
//// return '2';
1111
////}
12+
/////**
13+
//// * @example
14+
//// * ``
15+
//// * 1 + 2
16+
//// * `
17+
//// */
18+
////function bo/*2*/o() {
19+
//// return '2';
20+
////}
1221
verify.baselineQuickInfo();

0 commit comments

Comments
 (0)