microsoft / microsoft/vscode-languageserver-node

Support `isAI` property on `CodeAction`

Open
#1,555 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
TypeScript
Stars
1.8k
Forks
404
Avg merge
2d 8h
Merged PRs (30d)
14

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!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with client/src/common/protocolConverter.ts and the asCodeAction conversion mentioned in the issue. Read the codeActionAI proposal and inspect related protocol definitions and tests to determine where the property must be represented. Done means LSP CodeAction data can preserve isAI so VS Code can display the AI sparkle icon.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.