File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export class Commands {
238
238
token : string ,
239
239
isAutologin : boolean ,
240
240
) : Promise < { user : User ; token : string } | null > {
241
- const restClient = await makeCoderSdk ( url , token , this . storage ) ;
241
+ const restClient = makeCoderSdk ( url , token , this . storage ) ;
242
242
if ( ! needToken ( ) ) {
243
243
try {
244
244
const user = await restClient . getAuthenticatedUser ( ) ;
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
60
60
// the plugin to poll workspaces for the current login, as well as being used
61
61
// in commands that operate on the current login.
62
62
const url = storage . getUrl ( ) ;
63
- const restClient = await makeCoderSdk (
63
+ const restClient = makeCoderSdk (
64
64
url || "" ,
65
65
await storage . getSessionToken ( ) ,
66
66
storage ,
Original file line number Diff line number Diff line change @@ -255,11 +255,7 @@ export class Remote {
255
255
// break this connection. We could force close the remote session or
256
256
// disallow logging out/in altogether, but for now just use a separate
257
257
// client to remain unaffected by whatever the plugin is doing.
258
- const workspaceRestClient = await makeCoderSdk (
259
- baseUrlRaw ,
260
- token ,
261
- this . storage ,
262
- ) ;
258
+ const workspaceRestClient = makeCoderSdk ( baseUrlRaw , token , this . storage ) ;
263
259
// Store for use in commands.
264
260
this . commands . workspaceRestClient = workspaceRestClient ;
265
261
You can’t perform that action at this time.
0 commit comments