Commit Graph

1558 Commits

Author SHA1 Message Date
Benjamin Pasero
7625487ec2 Improve documentation for text document encoding methods (#242299) 2025-02-28 13:54:30 +01:00
Benjamin Pasero
edf0ad763e api - clarify encoding for #241844 (#242278) 2025-02-28 11:23:16 +01:00
Rob Lourens
cfe8020e4e Add ChatErrorLevel to ChatErrorDetails (#242139)
We need this so that the error when the rate limit is exceeded can show as 'info' without having to set `responseIsFiltered`
2025-02-27 03:48:19 +01:00
Rob Lourens
ffa4a758e6 Move agent mode enablement for models to extension (#242104) 2025-02-26 20:11:16 +01:00
Benjamin Pasero
5b62c2e584 Very vague sentence about text encoding change (fix #241836) (#242019) 2025-02-26 07:23:37 +01:00
Matt Bierner
a8df977b0d Merge pull request #241502 from mjbvz/frantic-crayfish
Add explicit `| undefined` for `LanguageModelChatTool`
2025-02-24 23:18:00 -08:00
Rob Lourens
45f744af6c Custom tool invocation renderer for terminal tool (#241768)
* Custom tool invocation renderer for terminal tool
Enable editing the terminal command

* Fix issues
2025-02-24 14:35:06 -08:00
Rob Lourens
2e6b2792b9 Move edit_file tool to extension (#241657)
Core contributes a tool which is the real implementation of file editing, but the extension gets to control the tool result
2025-02-24 12:19:12 -08:00
Matt Bierner
012e593973 Merge pull request #241494 from mjbvz/married-sheep
Mark fields in `Selection` as readonly
2025-02-24 01:44:52 -08:00
Natha Paquette
87a6a6d463 Typo in storage URI docs (#241600)
typo fix
2025-02-24 09:37:21 +00:00
Daniel Imms
57109e1039 Merge pull request #241395 from microsoft/tyriar/241392
Differentiate flags/options, add option value type
2025-02-23 20:59:07 -08:00
Daniel Imms
7cc14fc51c Handle no environment reporting properly
We need to differentiate undefined (no env reporting ever) and an empty
environment (env was reported, but maybe incomplete).

Fixes #241504
2025-02-22 08:33:48 -08:00
Daniel Imms
f26d973b5a Merge remote-tracking branch 'origin/main' into tyriar/241392 2025-02-22 07:42:16 -08:00
Megan Rogge
cde4b9f62c Merge pull request #241543 from microsoft/merogge/filepaths
add `fileExtensions` to terminal completion resource request config
2025-02-22 15:29:26 +01:00
Rob Lourens
0b111a9a74 Remove PreparedToolInvocation#tooltip (#241549)
No longer used
2025-02-21 19:57:45 -08:00
Rob Lourens
b4b0191e53 Enable rendering tool progress/confirmation messages with codeblocks (#241545)
* Render terminal commands in an editor

* Use editors for tool confirmation message codeblocks

* Remove unused getContent

* Always wrap tool editors
2025-02-22 02:47:26 +00:00
Henning Dieterichs
f4edc9af6c Migration from InlineEdit API to InlineCompletion API (#241501) 2025-02-21 19:07:28 +01:00
Daniel Imms
cfd8f54e65 Merge remote-tracking branch 'origin/tyriar/239706' into tyriar/241392 2025-02-21 09:50:45 -08:00
Matt Bierner
1a5a85453e Add explicit | undefined for LanguageModelChatTool
Fixes #241285

This property can either be unset of set to undefined
2025-02-21 09:44:42 -08:00
Henning Dieterichs
0b23fa11fe Adds support for showInlineEditMenu (#241478) 2025-02-21 18:18:57 +01:00
Matt Bierner
8cee84ca1f Mark fields in Selection as readonly
The implementation of this class [only has getters](c1c6484a64/src/vs/workbench/api/common/extHostTypes.ts (L450)) so I don't think these were meant to be writable
2025-02-21 09:07:53 -08:00
Benjamin Pasero
4edf8d685b encoding - add a test that simulates saving a document with different encoding (#241448)
* encoding - add a test that simulates saving a document with different encoding

* update pointer to issue
2025-02-21 10:46:13 +01:00
Daniel Imms
a536cedb50 Merge remote-tracking branch 'origin/main' into tyriar/241392 2025-02-20 13:02:58 -08:00
Daniel Imms
b49aaf3634 Differentiate flags/options, add option value type
This also fixes an issue where option values stopped working recently.

Fixes #241392
2025-02-20 13:00:13 -08:00
Anthony Kim
f99c5c64bc Expose shell's environment - fish shell (#240971)
* start working on fish, save progress, still lots TODO

* modify proposed.terminalShellEnv.d.ts

* remember we dont have acccess to nonce in .fish script

* save progress, adding isTrusted

* two arrays approach in fish

* provide EnvClear for fish, other shell as well.

* fix tests

* REMOVE TWO ARRAYS METHOD, always send all env

* remove deprecated comments

* remove junk get ready for review

* dont import vscode in terminal/common/capabilities.ts

* take feedback => pass in Clear as part of EnvSingleStart

* add env clear argument to SI.zsh

* update one more place to prevent vscode import

* mandatory flag description?? discuss this

* make things right
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>

* comment out test code

* use mapsStrictEqualIgnoreOrder instead of equals

* ready to go
2025-02-20 19:42:48 +01:00
Benjamin Pasero
89fef848ef Provide encoding-related APIs for editor extensions (#824) (#240804) 2025-02-20 12:04:34 +01:00
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
Logan Ramos
efe06e1e0a Add API proposal which adds language model capabilities (#241240) 2025-02-19 20:14:51 +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
Benjamin Pasero
2e1fbe4aeb add encode 2025-02-19 12:13:29 +01:00
Benjamin Pasero
6600b07e5c files - add decode method (#824) 2025-02-19 09:26:13 +01:00
Megan Rogge
edac0c5a27 ensure spec commands show up before misc ones (#240724)
fix #239977
2025-02-19 02:58:47 +01:00
Rob Lourens
574218a101 Better API for hiding tool invocations (#241132) 2025-02-19 00:29:08 +01:00
Daniel Imms
397d21a356 Merge pull request #240889 from microsoft/tyriar/240226
Expand terminal suggest quickSuggestions setting
2025-02-17 23:33:35 -08:00
Benjamin Christopher Simmonds
1b6321772c Add pressToReveal mode and gutter menu action (#241026)
Add `pressToReveal` and contributable action for gutter menu
2025-02-17 22:57:00 +00:00
Daniel Imms
250fd8bbb0 Expand terminal suggest quickSuggestions setting
This moves from a simple boolean to an object that allows customizing whether
completions are provided for commands and arguments, and whether fallback
suggestions are allowed.

The default is on for commands and arguments and off for unknown (fallback).

Fixes #240226
Fixes #239978
2025-02-15 04:23:11 -08:00
Rob Lourens
0233903285 Support collapsible list of tool results (#240842) 2025-02-14 13:03:16 -08:00
Benjamin Pasero
a870e67290 documents - expose encoding as proposed API (part of #824) (#240790) 2025-02-14 15:31:51 +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
Henning Dieterichs
58044605a4 Adds missing change 2025-02-12 15:47:52 +01:00
Henning Dieterichs
23213fe75d Allows inline completion providers to set the debounce time. 2025-02-12 15:36:59 +01:00
Ladislau Szomoru
654ac6680f SCM - finalize scmResourceGroupState API proposal (#240417) 2025-02-12 08:49:09 +01:00
Henning Dieterichs
750565e3eb Fixes iconPath issue 2025-02-11 18:38:31 +01:00
Henning Dieterichs
855102691b Implements https://github.com/microsoft/vscode-copilot/issues/11599 2025-02-11 18:38:31 +01:00
Rob Lourens
df5a7f807c Refactor, reduce IChatVariablesService to the bare minimum (#240035)
* Implement "toolIds" on chat open action

* Start deleting IChatVariableService

* Delete references to ChatRequestVariablePart

* More

* Simplify resolveVariables

* More

* Remove supportsSlowReferences

* Remove 'isDynamic'

* Remove todo

* Remove todo

* Fix up tests

* clean up snapshots
2025-02-08 02:01:49 +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
Henning Dieterichs
7a0449ad8b Fixes #234330 2025-02-07 16:43:08 +01:00