We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8086c7b commit 9868091Copy full SHA for 9868091
src/storage.ts
@@ -52,7 +52,13 @@ export class Storage {
52
}
53
54
public async getSessionToken(): Promise<string | undefined> {
55
- return this.secrets.get("sessionToken")
+ try {
56
+ return await this.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
+ return undefined
61
+ }
62
63
64
// getRemoteSSHLogPath returns the log path for the "Remote - SSH" output panel.
0 commit comments