microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.7k stars 768 forks source link

Support `isAI` property on `CodeAction` #6388

Open StellaHuang95 opened 1 week ago

StellaHuang95 commented 1 week ago

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

StellaHuang95 commented 1 week ago

Issues created at vscode-languageserver-node and vscode-python repos:

PRs sent in vscode-languageserver-node and language-server-protocol:

PR sent in vscode-python:

StellaHuang95 commented 3 days ago

Next step would be after LSP ships it, implement it in Pylance.