mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
3d999986b2
* Add test extension This will let us test extension-related features (like the proxy URI). I removed the environment variables in the script because they override the ones you set yourself. We still set defaults in constants.ts. * Add changelog entry for VSCODE_PROXY_URI * Add terminal test for VSCODE_PROXY_URI * Update VS Code This adds the VSCODE_PROXY_URI environment variable.
14 lines
413 B
TypeScript
14 lines
413 B
TypeScript
import * as vscode from "vscode"
|
|
|
|
export function activate(context: vscode.ExtensionContext) {
|
|
context.subscriptions.push(
|
|
vscode.commands.registerCommand("codeServerTest.proxyUri", () => {
|
|
if (process.env.VSCODE_PROXY_URI) {
|
|
vscode.window.showInformationMessage(process.env.VSCODE_PROXY_URI)
|
|
} else {
|
|
vscode.window.showErrorMessage("No proxy URI was set")
|
|
}
|
|
}),
|
|
)
|
|
}
|