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

Commit

Permalink
Set workspaceroot as default for program attr
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Feb 3, 2017
1 parent e4e7eb1 commit 38331b7
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 @@ -174,8 +174,8 @@
"properties": {
"program": {
"type": "string",
"description": "Workspace relative path to the program folder (or any file within that folder) when in 'debug' or 'test' mode, and to the pre-built binary file to debug in 'exec' mode.",
"default": "."
"description": "Path to the program folder (or any file within that folder) when in 'debug' or 'test' mode, and to the pre-built binary file to debug in 'exec' mode.",
"default": "${workspaceRoot}"
},
"mode": {
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class Delve {
let dlv = getBinPathWithPreferredGopath('dlv', env['GOPATH']);

if (!existsSync(dlv)) {
verbose(`Couldnt find dlv at ${process.env["GOPATH"]}${env['GOPATH'] ? ", " + env['GOPATH'] : ""} or ${process.env["PATH"]}`);
verbose(`Couldnt find dlv at ${process.env['GOPATH']}${env['GOPATH'] ? ', ' + env['GOPATH'] : ''} or ${process.env['PATH']}`);
return reject(`Cannot find Delve debugger. Ensure it is in your "GOPATH/bin" or "PATH".`);
}
verbose('Using dlv at: ' + dlv);
Expand Down

0 comments on commit 38331b7

Please sign in to comment.