Skip to content

Conversation

chrmarti
Copy link
Collaborator

@chrmarti chrmarti commented Oct 15, 2025

WIP for including inline completions in @vscode/chat-lib.

Initially we might be able to just reexport getInlineCompletions from the library because that expects objects of types the CLS also has. I have updated the extraction script to also follow #lib/ and similar imports.

Setup:

git clone -b completions-port https://github.com/microsoft/vscode-copilot-completions src/extension/completions-core

Extract and compile:

npm run extract-chat-lib

This currently shows compile errors. One issue appears to be that the completions code reaches back to #bridges/ which then reaches into completions extension code. The extraction script follows all these code references and ends up extracting extension code we don't need in the library and that doesn't compile without the VS Code API. Maybe the direct references to #bridges/ can be avoided.

Once it compiles, tests can be run:

(cd chat-lib && npm run build && npm run test)

@chrmarti chrmarti self-assigned this Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants