lkytal / quickTask

Task runner and manager extension for VSCode
https://lkytal.github.io/quickTask/
GNU Affero General Public License v3.0
11 stars 7 forks source link

VS code tasks don't show up if .vscode is excluded from project view. #25

Closed haugerbr closed 6 years ago

haugerbr commented 6 years ago

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?

lkytal commented 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.

haugerbr commented 6 years ago

@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.

lkytal commented 6 years ago

@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.

haugerbr commented 6 years ago

@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.

haugerbr commented 6 years ago

@RUSshy @lkytal It's published

https://marketplace.visualstudio.com/items?itemName=haugerbr.project-tasks

haugerbr commented 6 years ago

@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.

lkytal commented 6 years ago

Should be fixed in version 3.5.0.