From 4eb5331ddcde864e6fe73dbab955b0a720f58654 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 27 Mar 2019 10:36:32 -0400 Subject: [PATCH] Fixes #121 --- packages/server/src/cli.ts | 2 +- packages/server/src/vscode/sharedProcess.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/server/src/cli.ts b/packages/server/src/cli.ts index 3a47461d..84d53367 100644 --- a/packages/server/src/cli.ts +++ b/packages/server/src/cli.ts @@ -238,7 +238,7 @@ if (isCli) { if (!options.certKey && !options.cert) { logger.warn("No certificate specified. \u001B[1mThis could be insecure."); // TODO: fill in appropriate doc url - logger.warn("Documentation on securing your setup: https://coder.com/docs"); + logger.warn("Documentation on securing your setup: https://github.com/codercom/code-server/blob/master/doc/security/ssl.md"); } if (!options.noAuth) { diff --git a/packages/server/src/vscode/sharedProcess.ts b/packages/server/src/vscode/sharedProcess.ts index db01528f..5b3846e6 100644 --- a/packages/server/src/vscode/sharedProcess.ts +++ b/packages/server/src/vscode/sharedProcess.ts @@ -61,6 +61,12 @@ export class SharedProcess { }; mkdir(this.userDataDir); mkdir(extensionsDir); + const backupsDir = path.join(this.userDataDir, "Backups"); + mkdir(backupsDir); + const workspacesFile = path.join(backupsDir, "workspaces.json"); + if (!fs.existsSync(workspacesFile)) { + fs.closeSync(fs.openSync(workspacesFile, "w")); + } this.setState({ state: SharedProcessState.Starting,