Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 2.83 KB

File metadata and controls

57 lines (37 loc) · 2.83 KB

Azure Data Studio Extension Development

Prereqs Prereqs Prereqs Prereqs Prereqs Prereqs Prereqs

Debug and Test in Azure Data Studio

Name Change Complication Skip to Debugging for Current Projects

With the name change from SQL Operations Studio (sqlops) to Azure Data Studio (azuredatastudio), you might need to adjust the file .vscode/launch.json on older projects.

There are two instances of "runtimeExecutable": "sqlops" that should be changed to "runtimeExecutable": "azuredatastudio".

Bonus points: Double click on the first instance of sqlops in the file to highlight it. Press ctrl+D on your keyboard, which duplicates your cursor to the next instance of sqlops in the file. Hit backspace (which deletes both simultaneously) and type in azuredatastudio (as both cursors fill in).

VS Code Debugging

Debugging

The Debug menu can be used to launch your extension into a special instance of Azure Data Studio with or without the VS Code debugger attached.

The template extension demonstrates two concepts - extension activation and extension commands. On extension activation, a message is logged to the extension console. On execution of the "Hello World" command, an information message is presented to the user.

VS Code Debugging

Open the Debug menu and select Start Debugging. A new Azure Data Studio window should open and VS Code should enter debugging mode.

VS Code Debugging

In Azure Data Studio, open the command pallette (ctrl + shift + p) and type in Hello World.

Hello World Command

When you hit enter, an information message will appear in the lower right corner.

Hello World Message

We have a functioning, albeit not very useful, Azure Data Studio extension

If Azure Data Studio Won't Launch

  1. Open an Azure Data Studio window prior to starting debugging
  2. Ensure that Azure Data Studio is in your PATH

Ready to Move on to 4-Create?

Prereqs Prereqs Prereqs Prereqs Prereqs Prereqs Prereqs