fix(ui): preserve url slashes for root workspace (#14294)
This commit is contained in:
@@ -150,6 +150,8 @@ function createThrottledValue(getValue: () => string) {
|
|||||||
function relativizeProjectPaths(text: string, directory?: string) {
|
function relativizeProjectPaths(text: string, directory?: string) {
|
||||||
if (!text) return ""
|
if (!text) return ""
|
||||||
if (!directory) return text
|
if (!directory) return text
|
||||||
|
if (directory === "/") return text
|
||||||
|
if (directory === "\\") return text
|
||||||
return text.split(directory).join("")
|
return text.split(directory).join("")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user