Azure / azure-webpubsub

Azure Web PubSub Service helps you to manage WebSocket connections and do publish and subscribe in an easy way
https://azure.github.io/azure-webpubsub/
MIT License
132 stars 83 forks source link

Add extension build and upload workflow #685

Closed xingsy97 closed 6 months ago

xingsy97 commented 6 months ago

build and upload latest extension to github artifacts. now developer could test extension by installing extension file.

this pr doesn't contain npm release workflow.

How to install the extension

  1. Download and install the latest Azure resource extension .vsix in https://github.com/xingsy97/vscode-azureresourcegroups/releases.
  2. Download and install the web pubsub extension .vsix from github artifacts. File location: Open the github action "Release VSCode Extension" detail and then click overview in left sidebar, such as https://github.com/Azure/azure-webpubsub/actions/runs/7970555855?pr=685, then scroll to the bottom, you'll see the .vsix file. The downloaded file will be a zip file. Remember to extract it. image image image

How to use the extension

Usage 1

Open VSCode, click "Azure" button in left sidebar. Select a resource group which contains WPS resource to have a look. WPS resourecs should be shown.

Usage 2

Open VSCode, press "ctrl+shift+p" and enter "pubsub" to filter out related commands.

How to install .vsix file

  1. Open VSCode, click extension button in left sidebar.
  2. Drag the .vsix file into the extension view.

How to debug extension

see https://github.com/Azure/azure-webpubsub/pull/673