Skip to content

Cloning Git repositories through session parameters #299

Closed Answered by lucas-koehler
robertjndw asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @robertjndw ,
Yes you can hand in the URL via the custom session parameters and then read them as environment variables in Theia.
Unfortunately, we are not aware of an existing Theia or VSCode extension that does this for you. Thus, you need to implement a Theia extension to do this.
In your extension implementation, you can conveniently access environment variables via the EnvVariablesServer.

E.g. you could inject it as a field in a class like this:

@inject(EnvVariablesServer)
protected environment: EnvVariablesServer;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robertjndw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants