-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pickFile: list only folders, possible empty folders #74
Comments
Have you looked at the property In your example you show a double If you show a directory with |
Thanks for your quick reply. I was using:
With your suggestion now I can simplify my code to:
This is not the same example that I shared in this Issue but it's similar. Also I would like to know if there is any way to rename the description of the label. For example: (let's to consider that after "|" it's a gray color or description for the dropdown)
Using a simple plain text like:
Avoiding usage of "${ws:}" which I would think that it's an error trying to interpolate the variable to the print. Regards. |
if you use when #73 is implemented you can transform I choose to show I did not use a possible legal variable name because it is a long text and it would suggest that it did not resolve the variable. A possible workaround to display empty folders is to add a dummy file in the empty folder like I will try to find a way to list empty folders without a workaround. |
@rioj7
I know that we already have Yes, that could be a workaround. I know that VSCode API doesn't include a I know that his is not very useful, I'll continue checking on the documentation. If I find something useful I'll share it. Thanks for the support. |
@arathburgos05 maybe v1.61.0 can be used to select empty folders. I have added the commands: |
@rioj7 Thanks for the update. It is very useful :) |
Taken as separate question from #73
See for example workspace structure #73
❓ Question 2
Considering the same previous case, I would like to know if there is any way to list only folders not looking for a file.
For instance, if I would like to know what are the parent folders of LOG folders, something like...
*/LOG
I would expect to see:
This is just a dummy case, I have other uses in mind. I tried with include and find but it didn't work. The problem looking for a file is that this won't work if folder is empty. For the moment I have my workspace using file search and transform feature, but this could fail when folder is empty.
The text was updated successfully, but these errors were encountered: