mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user