vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Add support for remote development on Windows Sandbox

Open asilverman opened this issue 2 years ago • 2 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all issues to ensure it has not already been reported.

Summary

Windows Sandbox (WSB) provides a lightweight desktop environment to safely run applications in isolation. Software installed inside the Windows Sandbox environment remains "sandboxed" and runs separately from the host machine. (for more info click here

In the spirit of Microsoft's mission to empower every person and every organization on the planet to achieve more I think it would be extremely useful to add to the remote development features of VSCode the ability to:

  1. Run scripts and binaries developed on my host machine using VSCode in Windows Sandbox so that I can manage my working copy or repository in an environment that stores my changes while making it possible to run the code in a sandboxed windows environment. This is especially useful for testing PowerShell scripts that spin dev environments (because as a precondition they must run in a pristine environment).

  2. Have a context menu (right click) function that enables me to run a script or a piece of code in WSB in a similar way to what has been implemented in damienvanrobaeys/Run-in-Sandbox: Run PS1, VBS, EXE, MSI in Windows Sandbox very quickly just from a right-click (github.com) has implemented. Notice how you can extract and run PowerShell scripts using a context menu, this is advantageous because it empowers people to skip the copy paste and handling of the WSB process

  3. Configure WSB environments using a GUI in a similar way to what has been implemented in https://github.com/leestevetk/WSBEditor

Additional Information

  • A link to a useful tool that is relevant and brings us closer to realize the goal stated above is https://github.com/jdhitsolutions/WindowsSandboxTools

Proposed Design

No response

asilverman avatar Apr 04 '23 15:04 asilverman

Also posted in https://github.com/microsoft/vscode/issues/179152

asilverman avatar Apr 04 '23 15:04 asilverman

Thanks for opening this issue @asilverman looks like this would be dependent on VSCode supporting this environment, looks like you also opened up an issue for then which is great

SydneyhSmith avatar Apr 05 '23 19:04 SydneyhSmith