Commit Graph

131056 Commits

Author SHA1 Message Date
Connor Peet
248739282e mcp: support sse (#243621)
* mcp: support sse

Didn't seem like Claude Desktop configs have SSE support yet, but I did
the obvious of having an object with a `url`. I also added a `type`
(optional for stdio) so we can better disambiguate types of configs.

Example .vscode/mcp.json:

```
{
  "servers": {
    "everything": {
      "type": "sse",
      "url": "http://localhost:3001/sse"
    }
	}
}
```

Closes #243242

* update layer check
2025-03-15 06:32:00 +00:00
Cristopher Claeys
580daf039a Increment the request attempt in the chat retry action (#243471) 2025-03-15 00:54:45 +00:00
Rob Lourens
e56325d50d Fix multiple chat views (#243610) 2025-03-14 16:26:17 -07:00
Aaron Munger
33af281d7a enable incrementing change within cell without code editor integration (#243611)
Co-authored-by: amunger <>
2025-03-14 16:25:53 -07:00
Tyler James Leonhardt
f99a4603d6 Initial cut of WebContentExtractorService & a fetch tool (#243609)
* Initial cut of WebContentExtractorService & a fetch tool

I will likely move the tool into Copilot so it can take advantage of prompt-tsx and embeddings indexing... but this is the first cut to play around with it.

This leverages Chrome DevTools Protocol's `Accessibility.getFullAXTree` command in order to get a representation of a page while marking what is useful on the page and what is not. We take the output of the command and turn it into a string that the caller can easily consume. This transformer will get more sophisticated over time to make sure we keep content that's important, and ditch content that is not.

On the tool side of things... this implements a Confirmation flow that verifies if the urls being requested is a trusted domain. We are _rendering_ these urls (albiet, sandboxed without JS) so we want to make sure they're safe. If it's not trusted, they'll be asked to confirm.

* fix naming
2025-03-14 16:25:06 -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
Connor Peet
3258e0cd7e mcp: compress tool prefix length (#243607)
* mcp: compress tool prefix length

Use a simple sha1 hash to avoid collisions between tool names instead of
the full collection ID, fixes https://github.com/microsoft/vscode/issues/243602

* fixup tests
2025-03-14 23:53:36 +01:00
Connor Peet
9deea7a8b0 MCP: polish trust dialog (#243601)
* MCP: polish trust dialog

Also make sure dialog.show() resolves when it's disposed.

Fixes #243561

* fixup tests
2025-03-14 23:37:27 +01:00
Connor Peet
bbbddf72da mcp: cleanup tool registration to diff (#243605) 2025-03-14 22:32:49 +00:00
Daniel Imms
99ec831e54 Merge pull request #243597 from microsoft/tyriar/243557
Ensure sorting is consistent by only entering file block for files
2025-03-14 14:33:35 -07:00
Josh Spicer
647e41fe87 Boolean policy (#243594)
boolean policy
2025-03-14 14:19:35 -07:00
Connor Peet
3e6950ca7d MCP: fix "server options" doesn't seem to do anything (#243600)
Fixes #243583
2025-03-14 21:55:21 +01: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
2f097f5998 Ensure sorting is consistent by only entering file block for files
Fixes #243557
2025-03-14 12:43:01 -07:00
Aaron Munger
d6f552a887 dont reuse untitled uri of existing notebookEditorModel (#243591)
Co-authored-by: amunger <>
2025-03-14 12:27:31 -07:00
Connor Peet
3f74e2185b MCP: proposed api to MCP configuration provider (#243473)
* wip up `McpConfigurationProvider` api

This allows to dynamically compute the well-known mcp configuration object so that config can be made simpler

* also support SSE config

* wip on more extension-contributed collections

* fixup the bugs

* fixup tests and to .d.ts todos

* * use `ExtensionPoint#setHandler` instead of custom logic
* enforce in main thread that collection are registered

* cleanup wip

* finish cleanup

---------

Co-authored-by: Connor Peet <connor@peet.io>
2025-03-14 12:27:12 -07:00
Connor Peet
2d4d581cbb finish cleanup 2025-03-14 11:58:19 -07:00
Rob Lourens
6feadd67bf Adjust agent experiment fallback (#243588) 2025-03-14 19:20:27 +01:00
Henning Dieterichs
3e86186360 Fixes CI 2025-03-14 19:13:54 +01:00
Henning Dieterichs
03f0dcae33 Inline completion property renames 2025-03-14 19:13:54 +01:00
Henning Dieterichs
4f828d3fff inline completions refactoring 2025-03-14 19:13:54 +01:00
Daniel Imms
3677c3d868 Merge pull request #243586 from microsoft/tyriar/241978
Move history restored message above the fold
2025-03-14 11:07:24 -07: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
Daniel Imms
5426dde42c Update xterm, bring in conpty resize improvements
See xtermjs/xterm.js#5321
Part of #241978
2025-03-14 11:03:16 -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
Daniel Imms
4800b15c46 Move history restored message above the fold
Part of #241978
2025-03-14 10:50:46 -07:00
Connor Peet
ba52830561 Merge remote-tracking branch 'origin/main' into joh/genetic-canidae 2025-03-14 10:17:19 -07:00
Connor Peet
f5d8885da8 cleanup wip 2025-03-14 10:17:10 -07:00
Robo
80eac34bb1 fix: pass nodecommit_pooled_pages for the renderer (#243581) 2025-03-14 18:07:50 +01:00
Sandeep Somavarapu
8c09c653cc adopt gallery manifest in server (#243580) 2025-03-14 17:59:55 +01:00
Benjamin Pasero
a88dc0ad0b editors - ensure to remove panes that fail to create (#243579) 2025-03-14 17:43:09 +01:00
Ladislau Szomoru
7c46bee91e Git - handle both absolute and relative paths (#243571) 2025-03-14 17:25:33 +01:00
Benjamin Pasero
0aa92ed833 chat - allow a setup from dialog (#243438) 2025-03-14 16:24:36 +01:00
Sandeep Somavarapu
c17dd1da05 extension gallery manifest service (#243568)
- send gallery info from workbench to shared process
2025-03-14 08:15:51 -07:00
Joel Verhagen
6363774772 Show support URL and license URL even if extension URL is not set (#243565) 2025-03-14 14:32:10 +00:00
Johannes
e1d002cb86 * use ExtensionPoint#setHandler instead of custom logic
* enforce in main thread that collection are registered
2025-03-14 15:14:53 +01:00
Daniel Imms
19bb3f16c2 Merge pull request #243563 from microsoft/tyriar/243562
Fix long multi-line command in sub-execution
2025-03-14 07:00:53 -07:00
Daniel Imms
8401a5d835 Add more complex test case 2025-03-14 06:34:51 -07:00
Daniel Imms
f172409aa1 Fix long multi-line command in sub-execution
Fixes #243562
2025-03-14 06:25:36 -07:00
Johannes Rieken
877af02b7f polish tool picker (#243560)
* reset selected tools for new chat
* honor selected tools on subsequent pick
2025-03-14 14:16:31 +01:00
Johannes
18072d9217 Merge branch 'main' into joh/genetic-canidae 2025-03-14 14:16:00 +01:00
Johannes Rieken
6da38d10e9 make select tools for all tools, not just MCP tools (#243551)
* add `ChatRequest#tools`

* make select tools for all tools, not just MCP tools

* make the select tools work with all tools, group by MCP server, extension, and rest
* fill in the new ChatRequest#selectTools API with selected tools
* have the MCP server command be its own command with its own custom rendering

* remove old comment
2025-03-14 13:41:18 +01:00
Alex Ross
082c5d8447 Do no allow LineTokens with mismatch length (#243553)
Fixes #243450
2025-03-14 13:14:03 +01:00
Alex Ross
ec682f62ef Disable tree sitter for tyepscript (#243538) 2025-03-14 10:15:20 +01:00
Connor Peet
f31df357e8 mcp: include server context in qp title (#243525)
Closes https://github.com/microsoft/vscode-copilot/issues/14237
2025-03-14 07:53:02 +01:00
Connor Peet
35614b626f Merge remote-tracking branch 'origin/main' into joh/genetic-canidae 2025-03-13 23:11:25 -07:00
Connor Peet
0f278b9a16 fixup tests and to .d.ts todos 2025-03-13 23:05:14 -07:00
Connor Peet
71fe9aa9d2 fixup the bugs 2025-03-13 22:42:20 -07:00
Rob Lourens
76be4c5d67 Fix "open chat in editor" not working when no chats are open (#243519)
Fix microsoft/vscode-copilot-release#6438
2025-03-13 22:03:16 -07:00
Rob Lourens
2c7a028381 Fix inline chat after updating to use "edit2" in the extension (#243507)
Bump API version because these have to be aligned
2025-03-13 20:34:27 -07:00