Cloning Git repositories through session parameters #299
-
Hello everyone, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @robertjndw , E.g. you could inject it as a field in a class like this: @inject(EnvVariablesServer)
protected environment: EnvVariablesServer; |
Beta Was this translation helpful? Give feedback.
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: