Skip to content

Bug: InsertCommand error from PowerShell Command Explorer #2793

Open
@CodIoT

Description

@CodIoT

System Details

System Details Output

### VSCode version: 1.47.0-insider 376d9d9d785ccca128fdbb16f001446d0ad64d32 x64

### VSCode extensions:
ms-dotnettools.dotnet-interactive-vscode@1.0.135202
ms-dotnettools.vscode-dotnet-runtime@0.1.2
ms-python.python@2020.7.91394-dev
ms-vscode-remote.remote-containers@0.126.0
ms-vscode-remote.remote-ssh-edit-nightly@2020.6.42660
ms-vscode-remote.remote-ssh-nightly@2020.6.42660
ms-vscode-remote.remote-wsl@0.44.4
ms-vscode-remote.vscode-remote-extensionpack@0.20.0
ms-vscode.powershell@2020.6.0
ms-vscode.powershell-preview@2020.6.1


### 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

Issue Description

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.

Expected Behaviour

-- Description of what should be happening --
I anticipate the selected command to be inserted at the cursor location in PowerShell Integrated Console.

Actual Behaviour

-- 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."

Attached Logs

Follow the instructions in the troubleshooting docs
about capturing and sending logs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions