Commit Graph

1091 Commits

Author SHA1 Message Date
Connor Peet
f9dd5e1a8d chat: better problems integration (#241276)
chat: allow referencing and dragging in diagnostics

- There is a new proposal which adds `ChatReferenceDiagnostic` as a
  prompt reference type
- You can now pick "Problems..." as part of the chat attachment context
- You can drag and drop files and individual diagnostics from the
  Problems view into chat. Previously trying to do this would just
  attach the file.
2025-02-20 02:38:32 +01:00
Benjamin Pasero
6cb4d19196 . 2025-02-19 14:03:20 +01:00
Benjamin Pasero
da6fc30c98 rewind 2025-02-19 12:53:49 +01:00
Don Jayamanne
dcc65bffea Add Chat NotebookEdit API 2025-02-14 13:16:45 +11:00
Tyler James Leonhardt
99a63c4a3c Allow createIfNone to also use detail (#240565)
Fixes https://github.com/microsoft/vscode/issues/240295
2025-02-13 18:08:30 +01:00
Rob Lourens
e6f3e3a874 Support dynamic tool message after tool runs (#240586) 2025-02-13 00:08:21 +01:00
Rob Lourens
5e5183a362 🔪 DELETE chatVariableResolver API proposal 💀 (#239755)
* 🔪 DELETE chatVariableResolver API proposal 💀

* Remove import

* Remove chat variable test

* Bump distro
2025-02-07 19:03:21 +01:00
Benjamin Pasero
86b64aa4bc files - abandon watcher correlation API proposal (#239906)
* files - abandon watcher correlation API proposal

* fix compile
2025-02-07 10:43:11 +01:00
Rob Lourens
4aa863ca56 Move chat participant detection to private.d.ts (#239754) 2025-02-05 17:34:43 -08:00
Joyce Er
802eba821f refactor: clean up unused detectedParticipant API (#239566) 2025-02-04 07:55:33 +01:00
Anthony Kim
57e4810cae Expose shell type to extensions (#238071)
* copy everything from #237624

* try to better word notes in proposed.d.ts

* why is test being so flaky

* try sending one more text

* strictEqual only on isInteractedWith always fails

* update the name as recommended

* embed to make sure we are selecting event we are interested in as recommended

* add node as part of TerminalShellType

* getting type ..extHostTypes.TerminalShellType.Bash is not comparable to type ..vscode.TerminalShellType.Bash

* just use one enum?

* figured out how to get from extHostTypes

* clean up
2025-01-17 16:19:02 -05:00
Martin Aeschlimann
37a00332c7 remove old MappedEditsProvider 2025-01-15 21:21:58 +01:00
Matt Bierner
23b62bc580 Merge pull request #237443 from mjbvz/steady-leopard
Finalize paste api and drop api tweaks
2025-01-08 01:03:37 -08:00
Matt Bierner
4daea74ba9 Finalize paste api and drop api tweaks
Fixes #30066

This finalizes the documentPaste api. This api allows extensions to attach metadata on text copy and change how content is pasted. Some examples:

- Updating imports for pasted code
- Inserting an image as an attachment in notebooks
- Pasting files converts them to relative text paths
2025-01-07 14:57:16 -08:00
Rob Lourens
70866d5287 Enable "tools agent" (#237369)
* Add an edit tool (doesn't work)

* More

* Properly wait on text edits to be done applying

* Better editFile tool

* Fixes

* Be more insistent with editFile instructions

* Add "agent mode" UI

* Fix error thrown when calling tools sometimes

* Persist chat agent mode state

* Hide editing tools from other extensions for now

* Fix test build issues

* Allow disabling tools agent mode

* Remove comment

* Fix codeblock index properly

* Cleanup

* Cleanup

* Remove ccreq check

* Rename for clarity
2025-01-07 04:22:42 +00:00
Johannes Rieken
d162ceb7fe extension events use new ExtensionError so that these errors don't make it into "normal" error telemetry (#236336)
* extension events use new `ExtensionError` so that these errors don't make it into "normal" error telemetry

fixes https://github.com/microsoft/vscode/issues/232914

* fix tests
2024-12-17 15:15:31 +01:00
Alex Ross
ce50bd4876 Remove unused showLocal proposal (#236032)
* Remove unused showLocal proposal

* No local build error??
2024-12-15 17:17:17 +00:00
Connor Peet
436f1e99c1 testing: finalize attributable test coverage API (#234686)
* testing: finalize attributable test coverage API

Closes #212196

* fixup
2024-11-26 18:53:38 +00:00
Tyler James Leonhardt
5cb3edbfc4 Move env.nativeHandle to window.nativeHandle (#234395) 2024-11-22 06:50:12 +05:30
Tyler James Leonhardt
d7ab35a98e handle: string to nativeHandle: UInt8Array based on feedback (#234378)
Feedback in https://github.com/microsoft/vscode/issues/229431
2024-11-21 11:58:49 -07:00
Megan Rogge
d79858c114 add support for file/folder terminal completions (#234289) 2024-11-21 07:05:55 +05:30
Ladislau Szomoru
975e05cd1c DiffInformation API - cleanup + renames (#234248)
* Refactoring + renaming things

* Renamed TextEditorDiffKind to TextEditorChangeKind
2024-11-20 14:46:04 +05:30
Megan Rogge
a7ba900c98 add kind, kind to icon map 2024-11-19 14:07:54 -05:00
Megan Rogge
346a744203 adjust api 2024-11-19 13:40:38 -05:00
Megan Rogge
417f23b545 Merge branch 'main' into merogge/terminal-suggest-wip 2024-11-18 10:26:11 -05:00
Ladislau Szomoru
30043071a3 TextEditorDiffInformation API proposal (#233896)
* WIP - initial implementation

* Introduce the diff model service

* Remove code that is not needed

* Handle DiffEditor

* Performance optimization

* Refactor code

* More cleanup (V1)

* More cleanup (V2)

* More cleanup (V2.1)

* Pull request feedback

* Remove debugging statements

* Update mock proxy to fix tests

* Add proposed api check
2024-11-18 15:38:21 +01:00
Aaron Munger
b8ad8f5101 put fix/explain with copilot directly in the status bar (#233927)
* put copilot fix and explain in status bar

* fix up actions

* watch for execution error within the viewmodel

* make observable publicly readonly

* remove unused service

* fix tests

* remove unused import
2024-11-15 11:36:12 -08:00
Megan Rogge
45e4fda6e8 clean up 2024-11-13 11:03:14 -06:00
Megan Rogge
0385106215 Merge branch 'main' into merogge/terminal-suggest-wip 2024-11-13 08:51:12 -06:00
Joyce Er
89f3c39493 feat: allow chat related file providers to specify a description at registration and for results (#233731) 2024-11-12 23:08:34 +01:00
Megan Rogge
0dab339ce8 Merge branch 'main' into merogge/terminal-suggest-wip 2024-11-12 15:22:27 -06:00
Joyce Er
8fd40e611f feat: scaffold chat editing related files provider api (#233451) 2024-11-08 15:21:48 -08:00
Megan Rogge
3ba1f40022 add trigger character 2024-11-07 15:26:52 -06:00
Tyler James Leonhardt
15333a70d8 Implement a handle property that is a string (#233267)
* Implement a `handle` property that is a string

For Microsoft auth

* fix integration tests
2024-11-07 09:44:37 -08:00
Megan Rogge
f2084174d6 add replacement index / length to completion item, fix issue 2024-11-05 14:28:08 -06:00
Megan Rogge
cc74cd4274 major refactor 2 2024-10-31 15:44:56 -05:00
Megan Rogge
9b1da41996 Merge branch 'main' into merogge/start-terminal-suggest 2024-10-31 11:35:19 -05:00
Andrea Mah
3551cb01fa edit API names and remove findFiles2New and aiTextSearchProviderNew (#232431)
* remove references to findfiles2New and aiTextSearchProviderNew
2024-10-29 18:41:23 -07:00
Andrea Mah
ff48b17c8b move search APIs from using new to 2 (#232443)
* move search APIs from using `new` to `2`
2024-10-28 13:59:56 -07:00
Megan Rogge
fb17cc4974 Merge branch 'main' into merogge/start-terminal-suggest 2024-10-25 13:27:22 -05:00
Rob Lourens
bc0eb008a1 Finalize lmTools (#231788)
* @returns

* Finalize it

* small tweaks

* add `LanguageModelTextPart` to chat message and its factory functions

* update `LanguageModelChatResponse` docs

* more doc tweaks

* LangModelChatMessage.content always array

* Optional cancel token

* parameters notes

* Updates

---------

Co-authored-by: Johannes Rieken <johannes.rieken@gmail.com>
2024-10-21 18:21:43 -07:00
Rob Lourens
bcf6a6af1c Add LanguageModelIgnoredFileProvider (#231696) 2024-10-18 14:05:43 -07:00
Rob Lourens
21219a938e lmTools API updates and LanguageModelPromptTsxPart (#231544)
* Try LanguageModelToolResultItem

* Implement it

* lmTools API updates
Resolve TODOs

* Fix build

* Doc

* More content type -> mime type

* More edits

* Fixes

* Add LanguageModelChatToolMode

* Add implementation

* New thing

* note

* API version bump

* Finish it

* Updates

* Properly convert tool result content parts
2024-10-18 13:31:58 -07:00
Rob Lourens
cd24be84d5 Rename tool id to 'name' 2024-10-11 10:37:41 -07:00
Rob Lourens
6148e1487a lmTools API polish (#230847)
* Simplify lmTools part names

* Remove unneeded isError

* Remove text/plain requirement for tools

* One more

* Bump API version

* Fix build
2024-10-09 13:28:01 +09:00
Joyce Er
3709bf2387 feat: instrument accepting and rejecting chat edits (#230748)
* feat: instrument accepting and rejecting chat edits

* eslint

* Fix compile
2024-10-08 09:29:59 +02:00
Rob Lourens
de557e7b66 lmTools docs, tweaks (#230351)
* Tools API updates

* Add tool tags

* lmtools docs and tweaks

* Update src/vscode-dts/vscode.proposed.lmTools.d.ts

Co-authored-by: Joyce Er <joyce.er@microsoft.com>

* Update src/vscode-dts/vscode.proposed.lmTools.d.ts

Co-authored-by: Joyce Er <joyce.er@microsoft.com>

* Fix build

---------

Co-authored-by: Joyce Er <joyce.er@microsoft.com>
2024-10-02 19:02:38 -07:00
Justin Chen
7bbd14551f properly convert/send image type to extension (#230166)
* properly convert and send type to ext

* switch to new type that includes mimeType

* add new type

* use thenable

* change to proposed

* fix whitespace
2024-10-01 16:02:01 -07:00
Matt Bierner
d3596df9eb More type assertion fixes (#230181)
For #211878

Also adds a few suppressions
2024-09-30 16:21:12 -07:00
Rob Lourens
ef69ffe1cb Correctly pass user selected LM for intent detection (#230014) (#230028)
Fix #229616
2024-09-28 01:18:40 +02:00