Skip to content

Commit 97fbed1

Browse files
committed
fix: increase timeout duration for pending authentication to 2 minutes
1 parent 8cb98dd commit 97fbed1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/schema/src/documentation-cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface CacheEntry {
1313
* using VS Code's globalState for cross-session persistence
1414
*/
1515
export class DocumentationCache implements vscode.Disposable {
16-
private static readonly CACHE_DURATION_MS = 7 * 24 * 60 * 60 * 1000; // 7 days cache duration
16+
private static readonly CACHE_DURATION_MS = 30 * 24 * 60 * 60 * 1000; // 30 days cache duration
1717
private static readonly CACHE_PREFIX = 'doc-cache.';
1818

1919
private extensionContext: vscode.ExtensionContext;

packages/schema/src/zenstack-auth-provider.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,13 @@ export class ZenStackAuthenticationProvider implements vscode.AuthenticationProv
139139
}
140140
);
141141

142+
// 2 minutes timeout
142143
setTimeout(() => {
143144
if (this.pendingAuth) {
144145
delete this.pendingAuth;
145146
}
146147
reject(new Error('Timeout'));
147-
}, 60000);
148+
}, 120000);
148149
});
149150
}
150151
);

0 commit comments

Comments
 (0)