File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ namespace ts.Completions {
884
884
/*/
885
885
const lineStart = getLineStartPositionForPosition ( position , sourceFile ) ;
886
886
// jsdoc tag will be listed if there is more than one whitespace after "*"
887
- const match = / ^ (?: \s * \/ \* \* | [ * \s ] + (? = \s ) ) ? \s + ( @ ) ? $ / . exec (
887
+ const match = / ^ (?: \s * \/ \* \* | \s + \* ) ? \s + ( @ ) ? $ / . exec (
888
888
sourceFile . text . substring ( lineStart , position )
889
889
) ;
890
890
if ( match ) {
Original file line number Diff line number Diff line change 5
5
//// * /**/
6
6
//// */
7
7
8
- // cannot run fourslash test these cases because it doesn't recognize the marker
9
- //** /*invalidMarker1*/*/
10
- //
11
- //** /*invalidMarker2*/*/
12
- //
13
8
14
9
// 1x - jsdoc tags are listed when there is more than one whitespace after "*"
15
10
/////**
@@ -162,12 +157,11 @@ test.markerNames().forEach(marker => {
162
157
// case 70:
163
158
completionOpt = { marker, includes : [
164
159
"@abstract" , "@access" ,
165
- // "@link"
166
160
] } ;
167
161
break ;
168
162
169
163
// 3x - jsdoc tag names will be listed
170
- case 30 : case 31 : case 32 : case 33 : case 34 : case 35 :
164
+ case 30 : case 31 : case 32 : case 33 : case 34 : case 35 : case 36 :
171
165
172
166
// 4x - jsdoc tag name completions should not occur
173
167
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -180,7 +174,7 @@ test.markerNames().forEach(marker => {
180
174
completionOpt = {
181
175
marker,
182
176
triggerCharacter : "@" ,
183
- includes : [ "abstract " , "access " ]
177
+ includes : [ "package " , "param " ]
184
178
} ;
185
179
break ;
186
180
You can’t perform that action at this time.
0 commit comments