-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
10002: Add canReply to CommentThread #11062
Conversation
When rebasing the PR on master, I get this exception when trying to open the CommentThread:
It seems that the MouseEvent target details is no longer correctly set by the editor, which breaks the CommentContribution Edit: this is now fixed 👍 |
- Add canReply to the CommentThread API - Show or Hide the Comment Reply widget based on the CommentThread.canReply value fixes eclipse-theia#10002 Contributed on behalf of STMicroelectronics Signed-off-by: Camille Letavernier <[email protected]>
b343cd3
to
e73a886
Compare
Issue #11064 was created and fixed. I've rebased the PR on the current master and updated the Changelog, so this is now ready for review. As far as I can tell, the 2 failed checks are unrelated to these changes (I see similar failures in other pull requests) |
@CamilleLetavernier, I pushed a fix for the error related to the Mocha tests - if you rebase, those failures should go away (or reveal something else that needs fixing...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes work as described. There are a number of UI differences between VSCode's comment threads and ours:
After first comment (note Toggle canReply
button in upper right):
In addition, VSCode's input uses the editor's monospace font; ours uses the UI font.
Do you have interest in reconciling those differences.
What it does
How to test
Use the test extension: https://github.com/CamilleLetavernier/vscode-comment-api-example/releases
Select 2 files and use "Compare with each other" (Or open any DiffEditor)
Use the gutter to create a new comment thread
Use the "Toggle canReply" action to disable replies
Notes:
The PR is based on an older branch, because it seems that the upgrade forFixed in CommentThread support no longer works #11064Monaco to VSCode v. 1.65.2
broke CommentThreads (See detailed comment below)Because it is based on an older branch, I haven't push the Changelog (It would cause too much conflict at the moment)FixedReview checklist
Reminder for reviewers
Fixes #10002
Contributed on behalf of STMicroelectronics
Signed-off-by: Camille Letavernier [email protected]