We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5809801 commit 2271448Copy full SHA for 2271448
src/commands.ts
@@ -136,7 +136,12 @@ export class Commands {
136
* Log into the provided deployment. If the deployment URL is not specified,
137
* ask for it first with a menu showing recent URLs and CODER_URL, if set.
138
*/
139
- public async login([inputUrl, inputLabel, inputToken]: string[]): Promise<void> {
+ public async login(...args: string[]): Promise<void> {
140
+ // Destructure would be nice but VS Code can pass undefined which errors.
141
+ const inputUrl = args[0]
142
+ const inputToken = args[1]
143
+ const inputLabel = args[2]
144
+
145
const url = await this.maybeAskUrl(inputUrl)
146
if (!url) {
147
return
0 commit comments