Merge pull request #3436 from jsternberg/dap-file-explorer-fix

dap: file explorer uses the wrong path when looking up mounts
This commit is contained in:
Tõnis Tiigi
2025-09-24 08:23:42 -07:00
committed by GitHub
+1 -1
View File
@@ -447,7 +447,7 @@ func lookupPath(path string, mounts map[string]gateway.Reference) (remainder str
for p, r := range mounts {
if len(p) > len(prefix) && strings.HasPrefix(path, p) {
prefix = p
remainder, _ = filepath.Rel(prefix, p)
remainder, _ = filepath.Rel(prefix, path)
ref = r
}
}