System Details Output
### VSCode version: 1.47.0-insider 376d9d9d785ccca128fdbb16f001446d0ad64d32 x64
### VSCode extensions:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
### PSES version: 2.2.0.0
> $psEditor.EditorServicesVersion
Major Minor Build Revision
----- ----- ----- --------
2 2 0 0
### PowerShell version:
Name Value
---- -----
PSVersion 7.0.2
PSEdition Core
GitCommitId 7.0.2
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0鈥
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I am experiencing a problem with the Insert Command operation in "(Preview) PowerShell Command Explorer: PowerShell Commands" when focus is in the PowerShell Integrated Console and no file is open for editing.
-- Description of what should be happening --
I anticipate the selected command to be inserted at the cursor location in PowerShell Integrated Console.
-- Description of what actually happens --
Error popup shows,
"Error running command PowerShell.InsertCommand: Running the contributed command: 'PowerShell.InsertCommand' failed.. This is likely caused by the extension that contributes PowerShell.InsertCommand."
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
This would be because the insert code only expects it to be inserting into an editor window, and not the console. I suspect it's possible to detect which is active and take different actions based on which.
Most helpful comment
This would be because the insert code only expects it to be inserting into an editor window, and not the console. I suspect it's possible to detect which is active and take different actions based on which.