Commit Graph

20 Commits

Author SHA1 Message Date
Christof Marti de441dc178 Block power save during chat requests (#3483) 2026-02-05 15:58:22 +00:00
Ulugbek Abdullaev e2b748adf8 Fix isCustomTeamDefaultValue type guard to check all required properties (#3315)
* Fix isCustomTeamDefaultValue type guard to check all required properties

The type guard was only checking for 'defaultValue' and 'teamDefaultValue'
properties, allowing objects missing 'owner' and 'expirationDate' to pass
the check. This caused runtime errors when accessing expirationDate on
incomplete objects.

Now checks for all four required properties of CustomTeamDefaultValue<T>.

* chat-lib: update package to match main package.json
2026-01-30 14:41:52 +00:00
Christof Marti f492228270 Move chat-lib tests to main src folder (#3004) 2026-01-20 17:05:51 +00:00
Christof Marti a2a163471d Cleanup Response (#2876) 2026-01-15 20:28:17 +00:00
Christof Marti ed1b99deb4 Fix chat-lib (#2238) 2025-11-27 10:27:29 +00:00
Christof Marti 84e2946b3a Fix chat-lib (#2163) 2025-11-24 10:30:32 +00:00
Jeff Hunter e03523967f fix install script and required package (#2134) 2025-11-21 21:39:21 +00:00
Jeff Hunter 4cbd1042c0 Inline completions in @vscode/chat-lib (#2131)
* Include inline completions in @vscode/chat-lib

* Follow type imports, * exports without "as", and jsxImportSource pragmas for dependency extraction

* update @vscode/chat-lib test configuration

* update chat lib extraction with new path and add context setup for lib

* initial stubs for inline completions test

* round trip test for getInlineCompletions

* remove unused path mappings

* fix type import

* send only original event names for chat-lib telemetry

* fix wasm loading in chat-lib

* have locateFile default to the current dir if the expected parent directory cannot be found

* update to use service injection with completions in chat-lib

* update citation and ExP handling for completions in chat-lib

* hook up enhanced telemetry for chat-lib

* add missing tsx package

* update post-install script to work with pre-built and unbuilt versions of chat-lib and add missing completions dependencies

* remove unneeded try/catch block

* correct typo

* generate package-lock from correct npm version

---------

Co-authored-by: Christof Marti <chrmarti@microsoft.com>
2025-11-21 15:47:14 +00:00
Christof Marti 160df22b2a Add @anthropic-ai/sdk (#2078) 2025-11-19 12:44:22 +00:00
Christof Marti 0f9c634e19 Update @vscode/copilot-api (#2077) 2025-11-19 11:01:08 +00:00
Christof Marti 16ec7c3517 Fix chat-lib build (#1854) 2025-11-07 12:36:24 +00:00
Christof Marti 6829589966 Version is ignored (#1470) 2025-10-21 15:44:10 +00:00
Christof Marti 9c37caf977 Fix updating of dependencies (#1458) 2025-10-21 09:28:52 +00:00
Devraj Mehta b0f30861e8 Update repo URL in @vscode/chat-lib package (#1255) 2025-10-07 15:59:11 +00:00
Christof Marti feb8766822 Fix telemetry (#1191) 2025-09-29 21:06:05 +00:00
Christof Marti 9a4376e1ed Add missing dependency (#985) 2025-09-09 19:40:43 +00:00
Christof Marti 044915f2fe Surface ITelemetrySender (#979) 2025-09-09 15:58:21 +00:00
Christof Marti 31799df2cc Add missing methods (#881)
* Update @vscode/copilot-api

* Add missing methods

* Omit source
2025-09-03 10:03:36 +00:00
Christof Marti 6bb35cdf2c Fix dependencies (#839) 2025-08-29 18:48:37 +00:00
Christof Marti 3b795b1e58 Extract @vscode/chat-lib (#807)
* Extract chat lib

* Extract chat lib

* Add test

* Get test working

* Simulate response

* Fix type issue

* Package

* Cleanup

* Tuck away workspace service

* Include package.json

* Ensure shim is used

* Include tiktoken files in package

* Update @vscode/copilot-api

* Ignore chat-lib
2025-08-29 14:41:27 +00:00