Don't treat a declaration as a type argument position (#25046)
This commit is contained in:
parent
077d64fb83
commit
e7b338e943
|
@ -948,7 +948,7 @@ namespace ts {
|
|||
token = findPrecedingToken(token.getFullStart(), sourceFile);
|
||||
if (!token || !isIdentifier(token)) return undefined;
|
||||
if (!remainingLessThanTokens) {
|
||||
return { called: token, nTypeArguments };
|
||||
return isDeclarationName(token) ? undefined : { called: token, nTypeArguments };
|
||||
}
|
||||
remainingLessThanTokens--;
|
||||
break;
|
||||
|
|
6
tests/cases/fourslash/signatureHelpOnDeclaration.ts
Normal file
6
tests/cases/fourslash/signatureHelpOnDeclaration.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////function f</**/
|
||||
////x
|
||||
|
||||
verify.noSignatureHelp("");
|
Loading…
Reference in a new issue