Skip to content

Commit

Permalink
Fix file watcher for Draft debug
Browse files Browse the repository at this point in the history
  • Loading branch information
radu-matei committed Apr 20, 2018
1 parent 3f8c439 commit 9a2ce06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export async function activate(context) : Promise<extensionapi.ExtensionAPI> {
// TODO - how do we make sure this doesn't affect all other debugging sessions?
// TODO - maybe check to see if `draft.toml` is present in the workspace
// TODO - check to make sure we enable this only when Draft is installed
if ((session != undefined) && (session.name != "draft")) {
if (session != undefined) {
draftDebugSession.customRequest("evaluate", {'draftUp': ''});
}
}
Expand All @@ -231,7 +231,7 @@ export async function activate(context) : Promise<extensionapi.ExtensionAPI> {
vscode.debug.onDidChangeActiveDebugSession((e: vscode.DebugSession)=> {
if (e != undefined) {
// keep a copy of the initial Draft debug session
if (e.name == "draft") {
if (e.name.indexOf('Draft') >= 0) {
draftDebugSession = e;
}
}
Expand Down

0 comments on commit 9a2ce06

Please sign in to comment.