File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -875,10 +875,10 @@ namespace ts.Completions {
875
875
if ( match && reJSDocFragment . lastIndex === jsdocFragment . length ) {
876
876
return {
877
877
kind : match [ 1 ]
878
- // The current position is next to the '@' sign, when no tag name being provided yet.
879
- // Provide a full list of tag names
880
- ? CompletionDataKind . JsDocTagName :
881
- CompletionDataKind . JsDocTag
878
+ // The current position is next to the '@' sign, when no tag name being provided yet.
879
+ // Provide a full list of tag names
880
+ ? CompletionDataKind . JsDocTagName
881
+ : CompletionDataKind . JsDocTag
882
882
} ;
883
883
}
884
884
}
@@ -888,6 +888,9 @@ namespace ts.Completions {
888
888
// Completion should work in the brackets
889
889
const tag = getJsDocTagAtPosition ( currentToken , position ) ;
890
890
if ( tag ) {
891
+ if ( tag . tagName . pos <= position && position <= tag . tagName . end ) {
892
+ return { kind : CompletionDataKind . JsDocTagName } ;
893
+ }
891
894
if ( isTagWithTypeExpression ( tag ) && tag . typeExpression && tag . typeExpression . kind === SyntaxKind . JSDocTypeExpression ) {
892
895
currentToken = getTokenAtPosition ( sourceFile , position ) ;
893
896
if ( ! currentToken ||
You can’t perform that action at this time.
0 commit comments