Commit 0866b10
committed
Don't send empty environment vars when not Windows PowerShell dev build
This change fixes an issue where $env:PROCESSOR_ARCHITECTURE is not being
set properly in the language server's powershell.exe process which caused
an exception when gathering that variable. The problem was caused by the
environment variable setting behavior when the Windows PowerShell
developer build setting is set to false. In this case, an empty
environment variable object was being passed to the process, effectively
clearing its environment variables.
This is one half of the fix to PowerShell/PowerShellEditorServices#346.1 parent 790e316 commit 0866b10
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
257 | 268 | | |
258 | 269 | | |
259 | 270 | | |
260 | 271 | | |
261 | 272 | | |
262 | | - | |
| 273 | + | |
263 | 274 | | |
264 | 275 | | |
265 | 276 | | |
| |||
545 | 556 | | |
546 | 557 | | |
547 | 558 | | |
| 559 | + | |
| 560 | + | |
548 | 561 | | |
549 | | - | |
| 562 | + | |
550 | 563 | | |
551 | | - | |
| 564 | + | |
552 | 565 | | |
553 | 566 | | |
554 | 567 | | |
555 | 568 | | |
556 | | - | |
| 569 | + | |
557 | 570 | | |
558 | 571 | | |
559 | 572 | | |
| |||
0 commit comments