Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore detail field of EditorMouseEvent #11065

Conversation

colin-grant-work
Copy link
Contributor

What it does

Fixes #11064 by restoring the details field of the target of the mouse event fired by the MonacoEditor class. The necessary data was written into a base interface in monaco.d.ts, but in fact came from an extension of that interface. Referring to that extended interface satisfies TypeScript and restores the data.

How to test

  1. Follow the steps in CommentThread support no longer works #11064
  2. Observe that no errors are logged and the comment input box appears.

Review checklist

Reminder for reviewers

@colin-grant-work colin-grant-work added monaco issues related to monaco vscode issues related to VSCode compatibility labels Apr 22, 2022
Copy link
Contributor

@CamilleLetavernier CamilleLetavernier left a comment

Choose a reason for hiding this comment

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

Looks good to me and works great!

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

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

LGTM 👍 I confirmed with the sample that comment functionality works.

@colin-grant-work colin-grant-work merged commit edd747a into eclipse-theia:master Apr 22, 2022
@colin-grant-work colin-grant-work deleted the bugfix/restore-mouse-event-details branch April 22, 2022 15:50
@colin-grant-work colin-grant-work added this to the 1.25.0 milestone Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
monaco issues related to monaco vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CommentThread support no longer works
3 participants