PowerShell / vscode-powershell

Provides PowerShell language and debugging support for Visual Studio Code
https://marketplace.visualstudio.com/items/ms-vscode.PowerShell
MIT License
1.69k stars 486 forks source link

Test support for Powershell intellisense in Codepilot chat code blocks #5025

Open mjbvz opened 1 month ago

mjbvz commented 1 month ago

Prerequisites

Summary

VS Code recently enabled intellisense in copilot chat code blocks. Although this is mostly implemented in a language agnostic way, language extensions may need to make some changes to get the best support

For this exploration, I'd like your team's help testing out Powershell IntelliSense in copilot chat code blocks. I've provided a list of ideas on what to test below, however feel free to build on it. I've gone through them for JS/TS and found them to be a good starting point. You can also file feature request against VS Code for new feature ideas

Areas to test

Proposed Design

No response

JustinGrote commented 1 month ago

@mjbvz thanks! To be clear, the TextDocuments are submitted to the extension via the LSP correct? Does this require both vscode insiders and copilot preview to enable? Is there release notes or a related PR on this feature yet?

mjbvz commented 1 month ago

To be clear, the TextDocuments are submitted to the extension via the LSP correct?

Yes

The user facing feature was first documented here: https://code.visualstudio.com/updates/v1_90#_intellisense-in-chat-code-blocks. We're currently reaching out to individual languages to get them onboarded

Let me know if you run into any issues