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

task-provider-sample: how to read custom task attribute value? #204

Closed
tdjastrzebski opened this issue Aug 5, 2019 · 1 comment
Closed
Assignees

Comments

@tdjastrzebski
Copy link

tdjastrzebski commented Aug 5, 2019

According to the task-provider guide:

The task definition has two attributes task and file. task is the name of the Rake task and file points to the Rakefile that contains the task. The task property is required, the file property is optional. If the file attribute is omitted, the Rakefile in the root of the workspace folder is used.

It does not seem the file attribute value from tasks.json is actually being used in extension.ts code.
How do I read custom task attribute values defined in tasks.json?
Where/how are they available?
Do I need to parse tasks.json file?

@alexr00
Copy link
Member

alexr00 commented Aug 7, 2019

task and file are defined for VS Code in the package.json of the extension and are used for identifying a task. They are not for modifying a task, they are instead provided by the the extension.

If you want to pass stuff from tasks.json into an extension, that's this issue: microsoft/vscode#58836

@alexr00 alexr00 closed this as completed Aug 7, 2019
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

2 participants