Skip to content

Conversation

@RodgeFu
Copy link
Contributor

@RodgeFu RodgeFu commented Dec 15, 2025

  1. add custom event 'custom/chatComplete' in vscode extension to expose the lm functionality
  2. add lmProvider in lsp as a proxy to consume the 'custom/chatComplete' event so that it can expose AI capability to other features when needed like linter by leveraging IDE's lm.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 15, 2025

Open in StackBlitz

npm i https://pkg.pr.new/microsoft/typespec/@typespec/compiler@9209
npm i https://pkg.pr.new/microsoft/typespec/typespec-vs@9209
npm i https://pkg.pr.new/microsoft/typespec/typespec-vscode@9209

commit: c51c060

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

All changed packages have been documented.

  • @typespec/compiler
  • typespec-vscode
Show changes

@typespec/compiler - internal ✏️

Expose LSP connection through globalThis.

typespec-vscode - internal ✏️

Add 'custom/chatComplete' custom event to expose Language Model chatComplete capability to LSP

@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 15, 2025

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@RodgeFu RodgeFu added the ide Issues for VS, VSCode, Monaco, etc. label Dec 15, 2025
@RodgeFu RodgeFu changed the title Lm from ide Add 'custom/chatCompletion' event in vscode extension and 'lmProvider' in lsp consuming it Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ide Issues for VS, VSCode, Monaco, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants