feat(comments): support file mentions (#20447)

This commit is contained in:
Shoubhit Dash
2026-04-01 16:11:57 +05:30
committed by GitHub
parent 47a676111a
commit a3a6cf1c07
9 changed files with 258 additions and 2 deletions
@@ -302,6 +302,9 @@ export function FileTabContent(props: { tab: string }) {
comments: fileComments,
label: language.t("ui.lineComment.submit"),
draftKey: () => path() ?? props.tab,
mention: {
items: file.searchFilesAndDirectories,
},
state: {
opened: () => note.openedComment,
setOpened: (id) => setNote("openedComment", id),