src/goDebugConfiguration.ts: disable warning about using 'cwd' in dap
The warning displayed for 'remote attach' does not apply for dlv-dap
mode, because 'cwd' will not be respected for dlv-dap remote attach.
Updates golang/vscode-go#1462
Change-Id: I10ad8521fabc88ddef7f50bde62a2c116ca74da8
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/316470
Trust: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/src/goDebugConfiguration.ts b/src/goDebugConfiguration.ts
index de7c0b1..27cd8c4 100644
--- a/src/goDebugConfiguration.ts
+++ b/src/goDebugConfiguration.ts
@@ -265,6 +265,7 @@
}
if (
+ debugAdapter !== 'dlv-dap' &&
debugConfiguration.request === 'attach' &&
debugConfiguration['mode'] === 'remote' &&
debugConfiguration['program']