PowerShell / PowerShellEditorServices

A common platform for PowerShell development support in any editor or application!
MIT License
616 stars 209 forks source link

Import `PSDesiredStateConfiguration` by name #2062

Closed andyleejordan closed 10 months ago

andyleejordan commented 10 months ago

Resolve https://github.com/PowerShell/vscode-powershell/issues/3971.

Import PSDesiredStateConfiguration by name, not by hard-coded path, and clean-up some inconsistencies.

kborowinski commented 10 months ago

@andyleejordan @SeeminglyScience This causes the progress bar to show up on console and stay on after module import, when using interactive debug session on PowerShell 5.1:

Animation

Could it be disabled with $ProgressPreference = "SilentlyContinue"?

andyleejordan commented 10 months ago

@kborowinski yes it can and seems to work well: https://github.com/PowerShell/PowerShellEditorServices/pull/2068

andyleejordan commented 10 months ago

@kborowinski I had to redo that with https://github.com/PowerShell/PowerShellEditorServices/pull/2081 after further investigation. Glad I tested better before I released!

kborowinski commented 10 months ago

@andyleejordan Good find Andy!