Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita75342a

Browse files
committed
Remove await on makeCoderSdk
makeCoderSdk is not async.
1 parente335ced commita75342a

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

‎src/commands.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ export class Commands {
238238
token:string,
239239
isAutologin:boolean,
240240
):Promise<{user:User;token:string}|null>{
241-
constrestClient=awaitmakeCoderSdk(url,token,this.storage);
241+
constrestClient=makeCoderSdk(url,token,this.storage);
242242
if(!needToken()){
243243
try{
244244
constuser=awaitrestClient.getAuthenticatedUser();

‎src/extension.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
6060
// the plugin to poll workspaces for the current login, as well as being used
6161
// in commands that operate on the current login.
6262
consturl=storage.getUrl();
63-
constrestClient=awaitmakeCoderSdk(
63+
constrestClient=makeCoderSdk(
6464
url||"",
6565
awaitstorage.getSessionToken(),
6666
storage,

‎src/remote.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,7 @@ export class Remote {
255255
// break this connection. We could force close the remote session or
256256
// disallow logging out/in altogether, but for now just use a separate
257257
// client to remain unaffected by whatever the plugin is doing.
258-
constworkspaceRestClient=awaitmakeCoderSdk(
259-
baseUrlRaw,
260-
token,
261-
this.storage,
262-
);
258+
constworkspaceRestClient=makeCoderSdk(baseUrlRaw,token,this.storage);
263259
// Store for use in commands.
264260
this.commands.workspaceRestClient=workspaceRestClient;
265261

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp