Replies: 2 comments
-
I don't think there is an API for code-server. However, you could just use if else conditions and send pings to the system so that it finds the session(code-server/VSCode) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I feel like you should be able to achieve this through the VS Code API for Web Extensions maybe? I guess you need some check like: if (RUNTIME === "web") {
} else {
} Argh...I'm not sure to be honest 🤔 Here is how they do it upstream. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear developers,
Hello!
I was developing a extension for both code-server and desktop vscode. Due to the requirement of the extension, we need to identify if the runtime of the extension is code-server (browser) or VSCode (desktop application).
I've gone through google and vscode API documentations and no luck. So I came to ask about this.
Thanks everyone for helping!
Effort so far:
vscode.version
(does not work as the version of code-server is identical to that on desktop)King Regard
Beta Was this translation helpful? Give feedback.
All reactions