Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Use v2 delve apis by default #1876
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Sep 10, 2018
1 parent ef08514 commit e8f8de1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e8f8de1

Please sign in to comment.