Skip to content

Commit ae8ec04

Browse files
Rename env variable
1 parent 865cf5d commit ae8ec04

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ As long as there is an active browser connection, code-server touches
323323

324324
If you want to shutdown code-server if there hasn't been an active connection
325325
after a predetermined amount of time, you can use the --idle-timeout-seconds flag
326-
or set an `IDLE_TIMEOUT_SECONDS` environment variable.
326+
or set an `CODE_SERVER_IDLE_TIMEOUT_SECONDS` environment variable.
327327

328328
## How do I change the password?
329329

lib/vscode

Submodule vscode updated 922 files

src/node/cli.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -620,14 +620,14 @@ export async function setDefaults(cliArgs: UserProvidedArgs, configArgs?: Config
620620
args["github-auth"] = process.env.GITHUB_TOKEN
621621
}
622622

623-
if (process.env.IDLE_TIMEOUT_SECONDS) {
624-
if (isNaN(Number(process.env.IDLE_TIMEOUT_SECONDS))) {
625-
logger.info("IDLE_TIMEOUT_SECONDS must be a number")
623+
if (process.env.CODE_SERVER_IDLE_TIMEOUT_SECONDS) {
624+
if (isNaN(Number(process.env.CODE_SERVER_IDLE_TIMEOUT_SECONDS))) {
625+
logger.info("CODE_SERVER_IDLE_TIMEOUT_SECONDS must be a number")
626626
}
627-
if (Number(process.env.IDLE_TIMEOUT_SECONDS)) {
627+
if (Number(process.env.CODE_SERVER_IDLE_TIMEOUT_SECONDS) <= 60) {
628628
throw new Error("--idle-timeout-seconds must be greater than 60 seconds.")
629629
}
630-
args["idle-timeout-seconds"] = Number(process.env.IDLE_TIMEOUT_SECONDS)
630+
args["idle-timeout-seconds"] = Number(process.env.CODE_SERVER_IDLE_TIMEOUT_SECONDS)
631631
}
632632

633633
// Ensure they're not readable by child processes.

0 commit comments

Comments
 (0)