Skip to content

Conversation

@tuzixiangs
Copy link

Related Issues:

This PR fixes an issue where the PasteAction would crash in the standalone editor (Monaco Editor) because IProductService is not registered in that environment.

Bug Fix

  • Wrapped the retrieval of IProductService in a try-catch block.
  • Added a check for productService existence before accessing its properties.

Verification

  1. Verified that PasteAction no longer throws an error when IProductService is missing.
  2. Verified that telemetry logic relying on productService is skipped safely when the service is undefined.

@bpasero
Copy link
Member

bpasero commented Dec 8, 2025

I think to be on the safe side we should define a basic product service standalone.

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.

4 participants