title: How to programmatically hide all the panels in VSCode?
body: <p>I am looking or a way to programmatically hide all the VSCode panels but I couldn't find anything useful in the API: <a href="https://code.visualstudio.com/api/references/vscode-api" rel="nofollow noreferrer">https://code.visualstudio.com/api/references/vscode-api</a></p>
  <p>I know I am able to toggle each panel visibility (by using the commands in the code snippet bellow), because a toggle command are available for them, but checking if it's visible or not doesn't look possible.</p>
  <pre class="lang-js prettyprint-override"><code>    vscode.commands.executeCommand(&quot;workbench.action.toggleActivityBarVisibility&quot;);
      vscode.commands.executeCommand(&quot;workbench.action.toggleSidebarVisibility&quot;);
      vscode.commands.executeCommand('workbench.action.toggleStatusbarVisibility');
      vscode.commands.executeCommand('workbench.action.toggleMenuBar');
  </code></pre>
  <p>Would there be a right way (I am also fine with a hacky way) to do it I might be missing?</p>