mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 03:56:55 +03:00
fix(ui): preserve url slashes for root workspace (#14294)
This commit is contained in:
committed by
GitHub
Unverified
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("")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user