MCPcopy Create free account
hub / github.com/microsoft/vscode-extension-samples / replyNote

Function replyNote

comment-sample/src/extension.ts:133–141  ·  view source on GitHub ↗
(reply: vscode.CommentReply)

Source from the content-addressed store, hash-verified

131 }));
132
133 function replyNote(reply: vscode.CommentReply) {
134 const thread = reply.thread;
135 const newComment = new NoteComment(reply.text, vscode.CommentMode.Preview, { name: 'vscode' }, thread, thread.comments.length ? 'canDelete' : undefined);
136 if (thread.contextValue === 'draft') {
137 newComment.label = 'pending';
138 }
139
140 thread.comments = [...thread.comments, newComment];
141 }
142}

Callers 1

activateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected