Skip to content

Commit b4b698c

Browse files
authored
Merge pull request #3436 from jsternberg/dap-file-explorer-fix
dap: file explorer uses the wrong path when looking up mounts
2 parents 285dd76 + 92ea5e6 commit b4b698c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dap/variables.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ func lookupPath(path string, mounts map[string]gateway.Reference) (remainder str
447447
for p, r := range mounts {
448448
if len(p) > len(prefix) && strings.HasPrefix(path, p) {
449449
prefix = p
450-
remainder, _ = filepath.Rel(prefix, p)
450+
remainder, _ = filepath.Rel(prefix, path)
451451
ref = r
452452
}
453453
}

0 commit comments

Comments
 (0)