Skip to content

Remove "test" ExecuteCommandOption #10094

@limarkxx

Description

@limarkxx

At https://github.com/vimeo/psalm/blob/master/src/Psalm/Internal/LanguageServer/LanguageServer.php#L422
there is $serverCapabilities->executeCommandProvider = new ExecuteCommandOptions(['test']);, what appears to be a test-call of the workspace/executeCommand LSP feature.
This doesn't affect the first LSP in VSCode, but if you have multiple instances the subsequent LSP clients fail during initialization with

[Error - 9:23:14 PM] Server initialization failed.
Error: command 'test' already exists
	at a.registerCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:102:76383)
	at Object.registerCommand (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:120:20180)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions