You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace old build script to build from more granular include scripts.
Simplify parameters:
Drop dot-sourcing option.
Only allow scope selection for CurrentUser/AllUsers. Determine CurrentHost/AllHosts in the script if variants are necessary.
Add an option to just output the generated profile script without updating the profile itself.
Prepare for conditional includes targeting Windows PowerShell 5.1 vs. PowerShell.
Write generated profile only if changed.
Add key bindings for PSReadLine. Note that a fixed version of PSReadline is included with the VSCode PowerShell extensions and cannot be updated to the latest version.
However, it is possible to copy the latest version from the original module path to %USERPROFILE%/.vscode/extensions/ms-vscode.powershell-2023.6.0/modules/PSReadLine". This forces the extension to use the new version. Whether this may have any side effects is a different matter. EDIT: As of 2023.8.0, the extension uses 2.3.4 by default.
Simplify parameters:
CurrentUser/AllUsers. DetermineCurrentHost/AllHostsin the script if variants are necessary.However, it is possible to copy the latest version from the original module path to
%USERPROFILE%/.vscode/extensions/ms-vscode.powershell-2023.6.0/modules/PSReadLine". This forces the extension to use the new version. Whether this may have any side effects is a different matter. EDIT: As of 2023.8.0, the extension uses 2.3.4 by default.$ErrorActionPreference = 'Stop',Set-StrictMode -Version 3