Skip to content

Splatting command broken due to Omnisharp? #54

Description

@bergmeister

Using EditorServicesCommandSuite 1.0.0-beta1 with PowerShell 7.1-preview, and RTM version of VS-Code and the Powershell extension,
Placing the cursor on a line like e.g. $runtime = Get-AzDataFactoryV2IntegrationRuntime -DataFactoryName (Get-AzDataFactoryV2 -ResourceGroupName $resourceGroupName).DataFactoryName -ResourceGroupName $resourceGroupName
Then importing the editor suite as:

Import-Module EditorServicesCommandSuite
Import-EditorCommand -Module EditorServicesCommandSuite

Then having the cursor at the end of the line that I want to splat and select the editor command to splat (any of the 3 options). It fails with this error:

Line |
 337 |        $__cmdletization_objectModelWrapper.ProcessRecord($__cmdletizat …
     |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Exception calling "ProcessRecord" with "1" argument(s): "Method not found: 'Void OmniSharp.Extensions.LanguageServer.Protocol.Models.TextDocumentEdit.set_Edits(OmniSharp.Extensions.LanguageniSharp.Extensions.LanguageServer.Protocol.Models.Container`1<OmniSharp.Extensions.LanguageServer.Protocol.Models.TextEdit>)'."
ParentContainsErrorRecordException:

Somehow the Omnisharp extension seems to have its fingers in it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions