diff --git a/src/vs/platform/search/common/search.ts b/src/vs/platform/search/common/search.ts index f4005e8a4cad21872c178daacd83598bcd9076ae..7fe7e716f6170dc1010826c3e4b09bece0d04e56 100644 --- a/src/vs/platform/search/common/search.ts +++ b/src/vs/platform/search/common/search.ts @@ -92,6 +92,8 @@ export class LineMatch implements ILineMatch { export interface ISearchConfiguration extends IFilesConfiguration { search: { exclude: glob.IExpression; - fuzzyFilePicker: boolean; - }; + }, + filePicker: { + alternateFileNameMatching: boolean; + } } \ No newline at end of file diff --git a/src/vs/workbench/parts/search/browser/openAnythingHandler.ts b/src/vs/workbench/parts/search/browser/openAnythingHandler.ts index 878a0db9a7c77bbb3c4fa724691bd76a6759ece9..81cc2efa153ec0ee89798f0421994cfa5efb67da 100644 --- a/src/vs/workbench/parts/search/browser/openAnythingHandler.ts +++ b/src/vs/workbench/parts/search/browser/openAnythingHandler.ts @@ -78,7 +78,7 @@ export class OpenAnythingHandler extends QuickOpenHandler { } private updateFuzzyMatching(configuration: ISearchConfiguration): void { - this.fuzzyMatchingEnabled = configuration.search && configuration.search.fuzzyFilePicker; + this.fuzzyMatchingEnabled = configuration.filePicker && configuration.filePicker.alternateFileNameMatching; this.openFileHandler.setFuzzyMatchingEnabled(this.fuzzyMatchingEnabled); } diff --git a/src/vs/workbench/parts/search/browser/search.contribution.ts b/src/vs/workbench/parts/search/browser/search.contribution.ts index a30775cfa6118923a51d30e2b734860d7185fe6f..89f4e6eda46d5f49e4200e79e72cd877677ba829 100644 --- a/src/vs/workbench/parts/search/browser/search.contribution.ts +++ b/src/vs/workbench/parts/search/browser/search.contribution.ts @@ -198,10 +198,10 @@ configurationRegistry.registerConfiguration({ ] } }, - 'search.fuzzyFilePicker': { + 'filePicker.alternateFileNameMatching': { 'type': 'boolean', 'default': false, - 'description': nls.localize('enableFuzzy', "Enable or disable fuzzy matching and sorting in the file picker.") + 'description': nls.localize('enableFuzzy', "Experimental support for fuzzy matching of file names in the file picker.") } } }); \ No newline at end of file