提交 2752e42a 编写于 作者: B Benjamin Pasero

search.fuzzyFilePicker might not be a good name (fixes #1295)

上级 98bdf5e0
......@@ -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
......@@ -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);
}
......
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册