mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Add reply to the comments view context menu (#207156)
Fixes microsoft/vscode-pull-request-github#5698
This commit is contained in:
@@ -20,6 +20,7 @@ import type * as vscode from 'vscode';
|
||||
import { ExtHostCommentsShape, IMainContext, MainContext, CommentThreadChanges, CommentChanges } from './extHost.protocol';
|
||||
import { ExtHostCommands } from './extHostCommands';
|
||||
import { checkProposedApiEnabled } from 'vs/workbench/services/extensions/common/extensions';
|
||||
import { MarshalledCommentThread } from 'vs/workbench/common/comments';
|
||||
|
||||
type ProviderHandle = number;
|
||||
|
||||
@@ -53,16 +54,17 @@ export function createExtHostComments(mainContext: IMainContext, commands: ExtHo
|
||||
|
||||
return commentController.value;
|
||||
} else if (arg && arg.$mid === MarshalledId.CommentThread) {
|
||||
const commentController = this._commentControllers.get(arg.commentControlHandle);
|
||||
const marshalledCommentThread: MarshalledCommentThread = arg;
|
||||
const commentController = this._commentControllers.get(marshalledCommentThread.commentControlHandle);
|
||||
|
||||
if (!commentController) {
|
||||
return arg;
|
||||
return marshalledCommentThread;
|
||||
}
|
||||
|
||||
const commentThread = commentController.getCommentThread(arg.commentThreadHandle);
|
||||
const commentThread = commentController.getCommentThread(marshalledCommentThread.commentThreadHandle);
|
||||
|
||||
if (!commentThread) {
|
||||
return arg;
|
||||
return marshalledCommentThread;
|
||||
}
|
||||
|
||||
return commentThread.value;
|
||||
|
||||
Reference in New Issue
Block a user