Skip to content

Commit 08b751c

Browse files
committed
chore(timeout): clarify number in jsdoc
1 parent 60eaf89 commit 08b751c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/providers/utils/timeout-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import * as vscode from "vscode"
44
// JavaScript's setTimeout has a maximum delay limit of 2147483647ms (32-bit signed integer max)
55
// Values larger than this may be clamped to 1ms or cause unexpected behavior
66
// 2147483647 is the safe maximum value that won't cause issues
7-
export const MAX_TIMEOUT_MS = 2147483647
7+
const MAX_TIMEOUT_MS = 2147483647
88

99
const DEFAULT_TIMEOUT_MS = 600 * 1000
1010

1111
/**
1212
* Gets the API request timeout from VSCode configuration with validation.
1313
*
14-
* @returns The timeout in milliseconds. Returns 2147483647 for no timeout (when config is 0).
14+
* @returns The timeout in milliseconds. Returns 2147483647 (max value for 32-bit signed integer) for no timeout (when config is 0).
1515
*/
1616
export function getApiRequestTimeout(): number {
1717
// Get timeout with validation to ensure it's a valid non-negative number

0 commit comments

Comments
 (0)