Skip to content

executeCommandProvider fails with 'semantic.refactor.command' already exists with multi-root servers  #607

@haifengkao

Description

@haifengkao

When I tried to start multiple sourcekit-lsp servers, the vscode shows 'semantic.refactor.command' already exists.
This issue is similar to #333, but I didn't call registerCommand. The registerCommand is called by the initialize function of client.ts. #333 says we should register command with uuid, but I didn't see client.ts doing the same thing.

I think client.ts should be patched

initialize(capabilities) {
        if (!capabilities.executeCommandProvider) {
            return;
        }
        this.register(this.messages, {
            id: UUID.generateUuid(),
            registerOptions: Object.assign({}, capabilities.executeCommandProvider)
        });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    info-neededIssue requires more information from poster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions