Skip to content

Commit fb6f85c

Browse files
committed
Move event registration to before startDebugging
1 parent d1c4a2f commit fb6f85c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/features/DebugSession.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ describe("DebugSessionFeature E2E", function slowTests() {
472472
range: new Range(26, 0, 26, 0) //BeginProcessing
473473
})
474474
]);
475-
const debugStarted = await debug.startDebugging(undefined, launchScriptConfig);
476475
// HACK: Could not find a way to detect a breakpoint hit directly, but we can detect if the editor view changes to our breakpointed file.
477476
let editorChanged: () => void;
478477
let activeEditorChangedToCmdletSourcePath = false;
@@ -489,6 +488,7 @@ describe("DebugSessionFeature E2E", function slowTests() {
489488
console.log(`${editor?.document.uri.path} doesn't match ${cmdletSourcePath.path}`);
490489
}
491490
});
491+
const debugStarted = await debug.startDebugging(undefined, launchScriptConfig);
492492
console.log(debug.breakpoints);
493493
console.log("Waiting for editor change");
494494
await waitForEditorChange();

0 commit comments

Comments
 (0)