![]() ![]() ![]() : boolean = true - whether the UI should stay open even when loosing UI focus. : ResponseSpeed = ResponseSpeed.Normal - used for controlling the response speed of the InputBox of the QuickPick. : string = '' - icon to use for Clear Action, available when the folder name is not valid.īe aware that the term icon is used here as a descriptive one, this property expects a single emoji or a single ThemeIcon which is a string as well, to see the list of available ThemeIcons, look at the official Visual Studio Code documentation, here,.: string = '' - icon to use for Pick current directory Action.: string = '' - icon to use for Navigate to.: string = '' - icon to use for Create folder Action,.: string = '' - icon to use for the folder up entry,.: string = '' - icon to use for folder entries,.When this property is set to false all/any icons you set will be ignored, : boolean = true - indicates whether icons will be shown in the Folder Picker. : string = 'Pick a Folder' - the Folder Picker title, shown at the top of the picker, All properties are optional and callbacks are not defined. Options: FolderPickerOptions - additional options to pass and where you should place your callbacks, will most likely change in the near future. ShowFolderPicker ( directory: string, options?: FolderPickerOptions ): voidĭirectory: string - the initial directory to show in Folder Picker UI, if none is specified default to user home directory, ![]() Upon closure I decided to build my own UI/logic for that and this project and module are what I managed to achieve so far. Another issue that was present is that the original code only allowed to create a single-level child folder (no nested/recursive folder creation) due to limitations of the native () function. Then I reached out to our friends at and posted a feature request #127201 to override this behavior but they closed the feature request as that is by-design. I started with the built-in () function which works great when you set the option to true but that is a global preference and not everyone - including myself - wants to change the whole UX for file/folder opening just for that. □ When I started my beforementioned New Folder extension for Visual Studio Code my goal was to implement a simple UX for creating new folders when opening a new/blank instance of Visual Studio Code since that behavior is not built-in. The module exposes a single function showFolderPicker() which provides a custom QuickPick UI rather than the built-in Visual Studio Code QuickPick UI.Ĭurrently, its functionalities are tightly-coupled with my extension New Folder but I will make the module more generic in the future. Provides a custom Folder Picker API + UI for Visual Studio Code. ✨ Current major version v.2.x.x contains breaking changes. ⚠ This module is built as the core functionality of my New Folder Visual Studio Code extension and is still under active development, use at own risk, if needed. Made possible with □ Gecko - an upcoming project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |