You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/ls/hover_test.go
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,10 @@ function myFunction() {
47
47
Value: "```tsx\nfunction myFunction(): string\n```\nA function with JSDoc links that previously caused panic\n`console.log` and `Array.from` and `Object.keys`",
48
48
},
49
49
},
50
+
Range: &lsproto.Range{
51
+
Start: lsproto.Position{Line: 6, Character: 1},
52
+
End: lsproto.Position{Line: 8, Character: 10},
53
+
},
50
54
},
51
55
},
52
56
},
@@ -70,6 +74,10 @@ myFunction();`,
70
74
Value: "```tsx\nfunction myFunction(param: string): string\n```\n\n\n*@param* `param` - the greatest of days\n",
71
75
},
72
76
},
77
+
Range: &lsproto.Range{
78
+
Start: lsproto.Position{Line: 3, Character: 8},
79
+
End: lsproto.Position{Line: 3, Character: 19},
80
+
},
73
81
},
74
82
},
75
83
},
@@ -93,6 +101,10 @@ function myFunction(param) {
93
101
Value: "```tsx\nfunction myFunction(param: string): string\n```\n\n\n*@param* `param` - the greatest of days\n",
94
102
},
95
103
},
104
+
Range: &lsproto.Range{
105
+
Start: lsproto.Position{Line: 5, Character: 1},
106
+
End: lsproto.Position{Line: 7, Character: 10},
107
+
},
96
108
},
97
109
},
98
110
},
@@ -116,6 +128,10 @@ myFunction();`,
116
128
Value: "```tsx\n(parameter) param: string\n```\n- the greatest of days\n",
117
129
},
118
130
},
131
+
Range: &lsproto.Range{
132
+
Start: lsproto.Position{Line: 3, Character: 20},
133
+
End: lsproto.Position{Line: 3, Character: 25},
134
+
},
119
135
},
120
136
},
121
137
},
@@ -136,6 +152,28 @@ myFunction();`,
136
152
"marker": nil,
137
153
},
138
154
},
155
+
{
156
+
title: "HoverRangeTest",
157
+
input: `
158
+
// @filename: index.ts
159
+
function /*marker*/testFunction(param: string): string {
0 commit comments