Skip to content

Improvements to Extension API documentation #1765

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

Closed
lannonbr opened this issue Aug 5, 2018 · 1 comment
Closed

Improvements to Extension API documentation #1765

lannonbr opened this issue Aug 5, 2018 · 1 comment
Labels
API documentation API reference issues extensibility extension author content under /api

Comments

@lannonbr
Copy link

lannonbr commented Aug 5, 2018

The current state of the documentation is at a point which it seems to display what you can use in the vscode namespace, but not to a great extent.

For instance, I'm writing an extension which runs the 'vscode.executeDefinitionProvider' command and I pass in the valid editor uri and position, and if I run the actual "Go To Definition" in the editor it works, but it is failing to do so when I use the API command.

When looking at the documentation for vscode.executeDefinitionProvider, all that is provided is what the parameters are and what it returns. Personally this is good for starting out, but when you run into loopholes where the editor does a certain function but the extension API differs even though it shouldn't, it leaves a lacking situation for how to figure out what the issue is.

With this, I think it would be a great effort to push more on not just having the docs that explain the definitions of each function, but as well common gotchas and examples on how to use the Extension API

@gregvanl gregvanl added extensibility extension author content under /api API documentation API reference issues labels Aug 9, 2018
@lannonbr
Copy link
Author

lannonbr commented Oct 9, 2018

It seems this is being handled in #1949 so I will close this issue.

@lannonbr lannonbr closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API documentation API reference issues extensibility extension author content under /api
Projects
None yet
Development

No branches or pull requests

2 participants