Closed haugerbr closed 6 years ago
I've noticed that VS Code won't search within hidden folders, however, I haven't found the document of how to change this behavior yet, I may find some workaround later.
@RUSshy @lkytal I wrote a quick extension that just binds vscodes native workbench.action.tasks.runTask to a status bar item. This should show all the tasks available even when .vscode is hidden and also has the benefit of showing recent tasks at the top. I'll probably publish it within the next week. I'm calling it project tasks in every place I can so that it doesn't cause confusion with this extension.
@haugerbr I'm considering switching to using the API 'workbench.action.tasks.fetchTasks', however, I'm examing whether this changes will break some backward compatibilities.
@Ikytal I think you have some benefits scanning for tasks and customizing the view. Mine will be at the mercy of what vscode does with the task runner in the future. I just wanted it mainly so I could hide vs code and have recently used tasks at the top.
@RUSshy @lkytal It's published
https://marketplace.visualstudio.com/items?itemName=haugerbr.project-tasks
@lkytal I see what you mean now. If that can work and solves the problem of hidden folders not contributing tasks then I think I'll switch back to using yours. Especially if there is a way to order and hide tasks in the dropdown menu.
Should be fixed in version 3.5.0.
If I want to hide the .vscode folder since it really shoudn't be shown in the explorer view, it causes the extension to not find the tasks.json file and those tasks do not show up in the view. Is there any way for the extension to still find the tasks with the folder or file hidden from the explorer view?