spmeesseman/vscode-taskexplorer

provide API

WebFreak001 opened this issue · 6 comments

hi, I would like to contribute tasks to your extension with my extension. Is there a possibility you could provide your TaskProvider API to the outside? (See https://code.visualstudio.com/api/references/vscode-api#extensions)

i will look into it :)

specifically, because I saw you are using the standard tasks API, I would like to be able to provide like an icon for my group. Also because right now your extension groups my tasks under "vscode" and often they are not there at all if there are other things in the workspace

@WebFreak001 hi. the next release will have this functionality. (2 years later sorry)

nice, thanks!

Are there docs available somewhere?

soon, ill add a new section to the readme

is getting the API object through a command stable or is there a reason to use a command?

It's not the default way of getting it through vscode.extensions.getExtension("spmeesseman.vscode-taskexplorer")?.exports and I'm not sure if it plays well with remote setups where it might need to serialize and forward the commands over network.

For that way you just return the API object in the activate function, then it's in the exports field of the getExtension call. It also allows to test if the extension is installed in the same call very easily.