Skip to content

Commit 82b7909

Browse files
committed
Move config file info log
Otherwise it outputs when trying to open a file in an existing instance externally. Externally there isn't an environment variable to branch on to skip this line so instead output it with the other info lines in the child process.
1 parent 89ad799 commit 82b7909

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/node/cli.ts

-4
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
370370
logger.info(`Wrote default config file to ${humanPath(configPath)}`)
371371
}
372372

373-
if (!process.env.CODE_SERVER_PARENT_PID && !process.env.VSCODE_IPC_HOOK_CLI) {
374-
logger.info(`Using config file ${humanPath(configPath)}`)
375-
}
376-
377373
const configFile = await fs.readFile(configPath)
378374
const config = yaml.safeLoad(configFile.toString(), {
379375
filename: configPath,

src/node/entry.ts

+2
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ const main = async (args: Args, cliArgs: Args, configArgs: Args): Promise<void>
174174
})
175175

176176
logger.info(`code-server ${version} ${commit}`)
177+
logger.info(`Using config file ${humanPath(args.config)}`)
178+
177179
const serverAddress = await httpServer.listen()
178180
logger.info(`HTTP server listening on ${serverAddress}`)
179181

0 commit comments

Comments
 (0)