Skip to content

Commands Reference

All commands are contributed under the WitcherScript category. Most are invoked through the UI - code lenses, the status bar, the walkthrough, and Settings links - and are deliberately hidden from the Command Palette. Two are meant to be run from the palette directly.

From the Command Palette

Open the palette with Ctrl+Shift+P and type "WitcherScript":

CommandIDDescription
WitcherScript: Restart Language Serverwitcherscript.restartServerRestart the bundled language server.
WitcherScript: Open Walkthroughwitcherscript.openWalkthroughReopen the Get Started walkthrough after it has been dismissed.

Invoked through the UI

These commands exist but are hidden from the palette (when: false). They fire when you click the relevant UI element:

CommandIDInvoked by
Go to Base Definitionwitcherscript.goToBaseDefinitionThe overridden-symbols code lens.
Show Referenceswitcherscript.showReferencesThe reference-count code lens.
Add Additional Script Directorywitcherscript.addAdditionalScriptDirectoryThe folder-picker link in Settings and the walkthrough.
Add Legacy Script Directorywitcherscript.addLegacyScriptDirectoryThe folder-picker link in Settings and the walkthrough.
Show Outputwitcherscript.showOutputThe status bar tooltip and quick menu.

Released under the MIT License.