You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve sent PRs to add it to LSP. By pin engine version, do you mean updating the Python extension to use the new LSP client after the changes are shipped?
PRs sent in vscode-languageserver-node and language-server-protocol:
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 vscode-distro repo to me, but I don't have access to it, so I'm unclear if that’s where the change was made and what its purpose is.
A follow-up question: If my interpretation above is correct, would the isAI change in LSP potentially cause issues or crashes for other vscode-languageserver-node consumers that do not support this proposed API in stable?
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?
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 vscode-distro repo to me, but I don't have access to it, so I'm unclear if that’s where the change was made and what its purpose is.
That is correct. I updated the distro.
A follow-up question: If my interpretation above is correct, would the isAI change in LSP potentially cause issues or crashes for other vscode-languageserver-node consumers that do not support this proposed API in stable?
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.
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?
Worst-case scenario (other than crash) is what you mentioned. They won't get the new behavior.
Activity
karthiknadig commentedon Sep 9, 2024
This is not so straight forward. We will need to pin engine version, after it is enabled.
StellaHuang95 commentedon Sep 13, 2024
I’ve sent PRs to add it to LSP. By
pin engine version, do you mean updating the Python extension to use the new LSP client after the changes are shipped?PRs sent in
vscode-languageserver-nodeandlanguage-server-protocol:llmGeneratedproperty onCodeActionvscode-languageserver-node#1557llmGeneratedproperty onCodeActionlanguage-server-protocol#2020karthiknadig commentedon Sep 13, 2024
Since this is proposed API, stable can't use it directly. I have enabled it for python extension:

You will need to pin the engine to latest VS Code. engine format:
1.94.0-20240913(assuming you want to pin to todays build of VS Code).karthiknadig commentedon Sep 13, 2024
What I mean by my above comment is you can now submit PRs to enable proposed APIs for
codeActionAIand it should work on stable.StellaHuang95 commentedon Sep 13, 2024
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
vscode-distrorepo to me, but I don't have access to it, so I'm unclear if that’s where the change was made and what its purpose is.A follow-up question: If my interpretation above is correct, would the
isAIchange in LSP potentially cause issues or crashes for othervscode-languageserver-nodeconsumers that do not support this proposed API in stable?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?
karthiknadig commentedon Sep 13, 2024
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.
Enable proposed APIs for `codeActionAI` (#24108)
Enable proposed APIs for `codeActionAI` (microsoft#24108)
Enable proposed APIs for `codeActionAI` (microsoft#24108)
karthiknadig commentedon Sep 23, 2024
Stella Huang (@StellaHuang95) Can you verify that this is now working as expected for you?
StellaHuang95 commentedon Sep 23, 2024
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.