azure data studio SQL extension plug-in development notes

Pull scaffolding in node.js environment

npm install -g yo generator-azuredatastudio
yo azuredatastudio

Change the code and run it

To debug the extension, just install the plug-in in visual studio code and
then open the visual studio code to modify and run it.

image.png

After running, auzre data studio automatically opens.
The following is the extension I developed.

image.png

Packaged into vsix

The following is my stored procedure to sql package https://github.com/lozn00/AzureSQLProcConvertSQL/raw/master/StoredProcedureConverter-0.0.1.vsix

npm install -g @vscode/vsce```
vsce package

publish market

Introduction from the official website
To publish a new extension to Azure Data Studio, please do the following:

  1. Add the extension to the extension library .
    I don’t understand how to add an extension library. I open this json and it contains Microsoft.AzureDataStudio.DownloadPage. I modify it and submit it to them for review? ? I don’t understand. My friend who understands is complaining.

  2. We currently do not support hosting third-party extensions. Azure Data Studio does not download the extension, but provides the option to browse to the download page. To set the download page for the extension, set the value of the asset "Microsoft.AzureDataStudio.DownloadPage".

  3. Create a PR against the release/extension branch.

  4. Send a review request to the team.

Your extension will be reviewed and added to the extension library.

2023-8-24 13:58:16
Adjusted through PR github project and successfully launched

image.png

更多参考https://learn.microsoft.com/zh-cn/sql/azure-data-studio/extensions/extension-authoring?view=sql-server-ver16

Guess you like

Origin blog.csdn.net/u010042660/article/details/132510186