Commit 1a86fe6
Use AllocConsoleWithOptions(Default) for normal launches
Per DHowett's feedback: plain AllocConsole() overrides DETACHED_PROCESS
from the parent's CreateProcess call. AllocConsoleWithOptions with
Default mode respects it. Extract shared TryAllocConsoleWithMode() and
add TryAllocConsoleDefault() alongside TryAllocConsoleNoWindow().
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4b4a8ef commit 1a86fe6
File tree
2 files changed
+24
-2
lines changed- src
- Microsoft.PowerShell.ConsoleHost/host/msh
- System.Management.Automation/engine/Interop/Windows
2 files changed
+24
-2
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
177 | 183 | | |
178 | 184 | | |
179 | 185 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
66 | 82 | | |
67 | 83 | | |
68 | | - | |
| 84 | + | |
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
| |||
0 commit comments