Skip to content

Commit

Permalink
Add timestamp on comment creation
Browse files Browse the repository at this point in the history
  • Loading branch information
rschnekenbu committed Dec 6, 2022
1 parent 76c7894 commit ec74619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion comment-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"displayName": "Comment API Sample",
"description": "Comment API Sample",
"version": "0.0.1",
"publisher": "vscode-samples",
"private": true,
"license": "MIT",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion comment-sample/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ class NoteComment implements vscode.Comment {
public mode: vscode.CommentMode,
public author: vscode.CommentAuthorInformation,
public parent?: vscode.CommentThread,
public contextValue?: string
public contextValue?: string,
public timeStamp?: Date
) {
this.id = ++commentId;
this.savedBody = this.body;
this.timeStamp = new Date();
}
}

Expand Down

0 comments on commit ec74619

Please sign in to comment.