Skip to content

Commit b72d161

Browse files
authored
The @copilot placeholder in the comment edit field should be followed by a space (#7370)
Fixes #7363
1 parent f0c44f2 commit b72d161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/view/commentControllBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export abstract class CommentControllerBase extends Disposable {
5959
}
6060

6161
return editor.edit(editBuilder => {
62-
editBuilder.insert(new vscode.Position(0, 0), '@copilot');
62+
editBuilder.insert(new vscode.Position(0, 0), '@copilot ');
6363
});
6464
}
6565
}

webviews/components/comment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export function AddComment({
413413
}
414414
: commentMethods(isIssue);
415415

416-
const commentStartingText = pendingCommentText ?? (isCopilotOnMyBehalf ? '@copilot' : '');
416+
const commentStartingText = pendingCommentText ?? (isCopilotOnMyBehalf ? '@copilot ' : '');
417417

418418
return (
419419
<form id="comment-form" ref={form as React.MutableRefObject<HTMLFormElement>} className="comment-form main-comment-form" onSubmit={() => submit(textareaRef.current?.value ?? '')}>

0 commit comments

Comments
 (0)