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

Commit9868091

Browse files
committed
fix: try/catch for fetching the session token
1 parent8086c7b commit9868091

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/storage.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ export class Storage {
5252
}
5353

5454
publicasyncgetSessionToken():Promise<string|undefined>{
55-
returnthis.secrets.get("sessionToken")
55+
try{
56+
returnawaitthis.secrets.get("sessionToken")
57+
}catch(ex){
58+
// The VS Code session store has become corrupt before, and
59+
// will fail to get the session token...
60+
returnundefined
61+
}
5662
}
5763

5864
// getRemoteSSHLogPath returns the log path for the "Remote - SSH" output panel.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp