According to @mklement, you should not actually see this issue in the PowerShell Integrated Console, but the workaround is the same regardless of which console host you are using; if you get the warning just import PSReadLine
to restore the functionality of PSReadLine
, and the easiest way to make this happen is to add the Import-Module PSReadLine
to your PowerShell profile.
In the PowerShell Integrated Console, run:
code $profile
to open your VS Code PowerShell Profile (it is different by default than your standard $profile
location in other terminals). Then put:
Import-Module PSReadLine
at the top, and Save
. Now you can close and reopen your PowerShell Integrated Console, or type:
. $profile
to get the latest $profile
code updated in your current session.
Note that the PowerShell Integrated Console is different from a regular PowerShell terminal. This session controls the PowerShell session used internally by the VSCode PowerShell extension. If you get this in one of the integrated terminals using an external PowerShell session (not the PowerShell Integrated Console), just add the module import to one of the standard $profile
locations.