Commit Graph

957 Commits

Author SHA1 Message Date
Rob Lourens
50a6f4f200 Delete deprecated chat API (#210199)
* Add Chat content 'vulnerabilities' to chat response stream

* Remove 'report' chat progress API and more cleanup

* Remove ChatProgress entirely

* Get participant detection into the new stream as well
2024-04-11 18:53:15 -07:00
Rob Lourens
ea3d0c410f Clean up InteractiveSessionProvider stub
now that vscode-copilot has adopted it
2024-04-09 18:49:35 -07:00
Daniel Imms
f4909e054f Implement most of command line confidence API
Part of #145234
2024-04-09 05:25:47 -07:00
Rob Lourens
ed6c6d3f28 Kill "interactive session provider" DEAD (#209700)
* Reduce chat provider usage

* Clear out IChat props

* Delete interactive session provider API

* Totally remove static chat provider registration

* Clean up onDidRegisterProvider events

* Remove provider ID references from model

* Eliminate many 'providerId' references

* Simplify view registration

* Clean up participant-specific actions

* Delete getProviderInfos

* Rename context key

* Fix tests

* Fix action label

* Fix view title

* Fix test

* Fix test

* Fix integration test

* Remove more providerId

* Add API stub to make this compatible with the existing Copilot Chat
2024-04-07 21:06:43 -07:00
Matt Bierner
8c363b460b Merge and cleanup drop and paste proposal (#209591)
These two proposals overlap a lot and will be finalized together
2024-04-05 13:03:10 -07:00
Connor Peet
3c28146797 testing: remove back compat shims for coverage API (#209559)
Now that the API is finalized, remove the back compat shims that were in place
2024-04-04 19:46:32 +02:00
Johannes Rieken
a52d0d95df Merge pull request #209529 from microsoft/joh/overseas-cougar
Add support for `ChatResponseTextEditPart`
2024-04-04 15:39:39 +02:00
Justin Chen
140f3b2694 removing issue reporter API (#209125)
* first snap

* sent the comments to the shadow realm

* one comment we forgot to remove :(
2024-04-04 04:23:23 -07:00
Johannes
cf0038479e support vscode.ChatResponseTextEditPart and support rendering of text edits in chat widget (using the diff editor) 2024-04-03 18:19:22 +02:00
Rob Lourens
5bb0f37c27 Remove 'session' from transfer API (#209204) 2024-03-31 21:39:41 +02:00
Daniel Imms
733b8aa6c0 Merge pull request #208257 from microsoft/tyriar/145234
Terminal shell integration proposed api
2024-03-21 12:40:59 -07:00
Rob Lourens
042c0893d9 Handle duplicate chat participant names (#208142)
* Enable duplicate chat participant names
#208103

* Register participants with an ID

* Update participant history in API

* Changes to dupe chat suggest widget, and fix serialize/deserialize

* Tweaks

* Test fixes

* Fix tests

* Test fixes

* Fix integration test
2024-03-20 16:44:03 -07:00
Daniel Imms
c5930297cf Hook up most of shell execution 2024-03-20 15:30:29 -07:00
Daniel Imms
765f113293 Create shell integration ext host service 2024-03-20 15:01:58 -07:00
Daniel Imms
b07b0ac2ba Compiling with terminalShellIntegration proposal
Part of #145234
2024-03-20 12:23:25 -07:00
Connor Peet
11865e1367 testing: rename coveredcount->testcoveragecount, fix file hierarchy (#208110)
Fixes #208056
2024-03-19 18:58:10 +01:00
Logan Ramos
98968c0b0a Introduce text multi diff (#207747) 2024-03-14 19:37:34 +01:00
Alex Ross
3c1caff66c Display outdated comments differently in the Comments view (#207410) 2024-03-13 14:37:46 +01:00
Johannes
ff2eec9859 Merge branch 'main' into joh/honest-cephalopod 2024-03-12 16:03:11 +01:00
Matt Bierner
091987d943 Update paste and drop proposals (#206496)
* Update paste and drop proposals

Reworks the document paste and drop API proposals. Main highlights:

- Align more with code action api
- Allow a single paste provider to return multiple edits
- Allow resolving applied edits lazily
- Switch from using ids to scoped kinds like used for code actions

* Adding paste context

* Add context

* Update test
2024-03-07 16:04:36 -08:00
Johannes
e4bae6cad6 Merge branch 'main' into joh/honest-cephalopod 2024-03-07 12:10:55 +01:00
Connor Peet
5cbe2b9646 debug: tighten down debugFocus API proposal (#207006)
* debug: tighten down debugFocus API proposal

Some bug fixes and reworking to align better with our APIs

* fix getter error
2024-03-06 22:58:09 +01:00
Johannes
85af13471d add ChatLocation so that chat participants can contribute to terminal chat 2024-03-06 19:12:11 +01:00
Marcus Revaj
0bfc1dbb62 # Add partial accept kind to inline completion handle (#202668)
* # Add partial accept kind to inline completion handle

---------

Co-authored-by: Henning Dieterichs <hdieterichs@microsoft.com>
2024-03-04 16:05:28 +00:00
Johannes Rieken
595efea648 use document object identity and not uri equality when checking if a document belongs to a notebook (#206778)
https://github.com/microsoft/vscode/issues/206487
2024-03-04 12:28:36 +01:00
Rob Lourens
2752932c07 Remove sendInteractiveRequestToProvider from interactive API (#206623)
* Remove `sendInteractiveRequestToProvider` from interactive API

* Fixes
2024-03-01 07:41:22 -08:00
Tyler James Leonhardt
be59ec51ee Add learnMore proposed API to forceNewSession (#206588)
ref https://github.com/microsoft/vscode/issues/206587
2024-03-01 05:02:41 -08:00
Johannes Rieken
763df0e037 add ExtensionContent#languageModelAccessInformation (#206420)
* makes ExtHostAuth and ExtHostLM injectable
* (hack) makes silents auth requests for all extension upon LM registration

https://github.com/microsoft/vscode/issues/206265
2024-02-28 11:55:19 +01:00
Johannes Rieken
8fd15a8634 add LanguageModelError-type (#206361)
https://github.com/microsoft/vscode/issues/206265
2024-02-27 18:50:12 +01:00
Johannes Rieken
4f0e2a843f refine language model (#206358)
* api - use `LanguageModelChat` prefix for messages and response, add todos

* update todos, tweak how `chatRequest` errors, remove `LanguageModelChatResponse#result`

* api - refine language model access

removes `requestLanguageModelAccess`,
removes `LanguageModelChatResponse#result`,
adds `LanguageModelChatRequestOptions`,
refines how errors happen when making a chat request

* use `throw` over Promise.reject

* don't error from `_getAuthAccess`, polish error messages

* rename to `sendChatRequest`
2024-02-27 18:14:05 +01:00
Andrea Mah
8950c52e08 progress on AI TextSearchProvider (#205319)
These are the initial steps to having an API to contribute AI text results.
2024-02-27 08:10:08 -08:00
Johannes Rieken
20f1afb291 api - update todos, rename makeChatRequest (#206240) 2024-02-26 14:40:58 +01:00
Johannes Rieken
529e73d71b api - sketch up vscode.lm.makeChatRequest alternative to requesting chat access (#206088)
re https://github.com/microsoft/vscode/issues/205800
2024-02-23 15:15:06 +01:00
Johannes Rieken
13d3452a5c chore - rename chatProvider-files to languageModel (#206054)
chore - rename chatProvider-file to languageModel
2024-02-23 11:33:58 +01:00
Rob Lourens
01ce8d869e More chat participant API comments (#205617)
More docs
2024-02-19 17:02:24 -08:00
Rob Lourens
efc04b885e New proposal for chat variable resolver (#205572)
* Tweak ChatFollowup

* Remove API TODOs

* New proposal for chat variable resolver

* Bump distro

* Enforce same-extension followup

* Add participant proposal to integration test folder

* Allow no participant for a followup
2024-02-19 20:52:19 +01:00
Rob Lourens
05bf957b31 Rename the chat agent API to "participant" (#205477)
* Start renaming chat API from "agent" to "participant"

* Rename the rest of the API

* Rename in integration test

* Update integration test api proposals

* Bump distro
2024-02-19 14:53:58 +01:00
Henning Dieterichs
ad35b73352 Inline Edits (#204158)
* implementation of inline edits

---------

Co-authored-by: Krzysztof Cieslak <krzysztof_cieslak@windowslive.com>
Co-authored-by: Andrew Rice <acr31@github.com>
2024-02-16 16:16:05 +01:00
Johannes Rieken
b28c2debc5 fix https://github.com/microsoft/vscode/issues/202232 (#205351) 2024-02-16 11:02:03 +01:00
Johannes Rieken
4c06e3f867 rename proposal from chatRequestAccess to languageModels, move into new lm namespace (#205272)
* rename proposal from `chatRequestAccess` to `languageModels`, move into new `lm` namespace

https://github.com/microsoft/vscode/issues/199908

* fix itests
2024-02-15 12:02:08 +01:00
Johannes Rieken
20501b7a4e Chat API updates (#205184)
* api - remove unused types, add jsdoc, make request handler setable (for consistency), more readonly usage

https://github.com/microsoft/vscode/issues/199908

* remove ChatMessage and Role

* fix a ton of compile errors...

* jsdoc
2024-02-14 12:19:03 +01:00
Tyler James Leonhardt
702a1ffd58 Access tweaks for requestLanguageModelAccess (#205156)
1. remove the requirement that it has to be done during agent invocation
2. don't ask for auth when the model provider and the model requester are the same extension
3. since we don't have "language model activation events" start with a simple 3*2s timeout poll to wait for the language model registration to happen. (scenario: an extension activates before the extension that registers the model activates)
2024-02-13 16:15:48 -08:00
Ulugbek Abdullaev
8bec045945 rename suggestions: migrate to using list widget 2024-02-14 00:48:29 +01:00
Connor Peet
a2c91f1f28 debug: update visualizers tree proposal, some initial implementation (#204877) 2024-02-13 18:22:06 +01:00
Johannes
72d1ad1be8 remove ChatMessage and add types LanguageModelMessage types so that they can evolve at their own pace
https://github.com/microsoft/vscode/issues/199908
2024-02-13 15:42:19 +01:00
Tyler James Leonhardt
656e26c80f One auth provider per-extension (#205049)
This way we don't complicate the user's experience who doesn't need to know anything about models.
2024-02-13 09:27:11 +01:00
Johannes Rieken
4eb07edec2 api - change history into turns (#204992)
https://github.com/microsoft/vscode/issues/199908
2024-02-12 15:20:58 +01:00
Tyler James Leonhardt
f10f059a54 Leverage AuthenticationProviders for gating Language Model Access (#204859)
* Leverage AuthenticationProviders for gating Language Model Access

Since we already have the Auth Stack which has a concept of "Managing Trusted Extensions" we can initially use that for gating Language Model Access so that when an extension asks for Language Model Access, they have to see a dialog first.

* Support multiple models and create AuthProviders on Core side
2024-02-09 13:19:16 -07:00
Rob Lourens
808582dad0 Bring back command buttons, remove command followups (#204548)
* Revert "Revert "Replace chat "command followups" with command button content (#204512)""

This reverts commit e822ae92ea.

* Also add ChatResponseCommandButtonPart class

* Fix

* dts comments
2024-02-09 05:32:27 -08:00
Sandeep Somavarapu
56f9e01216 Improvements to extensions features
* - show all runtime information in runtime status feature
- show runtime feature information in runtime extensions editor
- filter extensions by feature in view
2024-02-08 21:05:19 +01:00