diff --git a/package.json b/package.json index c673099ca..4413c9307 100644 --- a/package.json +++ b/package.json @@ -491,7 +491,7 @@ "useApiV1": { "type": "boolean", "description": "If true, the v1 of delve apis will be used, else v2 will be used", - "default": true + "default": false } } } @@ -1153,7 +1153,7 @@ "useApiV1": { "type": "boolean", "description": "If true, the v1 of delve apis will be used, else v2 will be used", - "default": true + "default": false } }, "scope": "resource" diff --git a/src/debugAdapter/goDebug.ts b/src/debugAdapter/goDebug.ts index 6228da103..0297c8048 100644 --- a/src/debugAdapter/goDebug.ts +++ b/src/debugAdapter/goDebug.ts @@ -261,7 +261,7 @@ class Delve { constructor(remotePath: string, port: number, host: string, program: string, launchArgs: LaunchRequestArguments) { this.program = normalizePath(program); this.remotePath = remotePath; - this.isApiV1 = typeof launchArgs.useApiV1 === 'boolean' ? launchArgs.useApiV1 : true; + this.isApiV1 = typeof launchArgs.useApiV1 === 'boolean' ? launchArgs.useApiV1 : false; let mode = launchArgs.mode; let dlvCwd = dirname(program); let isProgramDirectory = false;