Commit Graph

1404 Commits

Author SHA1 Message Date
Rob Lourens
eb736c18c2 Limit chat history to messages with the current participant (#209898)
* Limit chat history to messages with the current participant

* Fix build error

* Fix build for real
2024-04-09 08:56:52 -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
Benjamin Pasero
099c39eb5b Failing integration test: vscode API - globalState / workspaceState (fix #208134) (#208756) 2024-03-26 07:53:08 +01:00
Benjamin Pasero
c972b16a33 Integration test failure: workspace.applyEdit drops the TextEdit if there is a RenameFile later (fix #206356) (#208662) 2024-03-26 15:38:03 +09:00
Rob Lourens
75e751380f ChatRequestHandler should allow returning void (#208349)
Fix #205835
2024-03-22 00:57:34 +01: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
Connor Peet
2aa0f1c40b testing: finalize test coverage (#208115)
Closes #123713
2024-03-19 19:46:17 +01:00
Don Jayamanne
19a78385c7 Remove custom property from nb and cell metadata (#207995) 2024-03-18 15:01:04 +01:00
Peng Lyu
a8536b7a3c #207742. Failing test 2024-03-14 10:49:04 -07:00
Tyler James Leonhardt
c349c44f08 Move QuickPick on to an ObjectTree (#207520)
* Move QuickPick on to an ObjectTree

Enables sticky scroll

* Fix tests

* fix tests take 2

* fix tests by cleaning up disposables

* fix tests again

* `setChildren` less

* test if this is what fixes CI (but local would be broken)

* remove setFocus call since it just sends a random event that we don't need

* Only apply events to quickpickitems not separators

* a comment
2024-03-13 16:45:12 -07:00
Daniel Imms
490db24926 Revert "Implement proposed TerminalState.isShellIntegrationActivated" 2024-03-12 10:06:36 -07:00
Daniel Imms
4354ddd2cb Fix terminal state test to work with new api 2024-03-12 07:55:01 -07: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
Rob Lourens
2752932c07 Remove sendInteractiveRequestToProvider from interactive API (#206623)
* Remove `sendInteractiveRequestToProvider` from interactive API

* Fixes
2024-03-01 07:41:22 -08:00
Rob Lourens
bd79cb3a46 Change FollowupProvider to take a ChatContext. (#206611)
* Change FollowupProvider to take a ChatContext.
Also fix #205761

* Update test
2024-03-01 07:32:52 -07:00
Rob Lourens
00abefa3e2 Add chatParticipant contribution point (#206474)
* Add package.json registration for chat agents

* Update for tests

* Separate static and dynamic chat agent parts

* Handle participant registration correctly

* Fix tests

* Fix test

* Remove commented code

* Fix more tests

* Pluralize

* Pluralize test contribution
2024-02-29 06:52:12 -08:00
Rob Lourens
61f447b79a More small chat API fixes (#205901)
* Fix #205811

* Fix #205807

* Make description optional

* Fix

* fix test
2024-02-21 12:57:18 -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
Rob Lourens
4ba66bf35e Chat API: add 'command' to response history (#205377) 2024-02-16 09:09:04 -07: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
Rob Lourens
c2316194e2 Get rid of history2, variables2 (#205124)
* Get rid of history2

* Remove prompt2 and variables2

* Clean up variables2/prompt2

* Fix tests

* Fix ranges

* Fix test
2024-02-13 11:33:21 -08:00
Rob Lourens
b2f1748501 Rename "subcommand" to "command" (#204911)
* Rename "subcommand" to "command"

* Fix build
2024-02-10 13:58:18 -08:00
Rob Lourens
b49c1c1170 Add ChatAgentResult2#metadata (#204851)
* Support serializable metadata on 'result' object from chat agent

* Fix 'errorDetails' on the VM

* Fix acceptAction, get rid of generic parameter on ChatAgent

* Use result metadata for followups

* Use serialized result for history

* Don't share metadata between agents

* Add a test for result metadata

* Fix build
2024-02-10 05:40:01 -08:00
Andrea Mah
90cebfaeb2 Fix fuzzy searching for findFiles2 (#204768)
* progress on making fuzzy option
* finish connection to findfiles API
2024-02-08 13:17:58 -08:00
Andrea Mah
20d18171b3 introduce findFiles2 API (#203844)
* introduce first version of FindFiles2 API
2024-02-07 14:23:46 -08:00
Aaron Munger
fe6db4073f allow time to scroll (#204646) 2024-02-07 11:08:03 -08:00
Johannes Rieken
57f5f81edd api - rename: ChatAccess -> LanguageModelAccess (#204583)
* rename - ChatAccess -> LanguageModelAccess

* fix tests
2024-02-07 13:39:34 +01:00
Alex Ross
f8546bc73f API to find the active comment thread (#204486)
* API to find the active comment thread
Fixes #204484

* Add issue ref

* Add activeComment proposal to api tests

* Add settimeout to blur event
2024-02-07 08:59:24 +01:00
Rob Lourens
5e3a912d7f Move welcome message to chat agent (#204163)
* Move welcome message provider to default agent

* Remove welcome message/sample questions from interactive provider

* Remove provider display name and icon

* Add default agent for tests

* And proposal
2024-02-02 18:41:13 +01:00
Benjamin Pasero
3b5ae15f95 perf - registerWorkbenchContribution2 and some adoptions (#203802)
* perf - first cut workbench contributions 2

* log warning

* add tests

* tests

* fix tests

* .

* adopt a bit and add access to times

* adopt for some

* adopt for some

* .

* fix tests

* .
2024-01-31 11:04:30 +01:00
Rob Lourens
b637950b4b Reenable debug integration test (#203733) 2024-01-29 20:21:19 +01:00
Rob Lourens
c15e48bc27 Reenable chat test (#203706)
I think this isn't an issue with the test- every time it fails, we see "The Web Worker Extension Host did not start in 60s". The chat tests are the first tests, and so they just time out due to being affected by the slow startup. That EH timeout issue looks old.
Fix #203429
2024-01-29 16:51:06 +01:00
Johannes Rieken
290a1153b8 disable frequently failing chat-suite (#203430)
https://github.com/microsoft/vscode/issues/203429
2024-01-25 11:52:51 +01:00
Rob Lourens
63349889d9 Avoid "slash command" name in agent API (#202729)
* Avoid "slash command" name in agent API

* Fix reference

* Fix
2024-01-18 21:05:28 +01:00
Benjamin Pasero
d5307c5afa Have workspace.save and workspace.saveAs methods that return the URI (fix #178713) (#200222) 2023-12-07 17:38:11 +01:00
Rob Lourens
ada980d563 Merge interactiveUserActions proposal into chatAgents2Additions, and get rid of the old global event (#199916)
Towards #197687
2023-12-04 05:58:17 +01:00
Rob Lourens
7cbff1919e Chat code cleanup (#198022)
* Clean up some obsolete chat API
Start deleting the interactive session provider, use agents only

* Delete old chat agents API

* Remove providerRequestId

* Remove unused stuff from interactive.d.ts

* Get rid of chat session state saving

* Fix test

* I guess this type was in use
2023-11-12 06:44:14 +01:00
Connor Peet
2749de3808 testing: implement proposed active profiles api (#197664)
testing: implement proposed active profiles api

For https://github.com/microsoft/vscode/issues/193160
2023-11-07 10:37:37 -08:00
Connor Peet
d2b1eb8a36 testing: finalize TestMessage.contextValue (#195706)
Closes #190277
2023-10-16 20:37:37 +02:00
Rob Lourens
6c02f61149 Fix variables in chatAgents2 API requests, add tests (#195529)
* Fix variables in chatAgents2 API requests

* Enable file references and the 'used references' section by default in Insiders

* Add integration tests for chat

* Fix equality

* fix test
2023-10-13 06:27:30 +02:00
Benjamin Pasero
29b69437ab watcher - correlate events to their requesting source (#194776)
* watcher - emit `URI` instead of `string` for faster `fsPath` compute  (for #194341)

* wip

* more

* adopt

* some cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* cleanup

* implement correlation

* cleanup

* add correlation

* undo, leave for later

* tests

* tests

* tests

* tests

* tests

* log cId

* simpler correlation id

* 💄

* tests

* runs

* skip normalization

* fix tests

* tests

* fix tests

* add `createWatcher` API

* partition events in ext host

* allow custom excludes

* remove disk file change

* 💄

* 💄

* 💄

* wire in

* wire in
2023-10-10 10:27:18 +02:00
Johannes Rieken
a383c1601d add proposed API for short and long variant of LanguageStatusItem#text (#195141)
* add proposed API for short and long variant of `LanguageStatusItem#text`

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

* add new proposal to allow list
2023-10-09 16:22:49 +02:00
Rob Lourens
4935438c42 Disable failing test (#194681)
#194680
2023-10-03 05:39:16 +02:00
Benjamin Pasero
6404e3dbd1 tests - remove envShellEvent from package.json (#193982) 2023-09-25 17:07:23 +01:00
Ulugbek Abdullaev
39dc875c4e Merge branch 'main' into ulugbekna/implement-code-mappers-context 2023-09-22 14:43:25 +02:00
Ulugbek Abdullaev
5547de51db mapped edits: update code around the command _executeMappedEditsProvider 2023-09-22 11:54:58 +02:00
Aaron Munger
150d09b37b skip flaky test 2023-09-21 12:57:28 -07:00
Logan Ramos
6bb64ab400 Fix indentation (#191918) 2023-09-12 09:16:11 -07:00