Skip to content

LSPs can cause multiple command registration error #1684

Closed
@gorkem

Description

A language server needs to register a command if it wants to use it as part of the menus and assign a shortcut. This is done with a CommandContribution and the command is registered at the start. If the LSP registers the same command via registerCapability for use with workspace/executeCommand calls an Error is generated for a duplicate command registration.

Metadata

Assignees

Labels

lsplanguage server protocol

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions