mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Merge branch 'master' into reducedUnionTypes
This commit is contained in:
@@ -3793,6 +3793,10 @@ module ts {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (isLabelName(node)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
let symbol = typeInfoResolver.getSymbolAtLocation(node);
|
||||
if (!symbol) {
|
||||
// Try getting just type at this position and show
|
||||
|
||||
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();
|
||||
Reference in New Issue
Block a user