gasilmac.blogg.se

Bitburner open script in editor
Bitburner open script in editor




You can enable the fileWatcher by default with the setting within the plugin configuration. You can change the directory being watching with the bitburner.scriptRoot setting within the plugin configuration, open VSCode preferences to modify the value - default as. script extension within your currently open folder/workspace - Respecting any folders that you may have them in. This is currently disabled by default (but can be overwritten in Workspace/Folder preferences), the behaviour is - It will push all files that have a. Disable with 'Bitburner: Disable File Watcher'.Enable with 'Bitburner: Enable File Watcher'.Push With the file watcher (Disabled by default) Choose 'Bitburner: Push All Files To The Game' to push all files from your configured scriptRoot.Choose 'Bitburner: Push File To The Game' to save and push a single file (File open in editor).Open the Command Palette (CTRL/CMD + SHIFT + P).Right Click in the VSCode Editor (Your source code) and choose 'Bitburner: Push file to game'.Paste the Auth Token copied via the games context menu in to the input box.Use the command palette (CTRL/CMD + SHIFT + P) and select Bitburner: Add Auth Token.Add the token manually to the workspace settings.json to the key of thToken.vscode/settings.json), so you can either: The token will ultimately end up in the workspace configuration (See your workspaces. You can copy the token from the Bitburner application 'API Server' context menu: This extension requires that token to in order to function. When the game is started for the first time, it generates an 'Auth Token' that can be used by third party programs/applications/scripts to push files to the game. The auth token that the game generates, needed for you to be able to push files in to your game client. If true, this will show a notification/toast whenever the File Watcher is enabled and/or the extension configuration scriptRoot has changed. Errors will always show.īitburner.showFileWatcherEnabledNotification If true, this will show a notification/toast when a file has been successfully pushed to the game. The directory that the File Watcher (if enabled) uses as the 'root' directory to watch.Ī configuration option that is only read from the Workspace or Folder configurations, a way to enable the File Watcher by default. Use at your own risk! Remember to backup your save and scripts! Extension Configuration Configuration

bitburner open script in editor

This is an early WIP with a few hours gone in to both the extension and the game functionality, a lot is subject to change. Note: The extension currently works with the 'dev' branch of the game. This extension allows for you to have all of your scripts on your host machine and push them to the running game client!






Bitburner open script in editor