Skip to content

Commit

Permalink
Don't include imports in js/ts document symbol results
Browse files Browse the repository at this point in the history
Fixes #50829
  • Loading branch information
mjbvz committed May 31, 2018
1 parent 3becb91 commit f1efd11
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ export default class TypeScriptDocumentSymbolProvider implements DocumentSymbolP
}

private static shouldInclueEntry(item: Proto.NavigationTree | Proto.NavigationBarItem): boolean {
if (item.kind === PConst.Kind.alias) {
return false;
}
return !!(item.text && item.text !== '<function>' && item.text !== '<class>');
}
}

0 comments on commit f1efd11

Please sign in to comment.