Skip to content

Commit 3224e19

Browse files
committed
Update extension.ts
1 parent 0279df0 commit 3224e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/extension.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export async function activate(context: ExtensionContext) {
162162
// get it from the server manager's authentication provider.
163163
const scopes = [serverSpec.serverName, serverSpec.username];
164164
try {
165-
const account = serverManagerApi.getAccount ? serverManagerApi.getAccount(serverSpec) : undefined;
165+
const account = serverManagerApi?.getAccount ? serverManagerApi.getAccount(serverSpec) : undefined;
166166
let session = await authentication.getSession(serverManager.AUTHENTICATION_PROVIDER, scopes, { silent: true, account });
167167
if (!session) {
168168
session = await authentication.getSession(serverManager.AUTHENTICATION_PROVIDER, scopes, { createIfNone: true, account });

0 commit comments

Comments
 (0)