Commit Graph

124114 Commits

Author SHA1 Message Date
Benjamin Pasero 36e4ddb4db esm - fix tests (#226389) 2024-08-23 08:35:13 +02:00
Robo 598184c50e chore: update electron@30.4.0 (#226385)
* chore: update electron@30.4.0

* chore: bump distro
2024-08-23 08:03:49 +02:00
Johannes Rieken 04ebdc5472 make sure to handle accept/discard action in all cases (#226387) 2024-08-23 07:55:42 +02:00
Johannes Rieken b8236f2c57 inline chat zone tweaks (#226328)
* make sure diff zone is below inline chat zone

* relayout zone toolbar when menu changes
2024-08-23 07:55:14 +02:00
Connor Peet aca1518b48 api: some slight lmtools polish (#226371)
- Have `countTokens` only take a string for now, since that's all that
  tool elements in tsx should currently omit (not chat messages with
	roles.) String counting is a much easier interface to satisfy.
- Joyce pointed out that it's "invocation" not "invokation", for reasons
  unfathomable to me. I will open an issue with the English language.
2024-08-23 07:16:02 +02:00
Andrea Mah 1a1ec33222 Merge pull request #226372 from microsoft/busy-smelt
make preview options non optional
2024-08-22 18:19:28 -07:00
Ladislau Szomoru 34e07934f8 SCM - repository rendering improvements (#226368)
* Create repository renderer for the graph view

* Revert changes that are not needed anymore
2024-08-22 18:18:52 -07:00
andreamah 493f415d04 make preview options non optional 2024-08-22 16:36:59 -07:00
Justin Chen a754c044b5 aux window issue reporter default (#226370)
turn aux window issue reporter on by default for stable too
2024-08-23 01:02:22 +02:00
Andrea Mah 5b33d87282 Merge pull request #226369 from microsoft/chronic-guanaco
properly connect search providers and handle undefined includes in findtextinfilesnew
2024-08-22 15:59:13 -07:00
andreamah afde5137a2 properly connect search providers and handle undefined includes in findtextinfilesnew 2024-08-22 15:41:33 -07:00
Connor Peet a3598f8118 testing: add basic coverage introspection to testObserver APIs (#226211)
* testing: add basic coverage introspection to testObserver APIs

* fix build
2024-08-22 15:31:01 -07:00
Alex Ross 38d8c3af71 Don't show HRs in the comments view (#226362) 2024-08-22 15:25:29 -07:00
David Dossett 23720fd8ed Capitalize code action widget list items (#226365)
* Capitalize list items
2024-08-22 15:01:12 -07:00
Don Jayamanne 2fd1ec1f4c Merge pull request #226220 from microsoft/don/issue224760.3
Support actions in notebook diff items
2024-08-23 07:53:56 +10:00
Don Jayamanne 7963f8fee9 fix formatting 2024-08-23 07:37:34 +10:00
David Dossett a7ca86f791 Merge pull request #226363 from microsoft/ddossett/glamorous-quelea
Polish code action widget styles
2024-08-22 14:14:10 -07:00
David Dossett f95c72233b Polish code action widget styles 2024-08-22 13:58:19 -07:00
Don Jayamanne ce562fcc75 Remove collapseall/showall 2024-08-23 06:30:27 +10:00
Ladislau Szomoru 1647dde06c SCM - source control graph rendering improvements (#226358) 2024-08-22 22:25:46 +02:00
Alex Ross 58d5c31772 [Accessibility] Cannot escape the keyboard focus from the comment tooltip (#226339)
* [Accessibility] Cannot escape the keyboard focus from the comment tooltip
Fixes #226088

* Fix build error
2024-08-22 13:24:29 -07:00
Don Jayamanne 9754f5e14a Misc 2024-08-23 06:10:14 +10:00
Alex Ross d2b5ae4490 Fix tree sitter tree losing edits (#226357) 2024-08-22 22:02:38 +02:00
Don Jayamanne ee85a46277 Support for more actions 2024-08-23 05:59:31 +10:00
Don Jayamanne 5809a68666 wip 2024-08-23 05:59:29 +10:00
Ladislau Szomoru d45795cfc4 SCM - do not use a diffIdentityProvider (#226356) 2024-08-22 21:45:23 +02:00
Ladislau Szomoru e74f1f3d44 SCM - add refresh command (#226352) 2024-08-22 20:59:24 +02:00
Joyce Er 9202d167f2 fix: track whether chat requests happened with intent detection (#226350) 2024-08-22 11:45:21 -07:00
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