title: Visual Studio Code extension: Keep flag in memory between extension restarts
body: <p>I'm in the process of writing a Visual Studio Code extension which accesses a remote file system in a way so that the remote files can be displayed, edited, ... in the local VSCode instance. For that, I have to connect to that remote host and the call the API function</p>
  <p><code>vscode.workspace.updateWorkspaceFolders ()</code>.</p>
  <p>Now that functions always restarts the extension, there does not seem to be a way around that. So I need to know that the extension has to reconnect to the remote host again after the restart in just that situation. The obvious solution is a transient boolean flag in memory, which is not kept between different application runs but between extension restarts.</p>
  <p>Is that possible somehow ?</p>
  <p>There are various other configuration storages, secret storages and settings which can easily be accessed, but all of them are permanent (kept between application runs). Is there some simple &quot;boolean flag in memory&quot; solution which is not discarded when the extension restarts ?</p>
  <p>Thank you in advance !</p>