We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae884b1 commit 3da5982Copy full SHA for 3da5982
src/services/services.ts
@@ -1619,6 +1619,9 @@ namespace ts {
1619
if (isNewExpression(node.parent) && node.pos === node.parent.pos) {
1620
return node.parent.expression;
1621
}
1622
+ if (isNamedTupleMember(node.parent) && node.pos === node.parent.pos) {
1623
+ return node.parent;
1624
+ }
1625
return node;
1626
1627
@@ -1633,6 +1636,7 @@ namespace ts {
1633
1636
case SyntaxKind.ThisKeyword:
1634
1637
case SyntaxKind.ThisType:
1635
1638
case SyntaxKind.SuperKeyword:
1639
+ case SyntaxKind.NamedTupleMember:
1640
return true;
1641
default:
1642
return false;
tests/cases/fourslash/quickInfoForNamedTupleMember.ts
@@ -0,0 +1,5 @@
1
+/// <reference path="fourslash.ts" />
2
+
3
+////type foo = [/**/x: string];
4
5
+verify.quickInfoAt("", "string");
0 commit comments