File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ if (isCli) {
238238 if ( ! options . certKey && ! options . cert ) {
239239 logger . warn ( "No certificate specified. \u001B[1mThis could be insecure." ) ;
240240 // TODO: fill in appropriate doc url
241- logger . warn ( "Documentation on securing your setup: https://coder .com/docs " ) ;
241+ logger . warn ( "Documentation on securing your setup: https://github .com/codercom/code-server/blob/master/doc/security/ssl.md " ) ;
242242 }
243243
244244 if ( ! options . noAuth ) {
Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ export class SharedProcess {
6161 } ;
6262 mkdir ( this . userDataDir ) ;
6363 mkdir ( extensionsDir ) ;
64+ const backupsDir = path . join ( this . userDataDir , "Backups" ) ;
65+ mkdir ( backupsDir ) ;
66+ const workspacesFile = path . join ( backupsDir , "workspaces.json" ) ;
67+ if ( ! fs . existsSync ( workspacesFile ) ) {
68+ fs . closeSync ( fs . openSync ( workspacesFile , "w" ) ) ;
69+ }
6470
6571 this . setState ( {
6672 state : SharedProcessState . Starting ,
You can’t perform that action at this time.
0 commit comments