This extension forms the Azure Data Studio extension debugging experience.
Updated to latest debugger code to allow debugging newer versions of Azure Data Studio.
Renamed the extension to Azure Data Studio Debug, matching the rename of Azure Data Studio (previously known as SQL Operations Studio).
Fixed issue where use of the sqlops
default runtimeExecutable target didn't work as expected. Testing of this has been verified on macOS and Windows, but not Linux.
To develop an extension you need Node.js installed and available in your $PATH
. Node.js includes npm, the Node.js Package Manager, which will be used to install the extension generator.
Install Yeoman and the Azure Data Studio Extension generator from the command prompt:
npm install -g yo generator-azuredatastudio
The Yeoman generator will walk you through the steps required to create your customization or extension prompting for the required information.
To launch the generator, type the following in a command prompt:
yo azuredatastudio
Pick the New Extension (Typescript)
option to quickly get started with an extension
- Press
F5
or click theDebug
icon and clickStart
- A new instance of Azure Data Studio will start in a special mode (
Extension Development Host
) and this new instance is now aware of your extension. - Press
ctrl+shift+P
(Windows/Linux) orcmd+shift+P
(macOS) and run the command named Hello World. - Congratulations! You've just created and executed your first Azure Data Studio command!
You can now add breakpoints to your code and debug as needed.
Take a look at the extension samples for examples of the type of extension points added to Azure Data Studio. Also look at the VSCode Extensibility Reference - most of the extension points will work, with the exclusion of the debug namespace.
Contact the team on gitter or via our issues page if you have questions on adding extensions.
See a general overview of debugging in VS Code here.
Steps to update the extension on the VS Code Marketplace :
- Make changes and update version in package.json
- Create a tag in the format
x.x.x
corresponding to the version of the release. This will trigger the CD pipeline to run and attach a built version of the VSIX to the release - Download that VSIX and then run
vsce publish --packagePath <pathToVSIX>
. It will prompt you for your PAT which you can get by following the instructions here : https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token (note that you will also need to be a member of thems-mssql
publisher on the Marketplace. Contact repo owners if you're not)
Copyright (c) Microsoft. All rights reserved.
Licensed under the MIT License.