mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Format file paths and truncate in menu
This commit is contained in:
@@ -55,10 +55,12 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
|
||||
const searchPaths = React.useMemo(() => {
|
||||
return [
|
||||
{ type: "problems", path: "problems" },
|
||||
...filePaths.map((path) => ({
|
||||
type: path.endsWith("/") ? "folder" : "file",
|
||||
path: path,
|
||||
})),
|
||||
...filePaths
|
||||
.map((file) => "/" + file)
|
||||
.map((path) => ({
|
||||
type: path.endsWith("/") ? "folder" : "file",
|
||||
path: path,
|
||||
})),
|
||||
]
|
||||
}, [filePaths])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user