Script Commands
Script commands can be accessed by right clicking a script in the extension tree.
Commands
Commit to Current Version#
Available on the script right click menu when a script is local and differs from the committed version.
Commits the currently saved local user config to the current version of the user config. Does not create a new version.
You may also add a commit message if one did no already exist on the version, modify the existing message, or leave the existing message as is.
Commit to New Version#
Available on the script right click menu when a script is local and differs from the committed version.
Commits the currently saved local script to a new version, leaving untouched any previous versions.
You may also optionally add a commit message.
Force Commit to New Version#
Available when turned on in the extension settings.
Commits the currently saved local script to a new version, leaving untouched any previous versions, but overriding all commit protections.
You may also optionally add a commit message.
Delete Script#
Available when right clicking a script.
Deletes a Script and removes it from the local workspace if present.
Diff with Local#
Available when a local script differs from the committed version.
Displays a diff view of the current local script and the current committed version.
Diff Version with Local#
Available when a local script differs from the committed version.
Displays a diff view of the currenl local script and the older selected version when right clicking on an older version of the Script.
Diff with Version…#
Available when a local script.
Allows you to select another version to diff against a version you select in the tree.
Discard Changes#
Available when a local script differs from the committed version.
Discards any local changes and deletes the file from the local workspace.
Open#
Available on scripts.
Opens a script for editing or viewing.
Reveal in File Explorer#
Available when a script is local.
Open a file explorer to the location of the last selected file.
Run Script#
Available on javascript client scripts.
Allows you to execute a script from the exported script module as a Client, OMAPI, or Orchestrator script.
Run Script with Input#
Available on javascript client scripts.
Allows you to execute as a Client, OMAPI, or Orchestrator script which will be given the currently selected lines of the currently active document. The selected lines must be the equivalent of a javascript object or the JSON representation of one.
Transform to Backend Script#
Transforms an ES Module script into vanilla JavaScript. His makes updates to the new Object Model API and Datasource Orchestrator scripts easier.