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

Commit

Permalink
Fix crash in start without debugging scenario (#2314)
Browse files Browse the repository at this point in the history
In CTRL-F5 scenario delve isn't running so don't try to halt it.
  • Loading branch information
jhendrixMSFT authored and ramya-rao-a committed Feb 15, 2019
1 parent 810d3b2 commit 405fc59
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/debugAdapter/goDebug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,10 @@ class Delve {
}

close(): Thenable<void> {
if (this.noDebug) {
// delve isn't running so no need to halt
return Promise.resolve();
}
log('HaltRequest');

return new Promise(resolve => {
Expand Down

0 comments on commit 405fc59

Please sign in to comment.