mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Fix JSDoc param type completions when name hasn’t been written yet (#35787)
This commit is contained in:
@@ -854,7 +854,7 @@ namespace ts.Completions {
|
||||
insideJsDocTagTypeExpression = isCurrentlyEditingNode(tag.typeExpression);
|
||||
}
|
||||
}
|
||||
if (isJSDocParameterTag(tag) && (nodeIsMissing(tag.name) || tag.name.pos <= position && position <= tag.name.end)) {
|
||||
if (!insideJsDocTagTypeExpression && isJSDocParameterTag(tag) && (nodeIsMissing(tag.name) || tag.name.pos <= position && position <= tag.name.end)) {
|
||||
return { kind: CompletionDataKind.JsDocParameterName, tag };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user