Merge pull request #10590 from Microsoft/navbar_fn_in_var

Treat variable declaration as top-level if it has an important child.
This commit is contained in:
Andy
2016-09-01 11:17:22 -07:00
committed by GitHub
3 changed files with 58 additions and 0 deletions
+1
View File
@@ -466,6 +466,7 @@ namespace ts.NavigationBar {
case SyntaxKind.MethodDeclaration:
case SyntaxKind.GetAccessor:
case SyntaxKind.SetAccessor:
case SyntaxKind.VariableDeclaration:
return hasSomeImportantChild(item);
case SyntaxKind.ArrowFunction: