Releases: PowerShell/PowerShellEditorServices
v3.0.0
v3.0.0
Thursday, October 28, 2021
This preview release includes a complete overhaul of the core PowerShell engine of PowerShell Editor Services. This represents over a year's work, tracked in PSES #1295 and implemented in PSES #1459, and is our answer to many, many issues opened by users over the last few years. We're hoping you'll see a marked improvement in the reliability, performance and footprint of the extension as a result.
Previously the Integrated Console was run by setting threadpool tasks on a shared main runspace, and where LSP servicing was done with PowerShell idle events. This lead to overhead, threading issues and a complex implementation intended to work around the asymmetry between PowerShell as a synchronous, single-threaded runtime and a language server as an asynchronous, multi-threaded service.
Now, PowerShell Editor Services maintains its own dedicated pipeline thread, which is able to service requests similar to JavaScript's event loop, meaning we can run everything synchronously on the correct thread. We also get more efficiency because we can directly call PowerShell APIs and code written in C# from this thread, without the overhead of a PowerShell pipeline.
This change has overhauled how we service LSP requests, how the Integrated Console works, how PSReadLine is integrated, how debugging is implemented, how remoting is handled, and a long tail of other features in PowerShell Editor Services.
Also, in making it, while 6,000 lines of code were added, we removed 12,000, for a more maintainable, more efficient and easier to understand extension backend.
While most of our testing has been re-enabled (and we're working on adding more), there are bound to be issues with this new implementation. Please give this a try and let us know if you run into anything.
We also want to thank @SeeminglyScience for his help and knowledge as we've made this migration.
Finally, a crude breakdown of the work from the commits:
- An initial dedicated pipeline thread consumer implementation
- Implement the console REPL
- Implement PSRL idle handling
- Implement completions
- Move to invoking PSRL as a C# delegate
- Implement cancellation and Ctrl+C
- Make F8 work again
- Ensure execution policy is set correctly
- Implement $PROFILE support
- Make nested prompts work
- Implement REPL debugging
- Implement remote debugging in the REPL
- Hook up the debugging UI
- Implement a new concurrent priority queue for PowerShell tasks
- Reimplement the REPL synchronously rather than on its own thread
- Really get debugging working...
- Implement DSC breakpoint support
- Reimplement legacy readline support
- Ensure stdio is still supported as an LSP transport
- Remove PowerShellContextService and other defunct code
- Get integration tests working again (and improve diagnosis of PSES failures)
- Get unit testing working again (except debug service tests)
v2.5.2
v2.5.2
Monday, October 18, 2021
- ✨ 👷 PowerShellEditorServices #1589 - Remove
BinClean
dependency from build task. (Thanks @JustinGrote!) - #️⃣ 🙏 PowerShellEditorServices #1585 - Setting to Disable Pester Code Lens. (Thanks @JustinGrote!)
- #️⃣ 🙏 PowerShellEditorServices #1578 - Fix typo in comments. (Thanks @glennsarti!)
v2.5.1
v2.5.1
Tuesday, September 07, 2021
- 🐛 📟 PowerShellEditorServices #840 - Implement
LengthInBufferCells
to fix ANSI formatting. (Thanks @SeeminglyScience!) - ✨ 🔍 vscode-powershell #3522 - Send
stopDebugger
notification when appropriate. - 🐛 🔍 vscode-powershell #3537 - Fix bug with
ExecuteScriptWithArgsAsync
whenscript
is a command.
v2.5.0
v2.5.0
Monday, August 30, 2021
- ✨ 🕵️ PowerShellEditorServices #1562 - Pin PSScriptAnalyzer to
1.20.0
, Plaster to1.1.3
and PSReadLine to2.1.0
.
v2.4.9
v2.4.9
Monday, August 23, 2021
- 🐛 🔍 vscode-powershell #3513 - Fix debugger regression where console needed input to start/continue.
v2.4.8
v2.4.8
Thursday, August 19, 2021
- 🐛 🛫 PowerShellEditorServices #1547 - Fix creation of
InitialSessionState
to useCreateDefault2()
. - ✨ 👷 PowerShellEditorServices #1544 - Explicitly disable implicit namespace imports.
- ✨ 👷 PowerShellEditorServices #1545 - Make
dotnet test
arguments configurable. - 🐛 ⏱️ vscode-powershell #3410 - Add regression test for
System.Windows.Forms
bug. - 🐛 👷 PowerShellEditorServices #1541 - Update C# language version to 10.0 to fix bug with .NET SDK 6 Preview 7.
- 🐛 🚨 PowerShellEditorServices #1442 - Fix tests in
Debugging/DebugServiceTests.cs
and simplify faulty script path logic. - ✨ 🔍 PowerShellEditorServices #1532 - Make
ExecuteCommandAsync
cancellable .
v2.4.7
v2.4.7
Tuesday, August 03, 2021
- ✨ 🔍 PowerShellEditorServices #1533 - Enable and fix many .NET Code Analysis warnings.
- ✨ 👷 PowerShellEditorServices #1530 - Update release and CI pipelines.
- ✨ 👷 PowerShellEditorServices #1528 - Automate entire release process.
- ✨ 🛫 PowerShellEditorServices #1527 - Add stack trace to resolve event handler on debug.
- ✨ 🛫 PowerShellEditorServices #1523 - Initialize runspaces with
InitialSessionState
object.
v2.4.6
v2.4.6
Tuesday, July 13, 2021
- ✨ 🚨 PowerShellEditorServices #1522 - Run new PSReadLine test on Windows.
- ✨ 📖 PowerShellEditorServices #1519 - Update README.md. (Thanks @vladdoster!)
- ✨ 🙏 PowerShellEditorServices #1493 - Load only bundled
PSReadLine
. - 🐛 👷 PowerShellEditorServices #1513 - Import
InvokePesterStub.ps1
fromvscode-powershell
(with history). - 🐛 🛫 PowerShellEditorServices #1503 - Handle
incomingSettings
andprofileObject
being null. (Thanks @dkattan!)
v2.4.5
v2.4.4
v2.4.4
Wednesday, June 16, 2021
- 🐛 PowerShellEditorServices #1495 - Prevent some exceptions.
- #️⃣ 🙏 vscode-powershell #3395 - Work around
dotnet publish
bug.