botframework-utility README
Features
Current
Open Endpoints in Bot Framework Emulator
- Right-click
.env
orappsettings.json
files to open endpoints in Bot Framework Emulator - You can also use the keybinding,
ctrl
+alt
+shift
+e
(for localhost) appsettings.json
/.env
use the following format for endpoints:Endpoint_<Name>: <Host>
,Endpoint_<Name>_AppId: <MicrosoftAppId>
,Endpoint_<Name>_AppPassword: <MicrosoftAppPassword>
Execute All Deployment Commands
- Open Command Palette (
ctrl
+shift
+p
) and type "Deploy" - Writes all new deployment variables to
appsettings.json
/.env
for faster future execution
Download Individual Samples or Open in Browser
- Open Command Palette (
ctrl
+shift
+p
) and type "Sample" - Thanks @stevkan for the suggestion!
Update all Bot Framework CLI tools
- Open Command Palette (
ctrl
+shift
+p
) and type "Update"
Code Snippets
- Storage:
- Memory -
memoryStorage
- Azure Blob -
blobStorage
- Cosmos -
cosmosStorage
- Memory -
- Activity Handlers -
activityHandler
- Welcome Message -
welcomeMessage
- Adaptive Cards -
adaptiveCard
100% Code Coverage!
Future
- ???
Prerequisites
- Deployment
- Your VS Code terminal cannot be Bash. It doesn't play well with
az cli
on some commands. Currently, this extension launches allaz
commands in an OS-specific prompt, but can be overridden from Settings > Extension > Botframework Utility > Custom Terminal for Az Commands - Be sure to stay on the latest version of AZ CLI. This will not support older versions.
- Your VS Code terminal cannot be Bash. It doesn't play well with
Install
Download the .vsix
file. In VS Code, go to Extensions, click the ellipses menu in the top-right, click Install from VSIX and choose the downloaded .vsix
file.
Note: This is currently the only way to install this extension as I haven't published to the Marketplace.*
Extension Settings
- Custom Terminal for Az Commands: Path to custom terminal to use when executing AZ CLI commands
- In
settings.json
, you can use `"botframework-utility.excludeCliToolsFromUpdate" to exclude tools from the Update CLI Tools feature.
Build
Since this isn't currently in public release, you'll have to build it yourself.
npm i -g vsce
- Clone the repo
- Ensure
package.json
"main"
key has a value of"./dist/extension.js"
(it's set to"./out/src/extension.js"
to enable test coverage). - From the root of the cloned repo:
vsce package
- In VS Code, Extensions > Install from VSIX > Select the VSIX generated from the
vsce package
command.
Known Issues
None, currently
Release Notes
See Changelog