Protected ReadonlycliProtected ReadonlyenvProtectedrootProtected ReadonlyuntitledProtecteduntitledUntitled workspaces that are not among the most recent N workspaces will be deleted on start. Increase this number to keep older files, lower it to delete stale untitled workspaces more aggressively.
Protected ReadonlyworkspaceProtecteddoReturns with a promise that resolves to the most recently used workspace folder URI as a string.
Resolves to undefined if the workspace folder is not yet set.
Returns list of recently opened workspaces as an array.
ProtectedgetProtectedgetProtectedgetProtectedinitCalled right after the server for the Express app is started. Use this to additionally configure the server or as ready-signal for your service.
The implementation may be async, however it will still block the startup step until it's resolved.
either undefined or a Promise resolving to undefined.
ProtectedreadProtectedreadReads the most recently used workspace root from the user's home directory.
ProtectedremoveRemoves untitled workspaces that are not among the most recently used workspaces.
Use the untitledWorkspaceStaleThreshold to configure when to delete workspaces.
Removes a workspace from the list of recently opened workspaces.
the workspace uri.
Sets the desired string representation of the URI as the most recently used workspace folder.
ProtectedworkspaceProtectedwriteProtectedwriteWrites the given uri as the most recently used workspace root to the user's home directory.
Contribution for hooking into the backend lifecycle:
initialize()configure(expressApp)onStart(httpServer)onStop()