Connor Peet
2bf25ee2fd
lm: a second rendition of returning data from LM tools ( #225634 )
...
* lm: a second rendition of returning data from LM tools
This is an alternative to #225454 . It allows the tool caller to pass
through token budget and counting information to the tool, and the
tool can then 'do its thing.'
Most of the actual implementation is in prompt-tsx with a new method to
render elements into a JSON-serializable form, and then splice them back
into the tree by the consumer. The implementation can be found here:
https://github.com/microsoft/vscode-prompt-tsx/tree/connor4312/tools-api-v2
On the tool side, this looks like:
```ts
vscode.lm.registerTool('myTestTool', {
async invoke(context, token): Promise<vscode.LanguageModelToolResult> {
return {
// context includes the token info:
'mytype': await renderElementJSON(MyCustomPrompt, {}, context, token),
toString() {
return 'hello world!'
}
};
},
});
```
I didn't make any nice wrappers yet, but the MVP consumer side looks like:
```
export class TestPrompt extends PromptElement {
async render(_state: void, sizing: PromptSizing) {
const result = await vscode.lm.invokeTool('myTestTool', {
parameters: {},
tokenBudget: sizing.tokenBudget,
countTokens: (v, token) => tokenizer.countTokens(v, token),
}, new vscode.CancellationTokenSource().token);
return (
<>
<elementJSON data={result.mytype} />
</>
);
}
}
```
I like this approach better. It avoids bleeding knowledge of TSX into
the extension host and comparatively simple.
* address comments
* address comments
2024-08-22 09:41:31 -07:00
Johannes Rieken
bf52a5cfb2
disable keybinding for startWithCurrentLine ( #226302 )
2024-08-22 17:52:30 +02:00
Benjamin Pasero
ddaf2a3cf8
esm - make migrate script support ESM->AMD ( #226285 )
...
* esm - make migrate script support ESM->AMD
* .
2024-08-22 17:30:21 +02:00
Daniel Imms
37e51f4440
Merge pull request #226286 from microsoft/tyriar/226249
...
Retain uri authority when picking multi-root terminal cwds
2024-08-22 08:28:03 -07:00
Daniel Imms
66e8605bba
Retain uri authority when picking multi-root terminal cwds
...
Fixes #226249
2024-08-22 08:10:01 -07:00
Johannes Rieken
149a026ff9
show toggle diff in zone only when it applies ( #226257 )
2024-08-22 16:18:57 +02:00
Johannes Rieken
f12921b077
fixes https://github.com/microsoft/vscode-copilot/issues/7481 ( #226256 )
2024-08-22 16:18:40 +02:00
Ladislau Szomoru
557228e262
SCM - Source Control Graph view ( #226250 )
...
* Added the new view
* Add support for getting N number of commits
* Added view title actions
* More work to enable view/repository actions
* Expand the view by default, and always show the last N commits
* Add context menu actions
* Improve actions
* Basic infinite scrolling implemented
* Better implementation using --skip instead of a cursor
* Do not refresh graph when pressing Refresh
* Refactor load more/caching
* Rename the view
* Add support for the find widget
2024-08-22 15:54:22 +02:00
Don Jayamanne
c6cd724fbc
Context key support for Multi-file diff items ( #226182 )
2024-08-22 15:31:53 +02:00
Aiday Marlen Kyzy
b8e4e034b6
Extracting the global NLS variables into functions ( #226078 )
...
* extracting the constants
* exporting from the specific file
2024-08-22 06:16:22 -07:00
Ladislau Szomoru
cd360e0318
SCM - remove incoming/outgoing/history graph from the Source Control view ( #226241 )
2024-08-22 12:42:14 +02:00
Benjamin Pasero
c2fbe28324
esm - make TTP pluggable ( #226179 ) ( #226231 )
2024-08-22 12:32:57 +02:00
Sandeep Somavarapu
6ab1a1e4fe
Fix uninstalling extension having packed extension which has a dependent #225962 ( #226239 )
2024-08-22 11:52:43 +02:00
Johannes Rieken
16bb31f856
Merge pull request #226171 from microsoft/joh/crooked-earwig
...
support for `export` "dependency" in amdX, also copy for non-source files
2024-08-22 11:05:06 +02:00
Johannes Rieken
7af685cb77
make inline chat zone the default ( #226230 )
...
* rename setting to `inlineChat.startWithOverlayWidget`
* have setting false by default
2024-08-22 11:02:57 +02:00
Johannes Rieken
7696e0f89c
Merge pull request #226170 from microsoft/joh/motionless-camel
...
inline chat from line should handle discarding more graceful
2024-08-22 10:55:52 +02:00
Johannes Rieken
62227ba093
Merge pull request #226163 from microsoft/joh/artificial-pinniped
...
fix codicon color in inline chat
2024-08-22 10:55:33 +02:00
Johannes
24af1f24eb
fix dependencies
2024-08-22 10:49:34 +02:00
Sandeep Somavarapu
7ae6c63bd0
call updates check directly ( #226166 )
2024-08-22 10:30:02 +02:00
Sandeep Somavarapu
53ff86e1cf
fix previewing profile in web ( #226228 )
2024-08-22 09:37:25 +02:00
Andrea Mah
c2aa3c4625
let findfiles2new use an array of includes/excludes ( #226103 )
...
* let findfiles2new use an array of includes/excludes
2024-08-21 19:14:01 -07:00
Peng Lyu
7e31cc0703
Add missing types for text buffer + notebook. ( #226214 )
2024-08-22 01:02:10 +02:00
Joyce Er
bd98667390
fix: allow chat participant handlers to determine whether they were invoked via participant detection ( #226213 )
2024-08-22 00:57:01 +02:00
Tyler James Leonhardt
6544b003dc
Bump msal-node and fix a bad contrast ratio ( #226210 )
...
Bumps MSAL-node which contains [my fix](https://github.com/AzureAD/microsoft-authentication-library-for-js/pull/7247 ) that will actually show our error template.
Also fixes an A11y contrast issue with said error template.
2024-08-22 00:53:21 +02:00
Sandeep Somavarapu
a9cfa77428
Remove old profiles UI ( #226207 )
2024-08-21 15:43:46 -07:00
Connor Peet
291e384376
testing: polish display of missing sources, avoid duplicate source in peek ( #226205 )
2024-08-21 14:40:10 -07:00
Aaron Munger
a24e02eaab
Do not match filepaths for providing repl editor as re-open option ( #226208 )
2024-08-21 23:19:14 +02:00
Connor Peet
a80d5da5c0
testing: fix navigation actions should not be in the go-to group ( #226203 )
...
Fixes #225418
2024-08-21 21:42:23 +02:00
Peng Lyu
f55287a369
Fix #163943 . Preserve focused editor if focused cell is scrolled out of viewport. ( #226201 )
...
* Fix #163943 . Preserve focused editor if focused cell is scrolled out of viewport.
* fix memory leak
2024-08-21 21:23:04 +02:00
Benjamin Pasero
4ea51b2030
esm - include ESM versions of 1DS ( #226198 )
2024-08-21 12:04:41 -07:00
Connor Peet
b328e6ab5a
testing: fix result action button has unlimited height, condense headers ( #226197 )
...
Fixes #225460
2024-08-21 20:58:30 +02:00
Connor Peet
ca845227b9
debug: fix location references not working on remotes ( #226193 )
...
Fixes #225967
2024-08-21 11:49:45 -07:00
Rob Lourens
94e4b4d99b
Add supportsToolReferences flag on chat participants ( #226191 )
2024-08-21 11:07:28 -07:00
Aaron Munger
26a0ef2239
notebook editor widgets should be independent by editor type ( #226192 )
...
* editor widget per editor group + editor type
* added unit tests
2024-08-21 19:51:28 +02:00
Don Jayamanne
d193e4b6f5
Experimental Notebook Diff based on Multi-file diff ( #226113 )
...
* Experimental Notebook diff based on Multi-file dif
* Stat resolving
* Fix test
* Add actions
* Misc
* Fixes
2024-08-22 02:06:09 +10:00
Benjamin Pasero
ee72c2f795
amdX - gracefully handle trusted types policy already being defined ( #226177 )
2024-08-21 17:39:23 +02:00
Alex Ross
82216f99d1
Fix bug loading languages many times ( #226175 )
...
Part of #210475
2024-08-21 17:29:04 +02:00
Sandeep Somavarapu
0a0c477f70
Improve new profiles UI ( #226172 )
...
- add option to use profile for current window
- simplify profiles menu
- polish
2024-08-21 17:13:28 +02:00
Alex Ross
a0d634e344
Add isMeasurement to tree sitter ( #226174 )
...
Part of #210475
2024-08-21 17:09:04 +02:00
Johannes
ee9ddcc5b8
support for export "dependency" in amdX, also copy for non-source files
2024-08-21 16:29:44 +02:00
Johannes
678d9dd30f
inline chat from line should handle discarding more graceful
2024-08-21 16:01:24 +02:00
Johannes
19efb0717e
fix codicon color in inline chat
2024-08-21 15:39:25 +02:00
Johannes Rieken
95608e3202
use bigger than default ordinal for inline zone ( #226152 )
...
re https://github.com/microsoft/vscode-copilot/issues/7355
2024-08-21 13:39:58 +02:00
Johannes Rieken
98d9db1339
fixes https://github.com/microsoft/vscode-copilot/issues/6938 ( #226151 )
2024-08-21 13:39:36 +02:00
Johannes Rieken
76d6785781
fixes https://github.com/microsoft/vscode/issues/226140 ( #226149 )
2024-08-21 12:28:28 +02:00
Sandeep Somavarapu
00c8fd7363
report telemetry on update check on product update ( #226146 )
2024-08-21 12:16:12 +02:00
Johannes Rieken
6f13ec62fc
chore - inline chat work ( #226139 )
...
* chore - prepare inline chat to be started with an existing model that has edits
* debt - remove `SessionExchange` et al.
* Makes inline chat be entirely grounded in the chat model
* Removes the copy recordings command which never got used
2024-08-21 11:55:19 +02:00
Benjamin Christopher Simmonds
ba2f94a64c
Fix pinned tab rows update breadcrumbs bug ( #226134 )
...
* fix pinned tab rows update breadcrumbs bug
* 💄
2024-08-21 11:15:18 +02:00
Christof Marti
f4b5f9f762
Update to @vscode/proxy-agent v0.23.0 ( microsoft/vscode#173861 )
2024-08-21 08:14:24 +02:00
Rob Lourens
0d5a40f7cd
Add chat 'rename' button ( #226106 )
...
* Chat picker label improvements
* Add chat 'rename' button
* Fix this
* Fix tests
* Fix test
2024-08-21 07:16:38 +02:00