-
Notifications
You must be signed in to change notification settings - Fork 763
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
Feature Request: export APIs #233
Comments
Also consider this application: #628 |
I would like to see Access to the Go document symbol provider would have solved some issues I had with the Go test explorer. I can call the symbol provider through |
@firelizzard18 I discussed with a team internally. One of the concerns raised is the binary path itself may not be sufficient to run the tools in the same way the Go extension runs. The tools execution environment, flags (including those specified in the settings + flags the extension set) or
Re: extension gets ready -> How about having
cc: @suzmue @stamblerre @findleyr @pjweinb @heschi @polinasok |
@hyangah I don't have any strict requirements. I have two motivations: 1) I want to meet the user's expectations, and 2) I want to avoid adding code in my extensions for handling Go settings if possible. I have two current use-cases. One is a custom debugger for scripts (which look like Go, but are executed by an interpreter, not compiled). The other is launching a long-running notebook kernel. In these two cases, I doubt I would get complaints from users if I didn't handle I do like the APIs you suggest. I personally prefer
👍 |
@hyangah I updated #1642 to implement approach 1, and I tested it to ensure it works with my use-case. I left out |
Change https://golang.org/cl/336509 mentions this issue: |
Exports a function for use by other extensions. When I'm creating a Go-related VSCode extension, being able to reuse this extension's configuration and certain helper functions would be very useful. Additionally, users expect Go-related extensions to respect `go.*` configuration options, and have reported issues when they don't. This change exports `getBinPath`. With this function, Go-related extensions don't have to reinvent the wheel when it comes to installing and configuring Go tools. Updates #233 Change-Id: I9edf7f87437492182e8562aa107b643ca01a1202 GitHub-Last-Rev: 0171541 GitHub-Pull-Request: #1642 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/336509 Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Trust: Hyang-Ah Hana Kim <[email protected]> Trust: Suzy Mueller <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]>
activate
can surface APIs that can be called by other extension.Reference: https://code.visualstudio.com/api/references/vscode-api#extensions
We can consider to export information such as
(Feel free to add the wishlist :-))
For example, see the python extension's API.
https://github.com/microsoft/vscode-python/blob/6f770f198cde6df7661a63a7026c1e10e7ae42ba/src/client/api.ts
The text was updated successfully, but these errors were encountered: