You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing internal tooling and would like to access the coder's name (or URL) from within an installed extension in that specific coder. Is there an API for that?
The text was updated successfully, but these errors were encountered:
We have an issue to add an environment variable that extensions could use to get the URL: #1510 (comment)
One workaround is to add a query variable to the URL. Query variables are stored in [XDG data dir]/coder.json file so you can read that from your extension.
So for example you could make the URLmycodeserver.com?name=test then in your extension you can get that name with something like this:
thanks! Will do. Another option that came up in a recent discussion is to use the hostname. They should be set correctly for our containers, so that would also work. Thanks for the input. If you dont need the issue anymore, feel free to close. Not sure how to proceed here.
I'm writing internal tooling and would like to access the coder's name (or URL) from within an installed extension in that specific coder. Is there an API for that?
The text was updated successfully, but these errors were encountered: