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
@RodgeFu RodgeFu requested a review from timotheeguerin January 7, 2026 03:54
@RodgeFu RodgeFu added this pull request to the merge queue Jan 8, 2026
Merged via the queue into microsoft:main with commit 1a5e1e6 Jan 8, 2026
27 checks passed
@RodgeFu RodgeFu deleted the lm-from-ide branch January 8, 2026 03:32
@microsoft-github-policy-service microsoft-github-policy-service bot added the compiler:core Issues for @typespec/compiler label Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler:core Issues for @typespec/compiler ide Issues for VS, VSCode, Monaco, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants