Skip to content

Code actions are not available in Zed #270

@rcjsuen

Description

@rcjsuen

image

connection.onCodeAction((codeActionParams: CodeActionParams): Command[] | PromiseLike<CodeAction[]> => {
if (applyEditSupport && codeActionParams.context.diagnostics.length > 0) {

Looks like we are a little over-aggressive here. Even if the client does not support workspace/applyEdit (which Zed does not), we can still just send code actions back with edit populated for the client to apply the edit locally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions