Skip to content

Commit 856fcf5

Browse files
committed
debug: add logging to auth sync for testing verification
Add debug output to syncAuth function and event listener to help
1 parent 2cb3a79 commit 856fcf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/extension.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
421421
const url = storage.getUrl();
422422
const token = await storage.getSessionToken();
423423

424+
storage.output.info("Auth sync called!");
425+
output.info(
426+
`Auth sync triggered: url=${url ? "present" : "none"}, token=${token ? "present" : "none"}`,
427+
);
428+
424429
// Update the REST client with current credentials
425430
restClient.setHost(url || "");
426431
restClient.setSessionToken(token || "");
@@ -462,6 +467,7 @@ export async function activate(ctx: vscode.ExtensionContext): Promise<void> {
462467
ctx.subscriptions.push(
463468
ctx.secrets.onDidChange((e) => {
464469
if (e.key === "sessionToken") {
470+
output.info("Session token changed, syncing auth state");
465471
syncAuth();
466472
}
467473
}),

0 commit comments

Comments
 (0)