File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import * as path from "path"
99import prettyBytes from "pretty-bytes"
1010import * as semver from "semver"
1111import * as vscode from "vscode"
12- import { makeCoderSdk , startWorkspaceIfStoppedOrFailed , waitForBuild } from "./api"
12+ import { makeCoderSdk , needToken , startWorkspaceIfStoppedOrFailed , waitForBuild } from "./api"
1313import { extractAgents } from "./api-helper"
1414import * as cli from "./cliManager"
1515import { Commands } from "./commands"
@@ -160,7 +160,7 @@ export class Remote {
160160 const { url : baseUrlRaw , token } = await this . storage . readCliConfig ( parts . label )
161161
162162 // It could be that the cli config was deleted. If so, ask for the url.
163- if ( ! baseUrlRaw || ! token ) {
163+ if ( ! baseUrlRaw || ( ! token && needToken ( ) ) ) {
164164 const result = await this . vscodeProposed . window . showInformationMessage (
165165 "You are not logged in..." ,
166166 {
You can’t perform that action at this time.
0 commit comments