Skip to content

Conversation

quinntracy
Copy link
Collaborator

No description provided.

@quinntracy quinntracy self-assigned this Sep 1, 2025
It starts listening to the `menuItemActivated` endpoint which will notify the extension when **My First Menu** is clicked.

The `menuItemActivated` listener event handles the actual function of the menu. The arguments `args` contain the data returned by Studio Pro to the extension, notifying it which menu item was activated (clicked). This is passed as the `menuId` that was used when creating the menu item and the `menuId` in the `if` statement is used to identify this. In this example it is `"my-menu-unique-id"` and the handler calls the `messageBoxApi` to show an information dialog.
1. Studio Pro starts listening for user interactions with the `menuItemActivated` endpoint. This notifies the extension when **My First Menu** is clicked.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section was difficult to read, so I separated it to make it more clear and easier to read. Please confirm that I interpreted the information correctly--if not, please revise as necessary.

@quinntracy quinntracy marked this pull request as ready for review September 25, 2025 10:30
@quinntracy
Copy link
Collaborator Author

This PR reviews the Web APIs. There will be a separate PR to review the C# APIs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant