fix(ui): preserve url slashes for root workspace (#14294)
parent
ac0b37a7b7
commit
1de12604cf
|
|
@ -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("")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue