-
Notifications
You must be signed in to change notification settings - Fork 520
Commit bb545ab
authored
First approach to fix issue with dbg/run start before PSES running (#1436)
Fix #1433
One minor issue is that if you abort (return null|undefined) from
resolveDebugConfiguration, VSCode "helpfully" opens your launch.json
file for you. Actually, that is quite annoying. I found an issue and on
this and voted it up - microsoft/vscode#54213
Also fix logic for "attach" error. We only need to test if
OS != Windows. If on Windows, PS Core supports attach. And tweaked the
error message wording to make more clear.
If the user attempts to start a dgb or "run with out debugging" session
before PSES is running, a NullRefEx occurs in PSES. Ideally, we would
wait in the resolveDebugConfiguration method for PSES to finish
initializing with a max wait time of say 10 seconds. Unfortunately,
"sleep" in a loop in JavaScript is not so easy. AFAIT requires a
significant rewrite of the method using setTimeout(). Not sure it is
worth it, unless someone more knowledgable in JS can find an easy
way to do the poll (for sessionstatus)/sleep loop.
BTW there is probably a fix we need to make in PSES to check if
SynchronizationContext is not null before we try to use it.1 parent b4a66c3 commit bb545ab
2 files changed
+15
-5
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | - | ||
12 | + | ||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
51 | 59 |
| |
52 | 60 |
| |
53 | 61 |
| |
| |||
60 | 68 |
| |
61 | 69 |
| |
62 | 70 |
| |
63 | - | ||
64 | - | ||
65 | - | ||
66 | - | ||
71 | + | ||
72 | + | ||
67 | 73 |
| |
68 | 74 |
| |
69 | 75 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
225 | 229 |
| |
226 | 230 |
| |
227 | 231 |
| |
|
0 commit comments