-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Proposed API codeActionAI
#24068
Comments
This is not so straight forward. We will need to pin engine version, after it is enabled. |
I’ve sent PRs to add it to LSP. By PRs sent in |
What I mean by my above comment is you can now submit PRs to enable proposed APIs for |
Thanks Karthik! When you say "enabled for the Python extension", you mean that the proposed API has been enabled for use by the Python extension in the STABLE version of VSCode right? Luciana mentioned a A follow-up question: If my interpretation above is correct, would the Last question:) We usually update the engine when the LSP requirements change. What’s the worst-case scenario if we don’t update the engine? Would it be that users with older versions of VSCode see the regular light bulb icon, while those with the latest version see the sparkle icon? |
That is correct. I updated the distro.
This only affects at the extension level, not at the package level. So, it should be fine as long as the extension where the client or the server is created is opted in.
Worst-case scenario (other than crash) is what you mentioned. They won't get the new behavior. |
Addresses #24068 - Enable proposed APIs for `codeActionAI` - Pin the engine to `1.94.0-20240913`
Addresses microsoft#24068 - Enable proposed APIs for `codeActionAI` - Pin the engine to `1.94.0-20240913`
Addresses microsoft#24068 - Enable proposed APIs for `codeActionAI` - Pin the engine to `1.94.0-20240913`
@StellaHuang95 Can you verify that this is now working as expected for you? |
I am waiting for the change in LSP to go through, I can verify and let you know if it doesn't work once LSP supports it. |
The Typescript team has added Copilot suggestions to various refactors. 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 totrue
on thecodeAction
.Vscode-python and LSP doesn't support this API yet. Would it be possible for vscode-python to enable the codeActionAI proposed API?
Is it as simple as adding
"codeActionAI"
to the"enabledApiProposals"
inpackage.json
? I'd be happy to send a PR if that's all it takes. Thanks!The text was updated successfully, but these errors were encountered: