Class VSCodeManager
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Manages VSCode extraction from StreamingAssets zip file with version checking.
The bundled zip is the official VS Code archive downloaded from Microsoft: https://update.code.visualstudio.com/latest/win32-x64-archive/stable No customizations are applied — it's the vanilla VS Code zip. To update it, use the Unity editor menu: GrindFest > VS Code Bundle > Download Latest.
Platform support:
- Windows: VSCode-win32-x64.zip → extracts → Code.exe (fully working)
- Linux: VSCode-linux-x64.tar.gz → needs tar extraction → ./code (TODO: implement)
The extracted folder lives next to the zip in builds (StreamingAssets/). deploy_grindfest.bat cleans up the extracted folder before Steam upload so only the zip ships with the game.
public static class VSCodeManager
- Inheritance
-
objectVSCodeManager
Methods
- EnsureVSCodeExtracted()
Ensures VSCode is extracted and up-to-date
- GetVSCodeExecutablePath()
Gets the VSCode executable path
- GetVSCodeExtensionsPath()
Gets the VSCode extensions directory path
- InitializeAsync()
Initializes VSCode asynchronously in the background
- OpenProjectFile(string)
Opens the project file (.csproj) in the default associated program
- OpenScriptInVSCode(FileInfo, string)
Opens a script file in VSCode with proper configuration