Skip to content
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

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

Closed
haugerbr opened this issue Jun 14, 2018 · 8 comments
Closed

Comments

@haugerbr
Copy link

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
Copy link
Owner

lkytal commented Jun 18, 2018

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
Copy link
Author

haugerbr commented Jun 28, 2018

@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
Copy link
Owner

lkytal commented Jun 29, 2018

@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
Copy link
Author

@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
Copy link
Author

@haugerbr
Copy link
Author

@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
Copy link
Owner

lkytal commented Aug 17, 2018

Should be fixed in version 3.5.0.

@lkytal lkytal closed this as completed Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@haugerbr @lkytal and others