service,terminal,cmd/dlv: automatically guessing substitute-path config (#3781)

Add command, API calls and launch.json option to automatically guess
substitute-path configuration.
This commit is contained in:
Alessandro Arzilli
2024-10-31 18:19:08 +01:00
committed by GitHub
parent ac14553fda
commit 822014b8e8
20 changed files with 650 additions and 95 deletions

View File

@ -677,3 +677,10 @@ type Target struct {
CmdLine string
CurrentThread *Thread
}
// GuessSubstitutePathIn are the input parameters used to guess a substitute-path configuration automatically.
type GuessSubstitutePathIn struct {
ImportPathOfMainPackage string
ClientGOROOT string
ClientModuleDirectories map[string]string
}