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"
9
9
import prettyBytes from "pretty-bytes"
10
10
import * as semver from "semver"
11
11
import * as vscode from "vscode"
12
- import { makeCoderSdk , startWorkspaceIfStoppedOrFailed , waitForBuild } from "./api"
12
+ import { makeCoderSdk , needToken , startWorkspaceIfStoppedOrFailed , waitForBuild } from "./api"
13
13
import { extractAgents } from "./api-helper"
14
14
import * as cli from "./cliManager"
15
15
import { Commands } from "./commands"
@@ -160,7 +160,7 @@ export class Remote {
160
160
const { url : baseUrlRaw , token } = await this . storage . readCliConfig ( parts . label )
161
161
162
162
// It could be that the cli config was deleted. If so, ask for the url.
163
- if ( ! baseUrlRaw || ! token ) {
163
+ if ( ! baseUrlRaw || ( ! token && needToken ( ) ) ) {
164
164
const result = await this . vscodeProposed . window . showInformationMessage (
165
165
"You are not logged in..." ,
166
166
{
You can’t perform that action at this time.
0 commit comments