File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ namespace ts.Completions {
59
59
}
60
60
61
61
// Add keywords if this is not a member completion list
62
- if ( ! isMemberCompletion && ! ( requestJsDocTag && requestJsDocTagName ) ) {
62
+ if ( ! isMemberCompletion && ! requestJsDocTag && ! requestJsDocTagName ) {
63
63
addRange ( entries , keywordCompletions ) ;
64
64
}
65
65
@@ -858,7 +858,7 @@ namespace ts.Completions {
858
858
// * |c|
859
859
// */
860
860
const lineStart = getLineStartPositionForPosition ( position , sourceFile ) ;
861
- requestJsDocTag = ! ( sourceFile . text . substr ( lineStart , position ) . match ( / [ ^ \* | \s | ( / \* \* ) ] / ) ) ;
861
+ requestJsDocTag = ! ( sourceFile . text . substring ( lineStart , position ) . match ( / [ ^ \* | \s | ( / \* \* ) ] / ) ) ;
862
862
}
863
863
}
864
864
Original file line number Diff line number Diff line change 35
35
//// /**
36
36
//// * /*11*/
37
37
//// */
38
-
38
+ ////
39
39
//// /**
40
40
//// /*12*/
41
41
//// */
42
-
42
+ ////
43
43
//// /**
44
44
//// * /*13*/
45
45
//// */
46
-
46
+ ////
47
47
//// /**
48
48
//// * some comment /*14*/
49
49
//// */
50
-
50
+ ////
51
51
//// /**
52
52
//// * @param /*15*/
53
53
//// */
54
+ ////
55
+ //// /** @param /*16*/ */
54
56
55
57
goTo . marker ( '1' ) ;
56
58
verify . completionListContains ( "constructor" ) ;
@@ -105,4 +107,7 @@ goTo.marker('14');
105
107
verify . completionListIsEmpty ( ) ;
106
108
107
109
goTo . marker ( '15' ) ;
110
+ verify . completionListIsEmpty ( ) ;
111
+
112
+ goTo . marker ( '16' ) ;
108
113
verify . completionListIsEmpty ( ) ;
You can’t perform that action at this time.
0 commit comments