Skip to content

Commit

Permalink
fix quote reply (#6230)
Browse files Browse the repository at this point in the history
* fix quote reply

* Two new lines before reply

---------

Co-authored-by: Alex Ross <alros@microsoft.com>
  • Loading branch information
ixzhao and alexr00 authored Sep 17, 2024
1 parent 2205b45 commit f6aa0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webviews/components/comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function AddComment({
const textareaRef = useRef<HTMLTextAreaElement>();

emitter.addListener('quoteReply', (message: string) => {
const quoted = message.replace(/\n\n/g, '\n\n> ');
const quoted = message.replace(/\n/g, '\n> ');
updatePR({ pendingCommentText: `> ${quoted} \n\n` });
textareaRef.current?.scrollIntoView();
textareaRef.current?.focus();
Expand Down

0 comments on commit f6aa0bd

Please sign in to comment.