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

.code-workspace defined tasks not appearing #21

Closed
poseva opened this issue Aug 7, 2020 · 5 comments
Closed

.code-workspace defined tasks not appearing #21

poseva opened this issue Aug 7, 2020 · 5 comments

Comments

@poseva
Copy link

poseva commented Aug 7, 2020

Hello!

I saw that instead of .vscode/tasks.json you have defined the tasks in .code-workspace, the Tasks extensions does not display them in the status bar. Is this not implemented ?

Thank you in advance!

Best regards,
Sebastian

@actboy168
Copy link
Owner

I do not understand your question. Can you elaborate more?

@poseva
Copy link
Author

poseva commented Aug 10, 2020

Tasks can be defined either in a file tasks.json OR directly in a myproject.code-workspace file that contains workspace related settings.

If I define the tasks, in tasks.json file, VS Code recognizes the tasks (Ctrl+Shift+P will show the tasks) and also your extension displays the tasks as buttons. Everything works nice.

If I delete the tasks.json file and move the tasks in myproject.code-workspace file, VS code recognizes the tasks (Ctrl+Shift+P will show the tasks) but your extension does NOT show them as buttons.

Is this extension capable of reading tasks from myproject.code-workspace files ?

@actboy168
Copy link
Owner

actboy168 commented Aug 11, 2020

VSCode's support for workspace tasks is not yet complete. So this is not yet possible.

Once VSCode is ready, I will implement it.

actboy168 added a commit that referenced this issue Aug 20, 2020
@sandym
Copy link
Contributor

sandym commented Oct 12, 2020

This now work, but only if you also have a .vscode/tasks.json in your folder. If tasks.json is not present, tasks in the .code-workspace are ignored.

@sandym
Copy link
Contributor

sandym commented Oct 14, 2020

This, in package.json
"activationEvents": [ "workspaceContains:.vscode/tasks.json" ],
need to change to:
"activationEvents": [ "*" ],

actboy168 added a commit that referenced this issue Oct 16, 2020
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