Skip to content

Class constructor code action #89

Closed

Description

@Stehsaer

What you are trying to do

Add support for class code actions. This is a useful feature present in original clangd, but not yet supported by mcppls 0.22.0

clangd:
image

mcppls 0.22.0:
image

What you would like

No response

Editor

Vscode

Build system

xmake

Activity

  1. added
    enhancement
    on Nov 12, 2026
  2. speak-agent commented on Nov 13, 2026

    @speak-agent
    Contributor

    Fixed in v0.23.0.

    The bundled clangd image was linked without clangd's refactorings, so every code action request got only diagnostic fixes. 0.23.0 ships engine 23.1.0-mcppls.12 (mcppls-clangd 0.0.23), which links them.

    Verified with the published package: on a class name it offers "Define constructor" and "Declare implicit copy/move members", on auto "Replace with deduced type", and on a selected expression "Extract subexpression to variable" / "Swap operands". Each one applies its edit. 0.22.0 returns nothing at the same positions.

  3. Sunrisepeak commented on Nov 13, 2026

    @Sunrisepeak
    Owner

    最新版本已支持

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions