FindFiles2OptionsNew.useIgnoreFiles
is quite complicated
#226828
Labels
FindFiles2OptionsNew.useIgnoreFiles
is quite complicated
#226828
Testing #226670
I'm not quite sure how to express this, but the
useIgnoreFiles
option is quite complex and I'm not sure if it's necessary to be so complex. If I understand its purpose correctly, thefindFiles2New
API will by default do some filtering on top of the disk. In other words, it will respect whatever settings are defined in the workspace or defined by the user w.r.t. ignoring files.Then,
useIgnoreFiles
is a mechanism to ask the vscode API to ignore the settings and be 100% transparent and just return whatever the disk has.My question is: how could an extension author know if they should set
useIgnoreFiles.parent
to false? How aboutuseIgnoreFiles.global
? These two settings seem to be extremely personal to the user that has decided to check out the repository in a folder where they define an ignore file. Or maybe they have a global ignore file. But how could an extension author know what kind of setup they're dealing with?So I'd suggest simplifying the API, allow extension authors to either opt for the "on disk" no-filters file search or for the "user configured" filter. Also, I think a better name for such a simplified setting might be
respectUserDefinedFilters
,respectConfigurationFilters
ordisableFilters
,disableConfigurationFilters
...Edit: Looking at
useExcludeSettings
, the same situation appears. How should I, as an extension author, know which value to useExcludeSettingOptions.FilesExclude
vsExcludeSettingOptions.SearchAndFilesExclude
and why isn't there aExcludeSettingOptions.SearchExclude
.I feel that the API is quite complex and I'm not sure if such complexity is required. Maybe you have use-cases in mind for all these settings?
The text was updated successfully, but these errors were encountered: