mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 01:33:15 -05:00
Don't return tags when returning quick info for JSDoc nodes (#59816)
This commit is contained in:
committed by
GitHub
parent
c35b14335a
commit
58665cf3ae
@@ -50,6 +50,7 @@ import {
|
||||
isFunctionLike,
|
||||
isIdentifier,
|
||||
isInExpressionContext,
|
||||
isInJSDoc,
|
||||
isJsxOpeningLikeElement,
|
||||
isLet,
|
||||
isModuleWithStringLiteralName,
|
||||
@@ -797,7 +798,7 @@ function getSymbolDisplayPartsDocumentationAndSymbolKindWorker(
|
||||
}
|
||||
}
|
||||
|
||||
if (tags.length === 0 && !hasMultipleSignatures) {
|
||||
if (tags.length === 0 && !hasMultipleSignatures && !isInJSDoc(location)) {
|
||||
tags = symbol.getContextualJsDocTags(enclosingDeclaration, typeChecker);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user