Commit graph

1277 commits

Author SHA1 Message Date
Christof Marti 298c72219b Module not shared on Windows? 2024-06-24 19:37:11 +02:00
Christof Marti 3cdb165262 Update to @vscode/proxy-agent 0.21.0 2024-06-24 19:37:11 +02:00
Johannes Rieken feae5bf5d6
make sure errors are recreated when making LM requests (#216807)
* add integration tests for LanguageModelChat#sendRequest

* make sure errors are recreated when making LM requests

* disable test with a note for later

* fix remote integration tests
2024-06-24 09:50:48 +02:00
Christof Marti e0a7112fd5 Test custom root certificate (microsoft/vscode-copilot-release#1294) 2024-06-21 10:39:28 +02:00
Rob Lourens ee173b0e65
Tools API tweaks, merge into lmTools (#216750)
* Tools API tweaks, merge into lmTools

* Rename more id -> name

* Fix

* Add lmTools API version
2024-06-20 18:54:00 -07:00
Rob Lourens 7abff3e641
Fix vscode-api-tests in stable (#213733) 2024-05-28 15:29:20 -07:00
Rob Lourens b9d35d9145
Don't register chat participants in stable (#213244)
* Don't register chat participants in stable
And fork some Additions APIs into chatParticipantPrivate

* Remove stale proposals

* Move more API out of Additions
2024-05-22 21:07:40 +02:00
Rob Lourens 14ebfdc345
Add variable 'isSlow' (#212657)
* Add variable 'isSlow'
Since 'codebase' doesn't really work as a reference, I'm only making accessible to our agents for now

* fix

* Check for slow variables in parser as well
2024-05-15 17:40:21 -07:00
Rob Lourens 6643db734a
Add chat variable id and rename to 'references' (#212480)
* Add chat variable id

* Rename 'variables' to 'references'

* Replace other 'variables' usages

* Fix tests
2024-05-13 14:30:14 -07:00
Robo 5216c04428
chore: update to electron 29 (#209818)
* chore: update electron@29.1.0

* chore: update typings to 20.x

* chore: bump electron@29.1.5

* ci: fix crash in compiling extensions-ci

* chore: disable .d.ts check for build/

$ ../node_modules/.bin/tsc -p tsconfig.build.json
node_modules/@types/chokidar/index.d.ts:21:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/@types/chokidar/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

21 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
                ~~~~~~~~~

node_modules/chokidar/types/index.d.ts:8:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
  Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref

8 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
               ~~~~~~~~~

Found 2 errors in 2 files.

Errors  Files
     1  node_modules/@types/chokidar/index.d.ts:21
     1  node_modules/chokidar/types/index.d.ts:8

Refs a0f9e09f64

* chore: update core types

* temp: fix layer validation

* chore: update nodejs checksums

* ci: use latest v20 LTS for missing node-gyp

Refs eacec5f490

* ci: define LIBCPP_HARDENING_MODE

* ci: fix crash in vscode-web-min-ci

* chore: update rpm deps-list

* chore: bump tree-sitter-typescript@0.20.5

* chore: bump electron@29.3.0

* chore: bump electron@29.3.1

* chore: update rpm deps-list for x86_64

* ci: disable io_uring UV backend on linux

* ci: disable io_uring backend for oss as well

* chore: update typings to 20.x

* ci: add TODO for io_uring workaround

* chore: bump distro

* chore: update preinstall node version checks

* chore: update @types/gulp

Refs https://github.com/microsoft/vscode/issues/212442

* ci: disable io_uring in more test suites
2024-05-11 01:20:28 +09:00
Rob Lourens 9c336bfa87
Add test for FunctionBreakpoint change (#212284)
See #211894
2024-05-08 20:41:49 +02:00
Johannes Rieken 6874fc7394
Joh/ministerial-swan (#212096)
* first cut of embeddings API

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

* add event

* fix tests
2024-05-06 16:50:13 +02:00
Daniel Imms d95fae2e2d
Fix flaky integration tests on mac 2024-05-01 13:22:17 -07:00
Rob Lourens b8292ab7f2
Replace ChatResolvedVariable with ChatValueReference (#211665)
* Replace ChatResolvedVariable with ChatValueReference
Participant API
#199908

* Fix integration test

* any -> unknown
2024-05-01 09:14:54 -07:00
Daniel Imms c398f717a9
Consolidate ansi functions into strings.ts 2024-04-26 07:22:16 -07:00
Benjamin Pasero 47e4d24fa1
vscode API - globalState / workspaceState unit test flake (fix #210575) (#210632) 2024-04-18 10:54:47 +02:00
Daniel Imms 762cbd66a8
More logging, disable on Windows 2024-04-16 15:26:45 -07:00
Daniel Imms f18f406e30
Improve assertions 2024-04-16 15:06:34 -07:00
Daniel Imms 4080745f7e
Merge remote-tracking branch 'origin/main' into tyriar/si_integration_tests 2024-04-16 13:56:38 -07:00
Connor Peet 97df4dad38
api: finalize windowActivity (#210491)
Closes #181569
2024-04-16 11:03:14 -07:00
Daniel Imms fa1e2afd99
Set SI to enabled in integration tests 2024-04-15 08:53:11 -07:00
Daniel Imms 6162e457e3
Add shellIntegration ext api integration tests
Part of #145234
2024-04-12 12:21:09 -07:00
Don Jayamanne f309a5e375
Fix test failure and improve visibility check (#210128)
* Fix test failure when UI is small

* oops
2024-04-11 08:07:50 +02:00
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