delve/pkg/locspec
Ruijie Chen 20df19e33b
service/dap: Add support for empty string in substitutePath (#3088)
This changes adds the support to replace relative paths sources with "" as rapresenting current directory.
For example:
Rule like '{from: "", to: "/my/project"}' will map path "src/my/code.go" into "/my/project/src/my/code.go"
Rule like '{from: "/my/project", to: ""}' will map path "/my/project/src/my/code.go" into "src/my/code.go"

Fixes #3082
2022-08-14 16:01:39 +02:00
..
doc.go *: run go1.19 'go fmt' on everything and fix problems (#3031) 2022-06-17 10:08:11 -07:00
locations_test.go service/dap: Add support for empty string in substitutePath (#3088) 2022-08-14 16:01:39 +02:00
locations.go service/dap: Add support for empty string in substitutePath (#3088) 2022-08-14 16:01:39 +02:00