VS Code support for SmartBots Bots Playground scripts.
This extension adds autocomplete, hovers, signature help, snippets, and a searchable sidebar for Bots Playground commands and events.
It focuses only on the Bots Playground scripting API:
Bot.*Playground commandsBot.on(...)Playground events- Playground built-ins such as
http,localStorage,process,console,userSettings, and_assert
Install
From VS Code Extensions
- Open VS Code.
- Open the Extensions view with
Ctrl+Shift+X. - Search for Bots Playground SDK.
- Click Install.
From A Local VSIX
- Open VS Code.
- Open the Extensions view with
Ctrl+Shift+X. - Click the
...menu at the top of the Extensions view. - Choose Install from VSIX....
- Select the
bots-playground-vscode.vsixfile.
You can also install a local VSIX from a terminal:
code --install-extension bots-playground-vscode-0.1.5.vsix
Use
Open a JavaScript or TypeScript Bots Playground script and start typing:
Bot.for Playground commandsBot.on('for event names- Built-ins such as
http.,localStorage.,process., andconsole.
The extension also adds a Bots Playground icon to the VS Code Activity Bar. Open it to browse separate Commands and Events lists. Selecting an item inserts the matching snippet into the active editor.
Refresh Docs
You can refresh the extension's command and event catalog from the SmartBots docs at any time:
- Open the Bots Playground icon in the VS Code Activity Bar.
- Open either the Commands or Events view.
- Click the refresh icon in that view's title bar.
- Wait for the notification confirming how many commands, events, and built-ins were refreshed.
You can also open the Command Palette with Ctrl+Shift+P and run Bots Playground: Refresh Docs Catalog.
Refreshing updates autocomplete, hovers, signature help, and the Commands/Events sidebar immediately.
Notes
This extension is for Bots Playground scripts. It does not add autocomplete for SmartBots HTTP API, AdminBot, TotalControl, PHP, LSL helper APIs, or publishing/store documentation.