Add additional actions to CommentThread (#162750)

* # Add additional actions to CommentThread

* Add in forgotten property

* # missing declaration

* type change

* Fix merge conflict errors

* # add proposed changes + fix styling

* # Allow "secondary action only" buttons

* # Add dropdown button styling fixes

* # add default button styling

* # add better styling to the dropdown button

* Remove duplicate css rule

Co-authored-by: Alex Ross <alros@microsoft.com>
This commit is contained in:
Marcus Revaj
2022-11-17 11:16:06 +01:00
committed by GitHub
parent f675b2bfab
commit aaac6f9a99
14 changed files with 214 additions and 17 deletions

View File

@@ -66,7 +66,7 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
}
return commentThread.value;
} else if (arg && arg.$mid === MarshalledId.CommentThreadReply) {
} else if (arg && (arg.$mid === MarshalledId.CommentThreadReply || arg.$mid === MarshalledId.CommentThreadInstance)) {
const commentController = this._commentControllers.get(arg.thread.commentControlHandle);
if (!commentController) {
@@ -79,6 +79,10 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
return arg;
}
if (arg.$mid === MarshalledId.CommentThreadInstance) {
return commentThread.value;
}
return {
thread: commentThread.value,
text: arg.text