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:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user