File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -854,7 +854,7 @@ namespace ts.Completions {
854
854
insideJsDocTagTypeExpression = isCurrentlyEditingNode ( tag . typeExpression ) ;
855
855
}
856
856
}
857
- if ( isJSDocParameterTag ( tag ) && ( nodeIsMissing ( tag . name ) || tag . name . pos <= position && position <= tag . name . end ) ) {
857
+ if ( ! insideJsDocTagTypeExpression && isJSDocParameterTag ( tag ) && ( nodeIsMissing ( tag . name ) || tag . name . pos <= position && position <= tag . name . end ) ) {
858
858
return { kind : CompletionDataKind . JsDocParameterName , tag } ;
859
859
}
860
860
}
Original file line number Diff line number Diff line change
1
+ /// <reference path="fourslash.ts" />
2
+ //// /** @param /*name1*/ {/*type*/} /*name2*/ */
3
+ //// function toString(obj) {}
4
+
5
+ verify . completions ( {
6
+ marker : "type" ,
7
+ exact : completion . globalTypes
8
+ } ) ;
9
+
10
+ verify . completions ( {
11
+ marker : "name1" ,
12
+ exact : [ "obj" ]
13
+ } ) ;
14
+
15
+ verify . completions ( {
16
+ marker : "name2" ,
17
+ exact : [ "obj" ]
18
+ } ) ;
You can’t perform that action at this time.
0 commit comments