ignore spaces in quick open (fixes #5306, fixes #1292)

This commit is contained in:
Benjamin Pasero
2016-04-30 16:12:40 +02:00
parent 2f423b2a4a
commit b4e79c9cea
2 changed files with 3 additions and 2 deletions
@@ -205,7 +205,8 @@ export class EditorHistoryModel extends QuickOpenModel {
}
public getResults(searchValue: string): QuickOpenEntry[] {
searchValue = searchValue.trim();
searchValue = searchValue.replace(/ /g, ''); // get rid of all whitespace
const searchInPath = searchValue.indexOf(paths.nativeSep) >= 0;
let results: QuickOpenEntry[] = [];
@@ -72,7 +72,7 @@ export class OpenAnythingHandler extends QuickOpenHandler {
}
public getResults(searchValue: string): TPromise<QuickOpenModel> {
searchValue = searchValue.trim();
searchValue = searchValue.replace(/ /g, ''); // get rid of all whitespace
// Help Windows users to search for paths when using slash
if (isWindows) {