Explorar el Código

fix(ui): preserve url slashes for root workspace (#14294)

Shoubhit Dash hace 6 meses
padre
commit
1de12604cf
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      packages/ui/src/components/message-part.tsx

+ 2 - 0
packages/ui/src/components/message-part.tsx

@@ -150,6 +150,8 @@ function createThrottledValue(getValue: () => string) {
 function relativizeProjectPaths(text: string, directory?: string) {
   if (!text) return ""
   if (!directory) return text
+  if (directory === "/") return text
+  if (directory === "\\") return text
   return text.split(directory).join("")
 }