Skip to content

Commit 52c074f

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 61f9963 commit 52c074f

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
@@ -410,10 +410,6 @@ export async function readConfigFile(configPath?: string): Promise<Args> {
410410
logger.info(`Wrote default config file to ${humanPath(configPath)}`)
411411
}
412412

413-
if (!process.env.CODE_SERVER_PARENT_PID && !process.env.VSCODE_IPC_HOOK_CLI) {
414-
logger.info(`Using config file ${humanPath(configPath)}`)
415-
}
416-
417413
const configFile = await fs.readFile(configPath)
418414
const config = yaml.safeLoad(configFile.toString(), {
419415
filename: configPath,

src/node/entry.ts

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ const main = async (args: Args, configArgs: Args): Promise<void> => {
188188
})
189189

190190
logger.info(`code-server ${version} ${commit}`)
191+
logger.info(`Using config file ${humanPath(args.config)}`)
192+
191193
const serverAddress = await httpServer.listen()
192194
logger.info(`HTTP server listening on ${serverAddress}`)
193195

0 commit comments

Comments
 (0)