[PT Run] [Folder Plugin] Environment Variables With Autocomplete (#13811)

* search environment variables folders with autocomplete

* refactoring and tests

* fix
This commit is contained in:
Davide Giacometti
2021-10-20 15:27:15 +02:00
committed by GitHub
parent 15f3c2ff66
commit 64cc6b7af7
10 changed files with 296 additions and 0 deletions

View File

@@ -26,11 +26,14 @@ namespace Microsoft.Plugin.Folder
private static readonly FolderSettings _settings = _storage.Load();
private static readonly IQueryInternalDirectory _internalDirectory = new QueryInternalDirectory(_settings, new QueryFileSystemInfo(_fileSystem.DirectoryInfo), _fileSystem.Directory);
private static readonly FolderHelper _folderHelper = new FolderHelper(new DriveInformation(), new FolderLinksSettings(_settings));
private static readonly IEnvironmentHelper _environmentHelper = new EnvironmentHelper();
private static readonly IQueryEnvironmentVariable _queryEnvironmentVariable = new QueryEnvironmentVariable(_fileSystem.Directory, _environmentHelper);
private static readonly ICollection<IFolderProcessor> _processors = new IFolderProcessor[]
{
new UserFolderProcessor(_folderHelper),
new InternalDirectoryProcessor(_folderHelper, _internalDirectory),
new EnvironmentVariableProcessor(_environmentHelper, _queryEnvironmentVariable),
};
private static PluginInitContext _context;