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

Adding timestamp to comment. fixes #11702 #12007

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

rschnekenbu
Copy link
Contributor

@rschnekenbu rschnekenbu commented Dec 19, 2022

What it does

Add Comment#timestamp optional property
This adds the timeStamp optional property from Comment to improve vscode api coverage. It also displays the timestamp of each comments in the Comment Thread widget

Fixes #11702

Contributed on behalf of ST Microelectronics

How to test

Note: there are currently some issues with menus, since theia 1.28.0. This is due to #11290, integrated in 1.28.0. Prior to this change, the comment sample works on theia 1.27.0. So to test this change, I cherry-picked my commit on top of 1.27.0 tag. Please see also #11730 for this menu issues.

  1. Install forked extension vscode-comment-api-example-0.0.1.zip
    vsix file

  2. Create a comment using the side bar while comparing 2 test files.
    addCommentTimeStamp

  3. The timestamp should be displayed along the user name.

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added the vscode issues related to VSCode compatibility label Dec 19, 2022
@rschnekenbu
Copy link
Contributor Author

@vince-fugnitto, with the new version, I get a green flag on the vscode-theia-comparator:
timestamp

Note: I also updated the comment vsix extension sample archive, which has the same typo issue.

Contributed on behalf of STMicroelectronics

Fixes eclipse-theia#11702
Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

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

The code looks great. Thank you!

Copy link
Member

@msujew msujew 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 as well 👍

@JonasHelming
Copy link
Contributor

@vince-fugnitto Are you fine with merging this?

Copy link
Member

@paul-marechal paul-marechal left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

[vscode] Support optional property Comment#timestamp
6 participants