mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Fix issue #2677 : Labels should not get quick info
This commit is contained in:
parent
96995e705a
commit
7119165bd0
@ -3798,6 +3798,10 @@ module ts {
|
||||
// Try getting just type at this position and show
|
||||
switch (node.kind) {
|
||||
case SyntaxKind.Identifier:
|
||||
if(isLabelName(node)){
|
||||
return undefined;
|
||||
}
|
||||
// Fall through.
|
||||
case SyntaxKind.PropertyAccessExpression:
|
||||
case SyntaxKind.QualifiedName:
|
||||
case SyntaxKind.ThisKeyword:
|
||||
|
||||
11
tests/cases/fourslash/noQuickInfoForLabel.ts
Normal file
11
tests/cases/fourslash/noQuickInfoForLabel.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
//// /*1*/label : while(true){
|
||||
//// break /*2*/label;
|
||||
//// }
|
||||
|
||||
goTo.marker('1');
|
||||
verify.not.quickInfoExists();
|
||||
|
||||
goTo.marker('2');
|
||||
verify.not.quickInfoExists();
|
||||
Loading…
x
Reference in New Issue
Block a user