@@ -18,12 +18,11 @@ import {
18
18
promptForUpdatingTool ,
19
19
shouldUpdateTool
20
20
} from './goInstallTools' ;
21
- import { isInPreviewMode } from './goLanguageServer' ;
22
21
import { packagePathToGoModPathMap } from './goModules' ;
23
22
import { getTool , getToolAtVersion } from './goTools' ;
24
23
import { pickProcess , pickProcessByName } from './pickProcess' ;
25
24
import { getFromGlobalState , updateGlobalState } from './stateUtils' ;
26
- import { getBinPath , getGoVersion , getWorkspaceFolderPath , resolvePath } from './util' ;
25
+ import { getBinPath , getGoVersion } from './util' ;
27
26
import { parseEnvFiles } from './utils/envUtils' ;
28
27
import { resolveHomeDir } from './utils/pathUtils' ;
29
28
@@ -155,10 +154,8 @@ export class GoDebugConfigurationProvider implements vscode.DebugConfigurationPr
155
154
}
156
155
}
157
156
if ( ! debugConfiguration [ 'debugAdapter' ] ) {
158
- // for nightly/dev mode, default to dlv-dap.
159
- // TODO(hyangah): when we switch the stable version's default to 'dlv-dap', adjust this.
160
- debugConfiguration [ 'debugAdapter' ] =
161
- isInPreviewMode ( ) && debugConfiguration [ 'mode' ] !== 'remote' ? 'dlv-dap' : 'legacy' ;
157
+ // for local mode, default to dlv-dap.
158
+ debugConfiguration [ 'debugAdapter' ] = debugConfiguration [ 'mode' ] !== 'remote' ? 'dlv-dap' : 'legacy' ;
162
159
}
163
160
if ( debugConfiguration [ 'debugAdapter' ] === 'dlv-dap' && debugConfiguration [ 'mode' ] === 'remote' ) {
164
161
this . showWarning (
0 commit comments