diff --git a/src/commands.ts b/src/commands.ts index 3d29fd0f..6ca5e24e 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -21,6 +21,11 @@ export class Commands { if (!url) { return } + if (!url.startsWith("http://") && !url.startsWith("https://")) { + // Default to HTTPS if not provided! + // https://github.com/coder/vscode-coder/issues/44 + url = "https://" + url + } let token: string | undefined = args.length >= 2 ? args[1] : undefined if (!token) {