Support `isAI` property on `CodeAction` · Issue #1555 · microsoft/vscode-languageserver-node · GitHub
Skip to content

Support isAI property on CodeAction #1555

Open

Description

The Typescript team has added Copilot suggestions to various refactors in VS Code. To bring similar functionality to python code, Pylance has enabled the implement inherited abstract classes with Copilot code action through the Github Copilot extension for Python files.

To display the sparkle icon for the code action instead of the regular light bulb icon, the isAI property needs to be set to true on the codeAction.

Image

LSP doesn't support this API yet. Would it be possible for LSP to support the codeActionAI proposed API?

Is it as simple as adding the conversion logic to asCodeAction in protocolConverter.js? I'd be happy to send a PR if that's all it takes. Thanks!

Activity

  1. dbaeumer commented on Sep 9, 2024

    @dbaeumer
    Member

    There is actually more to it:

    Happy to help if you want to work on a PR for here and https://github.com/microsoft/language-server-protocol

  2. StellaHuang95 commented on Sep 13, 2024

    @StellaHuang95
    ContributorAuthor

    Dirk Bäumer (@dbaeumer) I sent both PRs, let me know if you have any feedback. Thanks for the help😊

    PRs are at:
    #1557
    microsoft/language-server-protocol#2020

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

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions