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

provide API #22

Closed
WebFreak001 opened this issue May 2, 2019 · 6 comments
Closed

provide API #22

WebFreak001 opened this issue May 2, 2019 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@WebFreak001
Copy link

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)

@spmeesseman
Copy link
Owner

i will look into it :)

@spmeesseman spmeesseman added the enhancement New feature or request label May 2, 2019
@WebFreak001
Copy link
Author

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

@spmeesseman spmeesseman added the help wanted Extra attention is needed label Feb 8, 2021
@spmeesseman
Copy link
Owner

spmeesseman commented Jan 25, 2022

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

@WebFreak001
Copy link
Author

WebFreak001 commented Jan 25, 2022

nice, thanks!

Are there docs available somewhere?

@spmeesseman
Copy link
Owner

soon, ill add a new section to the readme

@WebFreak001
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants