Commit Graph

15776 Commits

Author SHA1 Message Date
Rob Lourens
a4ee2666f0 Store chat sessions in fs (#243670)
* Start on storing chat sessions on fs

* More

* More ChatSesssionStore work

* More changes

* More fixes

* Avoid layer break

* Handle clear session, block shutdown while saving, handle other cases

* Key name

* Fix build error

* Tweaks

* Don't show migrated empty sessions in hsitory

* Comment out unused transfer code for now

* Fix test
2025-03-18 01:07:18 +00:00
Tyler James Leonhardt
558d5df792 Add proposed API for trusted domains and for web page extraction (#243811)
* Add proposed API for trusted domains and for web page extraction

I don't love the shape of this API but I'm going with this for now to play with it.

This will help Chat provide contents of web pages as context but also allow it full control of the tool.

ref https://github.com/microsoft/vscode/issues/243615

* use a different url

* delete the test until we have a good way to mock
2025-03-17 22:26:13 +01:00
Daniel Imms
00258d6a5e Merge pull request #243636 from microsoft/tyriar/241970
Add argument with optional indicator to right of label
2025-03-17 12:45:29 -07:00
Daniel Imms
f9c6ef598f Adjust test expectations to include detail 2025-03-17 12:30:15 -07:00
Daniel Imms
5261445258 Merge remote-tracking branch 'origin/main' into tyriar/241970 2025-03-17 11:53:51 -07:00
Matt Bierner
23812e0d8f Make sure scripts in md preview are properly evaluated
Fixes #243454

This restores the previous behavior. If the default security settings are used, scripts will still block blocked by the CSP. If you fully disable the security settings, then we'll try to run them
2025-03-17 11:45:49 -07:00
Anthony Kim
bf36be9c61 Finalize Shell API (#243274)
* Adopt terminal suggest to shell api change

* Internally bring string enum for terminal suggest to prevent Typos

* Better word description under api description

* Remove shell proposed api against vscode.d.ts

* Update `shell` description after looking at feedbacks.

* Update docs

* Change to a Map<TerminalShellTye, string[]>

* One last typo

---------

Co-authored-by: Daniel Imms <2193314+Tyriar@users.noreply.github.com>
2025-03-15 15:28:19 -07:00
Daniel Imms
ec8da3f5d0 Add argument with optional indicator to right of label
Fixes #241970
2025-03-15 04:21:26 -07:00
Matt Bierner
e0aa795754 Merge pull request #243403 from mjbvz/warm-rook
Add extra catch around package manager
2025-03-14 15:56:27 -07:00
Megan Rogge
da8479d178 timeout if terminal completion provider takes too long (#243487)
fix #243355
2025-03-14 19:53:07 +00:00
Daniel Imms
8005309665 Merge pull request #242121 from dibarbet/csharp_on_enter_rule_updates
Update C# onEnterRules to account for documentation comments
2025-03-14 11:03:54 -07:00
Ladislau Szomoru
0a7b6a0f8b Git - add commit details to ref pickers (#243582)
* Refactor ref parsing

* Initial implementation of getting the commit details

* Show additional information in the pickers
2025-03-14 10:52:13 -07:00
Ladislau Szomoru
7c46bee91e Git - handle both absolute and relative paths (#243571) 2025-03-14 17:25:33 +01:00
Megan Rogge
8bbbc45f4f add builtin fish arg/description/documentation to suggestion (#243271) 2025-03-13 22:28:50 +00:00
Matt Bierner
b61d46c3e4 Add extra catch around package manager 2025-03-12 16:58:50 -07:00
Oleg Solomko
c67dcc317d II of markdown comment parser, add base @assertNotConsumed decorator 2025-03-12 12:22:48 -07:00
Matt Bierner
dd130c3e06 Merge pull request #243368 from mjbvz/icy-kingfisher
Don't duplicate body in md preview
2025-03-12 09:21:15 -07:00
Matt Bierner
0a66642a04 Don't duplicate body in md preview
Fixes #243340
2025-03-12 09:07:34 -07:00
Connor Peet
279244f232 Merge pull request #243221 from microsoft/connor4312/mcp-1
mcp: initial work
2025-03-11 14:47:49 -07:00
Daniel Imms
c5e6f13c4b Merge pull request #243257 from microsoft/tyriar/sequences_cleanup
Capture all OSC sequences and ESC sequences
2025-03-11 13:54:33 -07:00
Daniel Imms
d9b76ec948 Fix extension host locking up when using terminal suggest 2025-03-11 13:35:18 -07:00
Daniel Imms
e9f1d10a3a Capture all OSC sequences and ESC sequences
Part of microsoft/vscode-copilot#14072
2025-03-11 12:57:19 -07:00
Connor Peet
4fda13acb3 Merge remote-tracking branch 'origin/main' into connor4312/mcp-1 2025-03-11 08:36:46 -07:00
Connor Peet
81775e7ade mcp: make discovery good
- There's an mcpDiscoveryRegistry that allows components to register in
  how they discover MCP servers.
- Config discovery is one of these. Figured out all the bits for a
  standalone file config shebang. Duplication there that could be
  cleaned up but it works.
- The others are remote and local filesystem discovery. I ended up
  making another message channel for the main process/remote server to
  get a couple environment variables we need since I didn't see anything
  generic for this already(?)

![](https://memes.peet.io/img/25-03-29927218-daa9-4206-8cef-29992850d9ba.mp4)
2025-03-10 23:06:29 -07:00
Megan Rogge
393f929eff add getInstalledExtensions generators (#242704) 2025-03-10 20:48:00 +00:00
Alex Ross
da2bbdda80 tree-sitter doesn't apply some scopes (part 3) (#243088)
Fixes #241715
2025-03-10 10:17:02 -07:00
Daniel Imms
4c1fe96dde Fix git aliases not completing
Fixes #240374
2025-03-10 06:15:49 -07:00
Benjamin Pasero
d70596e87b Chat-related commands should not be available on web (without backend) (fix #241873) (#242954)
* Chat-related commands should not be available on web (without backend) (fix #241873)

* Remove notebook.cellOutput.addToChat from command palette

* Only show "Toggle agent mode" when chat enabled

* Show notebook.cellOutput.addToChat only when chat enabled

---------

Co-authored-by: Rob Lourens <roblourens@gmail.com>
2025-03-08 18:58:26 +01:00
Daniel Imms
6c1afa4f7d Remove compile workarounds in upstream specs
Part of #242795
2025-03-08 06:51:01 -08:00
Tyler James Leonhardt
739de723a5 Fix ScopeData so that tenantId truly is only a GUID (#242929)
Fixes https://github.com/microsoft/vscode/issues/242839
2025-03-07 14:46:25 -08:00
Aaron Munger
e5ac650981 bump default nb format version (#242741)
* bump default nb format version

* update tests

---------

Co-authored-by: amunger <>
2025-03-07 20:58:55 +01:00
Aaron Munger
469d54e912 call the generator function (#242912)
call the function

Co-authored-by: amunger <>
2025-03-07 10:54:22 -08:00
Daniel Imms
889e7ee6ba Merge pull request #242798 from microsoft/tyriar/242798_fig_ups
Make upstream fig specs folder readonly
2025-03-07 09:34:32 -08:00
Ladislau Szomoru
04260cb17b Git - use relative path when running git commands (#242889) 2025-03-07 16:30:39 +01:00
Daniel Imms
e98b8e124e Remove tsconfig changes and amend specs 2025-03-06 05:21:21 -08:00
Daniel Imms
4215782c25 Fix indentation mapping 2025-03-06 04:31:53 -08:00
Daniel Imms
2c3b007405 Move all upstream fig spec modifications into scripts
Part of #242798
2025-03-06 04:25:33 -08:00
Tyler James Leonhardt
14324bbbc2 Remove old client id versioning code (#242760)
We're not doing this anymore and our default client id will be "upgraded" by the identity team.
2025-03-06 11:56:44 +09:00
Tyler James Leonhardt
eab6f90c72 Better lifecycle handling (#242758)
I moved to a factory model because there was just so much that needed to be async.

I think the amount of async code will be reduced in the future as we remove some migration logic, but this makes sure we don't accidentally create instances without awaiting their initialization.
2025-03-06 02:50:14 +01:00
Tyler James Leonhardt
9e0461087b Make account access cross client ids (#242721)
The point here is that the user already allowed access to the account for one client id, so that should just apply to any client id that is being used since:
* If we don't actually _have_ an auth token, the user will be asked to log in - so they will see a prompt as expected
* If we _do_ have an auth token, then we rely on extension auth access to gate access to the account

Fixes https://github.com/microsoft/vscode/issues/241526
2025-03-05 20:58:49 +01:00
Tyler James Leonhardt
95ab795ff0 Detach authority/tenant from the PublicClientApp (#242719)
everything
2025-03-05 19:55:10 +01:00
Megan Rogge
0b257aaeb4 add --locate-shell-integration-path to code spec with suggestions (#242708)
fix #242467
2025-03-05 18:41:09 +00:00
Alex Ross
dfcb5f367c Night Owl Light appears much more blue with Tree Sitter highlighting (#242058)
* Night Owl Light appears much more blue with Tree Sitter highlighting
Fixes #241887

* Fix template strings

* Fix tests

* Fix tests
2025-03-05 09:37:10 -08:00
Megan Rogge
bfafb935b2 Merge pull request #242585 from microsoft/embarrassing-snail
ensure alias value is used for spec when generating completions
2025-03-05 15:41:49 +01:00
Aiday Marlen Kyzy
fb3a36133e Removing double slash from wtihin regex in onEnter rule (#242679)
removing double slash from wtihin regex in onEnter rule
2025-03-05 12:28:46 +01:00
Alex Ross
5ff58539b4 Support targeting multiple scopes in a theme with tree sitter (#241703)
* Support targeting multiple scopes in a theme with tree sitter

* Fix tests

* Respond to PR feedback

* Fix tests
2025-03-05 11:07:56 +00:00
Ladislau Szomoru
d234a62e39 Git - remove diffCommand proposal (#242675) 2025-03-05 11:44:12 +01:00
Ladislau Szomoru
9fbff868fd Git - use editorInlayHint.foreground for the git blame editor decoration as it is lighter than editorCodeLens.foreground (#242665) 2025-03-05 10:08:45 +01:00
Megan Rogge
04a1f0815a get aliases via login shell for mac (#242588)
fixes #241824
2025-03-04 11:16:49 -08:00
Ladislau Szomoru
f7bc839df9 Git - 💄 add path delimiter when calling git blame (#242553) 2025-03-04 13:04:14 +01:00