diff --git a/packages/server/src/cli.ts b/packages/server/src/cli.ts index 3a47461..84d5336 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 db01528..5b3846e 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,