You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This needs to use dlv at version 'v1.7.3-0.20211026171155-b48ceec161d5' or later,
196
-
// but we have no way of detectng that with an external server ahead of time.
197
-
// If an earlier version is used, the attach will fail with warning about versions.
198
-
}elseif(debugConfiguration['port']){
189
+
if(
190
+
debugConfiguration.request==='attach'&&
191
+
debugConfiguration['mode']==='remote'&&
192
+
!extensionInfo.isPreview
193
+
){
199
194
this.showWarning(
200
-
'ignorePortUsedInDlvDapWarning',
201
-
"`port` with 'dlv-dap' debugAdapter connects to [an external `dlv dap` server](https://github.com/golang/vscode-go/blob/master/docs/debugging.md#running-debugee-externally) to launch a program or attach to a process. Remove 'host' and 'port' from your launch.json if you have not launched a 'dlv dap' server."
195
+
'ignoreDefaultDebugAdapterChangeWarning',
196
+
"We are using the 'dlv-dap' integration for remote debugging by default. Please comment on [issue 3096](https://github.com/golang/vscode-go/issues/3096) if this impacts your workflows."
'Legacy debug adapter is deprecated. Please comment on [issue 3096](https://github.com/golang/vscode-go/issues/3096) if this impacts your workflows.'
204
+
);
205
+
}
206
+
if(
207
+
debugConfiguration['debugAdapter']==='dlv-dap'&&
208
+
debugConfiguration.request==='launch'&&
209
+
debugConfiguration['port']
210
+
){
211
+
this.showWarning(
212
+
'ignorePortUsedInDlvDapWarning',
213
+
"`port` with 'dlv-dap' debugAdapter connects to [a `dlv dap` server](https://github.com/golang/vscode-go/wiki/debugging#run-debugee-externally) to launch a program or attach to a process. Remove 'host'/'port' from your launch.json configuration if you have not launched a 'dlv dap' server."
0 commit comments