Skip to content

Commit

Permalink
don't filter symbols in Cmd+T, fixes #8013
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Jun 24, 2016
1 parent 2bf4a93 commit b6f5648
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vs/workbench/parts/search/browser/openSymbolHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ class SymbolEntry extends EditorQuickOpenEntry {

export class OpenSymbolHandler extends QuickOpenHandler {

private static SUPPORTED_OPEN_TYPES = ['class', 'interface', 'enum', 'function', 'method'];
private static SEARCH_DELAY = 500; // This delay accommodates for the user typing a word and then stops typing to start searching

private delayer: ThrottledDelayer<QuickOpenEntry[]>;
Expand Down Expand Up @@ -158,9 +157,6 @@ export class OpenSymbolHandler extends QuickOpenHandler {

// Convert to Entries
types.forEach(element => {
if (!OpenSymbolHandler.SUPPORTED_OPEN_TYPES.some((type: string) => element.type === type)) {
return;
}

// Find Highlights
let highlights = filters.matchesFuzzy(searchValue, element.name);
Expand Down Expand Up @@ -212,9 +208,7 @@ export class OpenSymbolHandler extends QuickOpenHandler {
if (elementAName === elementBName) {
let elementAType = elementA.getType();
let elementBType = elementB.getType();
if (elementAType !== elementBType) {
return OpenSymbolHandler.SUPPORTED_OPEN_TYPES.indexOf(elementAType) < OpenSymbolHandler.SUPPORTED_OPEN_TYPES.indexOf(elementBType) ? -1 : 1;
}
return elementAType.localeCompare(elementBType);
}

return QuickOpenEntry.compare(elementA, elementB, searchValue);
Expand Down

0 comments on commit b6f5648

Please sign in to comment.