We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96995e7 commit 7119165Copy full SHA for 7119165
src/services/services.ts
@@ -3798,6 +3798,10 @@ module ts {
3798
// Try getting just type at this position and show
3799
switch (node.kind) {
3800
case SyntaxKind.Identifier:
3801
+ if(isLabelName(node)){
3802
+ return undefined;
3803
+ }
3804
+ // Fall through.
3805
case SyntaxKind.PropertyAccessExpression:
3806
case SyntaxKind.QualifiedName:
3807
case SyntaxKind.ThisKeyword:
tests/cases/fourslash/noQuickInfoForLabel.ts
@@ -0,0 +1,11 @@
1
+/// <reference path='fourslash.ts'/>
2
+
3
+//// /*1*/label : while(true){
4
+//// break /*2*/label;
5
+//// }
6
7
+goTo.marker('1');
8
+verify.not.quickInfoExists();
9
10
+goTo.marker('2');
11
0 commit comments