Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is a PR for #1041. It is as simple as possible, basically exporting the
VsCodeExtension
instance to be usable by other extensions.This could for example be used to directly communicate with the models (e.g. via
model.streamChat
etc.) or to communicate with the chat webview, for example:I believe it is currently ok to export the
VsCodeExtension
instance, despite giving full access to internals ofcontinue
, in order to figure out what features are actually useful for other extension authors. Later on, theinstance
property should be deprecated in favor of a better designed external API.Maybe the author of #803 could make use of this simple API, too, instead of adding the proposed functionality to
continue
itself.For a better Typescript experience, the types of the API should also be exposed as an npm package.
Checklist
preview
, rather thanmain