The Typescript team has [added Copilot suggestions](https://github.com/microsoft/vscode/pull/192602) to various refactors in VS Code. To bring similar functionality to python code, Pylance has enabled the [implement inherited abstract classes with Copilot](https://github.com/microsoft/pyrx/issues/5533) 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](https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.proposed.codeActionAI.d.ts) needs to be set to `true` on the `codeAction`.  LSP doesn't support this API yet. Would it be possible for LSP to support the [codeActionAI](https://github.com/microsoft/vscode/blob/main/src/vscode-dts/vscode.proposed.codeActionAI.d.ts) proposed API? Is it as simple as adding the conversion logic to `asCodeAction` in [`protocolConverter.js`](https://github.com/microsoft/vscode-languageserver-node/blob/f58f4dff16ad2760028bb1cb95e882de30a1000f/client/src/common/protocolConverter.ts#L1013)? I'd be happy to send a PR if that's all it takes. Thanks!
Activity
dbaeumer commentedon Sep 9, 2024
There is actually more to it:
isAI. May may bellmGeneratedHappy to help if you want to work on a PR for here and https://github.com/microsoft/language-server-protocol
StellaHuang95 commentedon Sep 13, 2024
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