-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
A way to tell if my extension is running in Theia (not VS Code) #5501
Comments
Maybe we can rely on env.appName? It should be cc @benoitf |
yes BTW I'm curious why you may want to know in which environment you are |
We have a VS Code extension which we want to also run in theia, but there are a number of behaviour differences between the two use-cases, plus some features that we are making available in one environment but not the other. In addition, there are still some gaps in the theia API which compile but don't work - I have some 'wizards' which I use I haven't pushed this code yet or i'd to link it, this is my extension |
ok thanks @tetchel for the explanation. |
I won't have a chance to create proper bugs for those two in the next little while, but basically they were:
|
@tetchel Could it be closed? There are separate issues already? |
I'd still like to see
|
I thought you will use |
Oh, that totally worked. I didn't even know that API existed. Thanks! |
Hi, is there a way to programmatically determine if my VS Code extension is running in Theia as opposed to in VS Code?
Currently I am checking an env var which is present in our Theia environment, but will not be present in all Theia environments, so I'd like to know if I can improve this.
The text was updated successfully, but these errors were encountered: