Commit Graph

143216 Commits

Author SHA1 Message Date
Benjamin Pasero
6cbc8d53ff untitled - fix leaking models (#286482) 2026-01-08 07:22:28 +01:00
Benjamin Pasero
935ce47800 debt - cleanup some todos (#286481) 2026-01-08 07:21:45 +01:00
Benjamin Pasero
851852ceca Smoke test failure: verifies that "hot exit" works for dirty files (fix #286330) (#286333) 2026-01-08 06:36:43 +01:00
Copilot
ace694a6aa Save as doesn't keep identation and end of line sequence (fix #285514) (#286110)
* Initial plan

* Fix Save As to preserve indentation and EOL settings

When using Save As, the target file now preserves the source file's:
- Indentation settings (insertSpaces, tabSize, indentSize)
- End-of-line sequence (LF vs CRLF)

This ensures that user preferences like using tabs instead of spaces
and LF instead of CRLF are maintained when saving to a new file.

Added test to verify the fix works correctly.

Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>

* Use EndOfLineSequence enum constant instead of magic number

Improved code readability by using EndOfLineSequence.LF instead of 0.
This addresses code review feedback.

Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>

* Improve test readability by extracting target options

Extract targetOptions to a variable to avoid repetitive getOptions() calls.
This addresses code review feedback.

Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>

* undo test

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: bpasero <900690+bpasero@users.noreply.github.com>
Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2026-01-08 06:36:27 +01:00
Connor Peet
f368d57108 chat: cache variable part of dataId in request hash (#286458)
- Make IChatRequestVariableEntry readonly in the type signatures where
  variables are passed/stored to reduce aliasing issues
- Cache the hash result for variables in ChatRequestViewModel.dataId to
  avoid recalculating the same hash repeatedly. This improves performance
  when the same variables array is queried multiple times.

Fixes https://github.com/microsoft/vscode/issues/286450

(Commit message generated by Copilot)

rm unused import
2026-01-07 19:06:33 -08:00
dependabot[bot]
9ea3725fc6 Bump @modelcontextprotocol/sdk from 1.24.0 to 1.25.2 in /test/mcp (#286391)
Bumps [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk) from 1.24.0 to 1.25.2.
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/1.24.0...v1.25.2)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.25.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-07 17:01:09 -08:00
Connor Peet
c21cd6dbeb mcp: update tasks to spec, fix not restoring after hiding sidebar (#286447)
- Adopt rename viewport->containerDimensions
- Add some code to fix the postMessage.source validation issues
- Fix apps not restoring when chat is remounted
2026-01-07 16:03:04 -08:00
Connor Peet
43629e0220 chat: store binary attachments as base64 (#286436)
Refs https://github.com/microsoft/vscode/issues/285251#issuecomment-3717207362
2026-01-07 15:30:57 -08:00
dependabot[bot]
db52340cd8 Bump @playwright/mcp from 0.0.37 to 0.0.40 in /test/mcp (#286425)
Bumps [@playwright/mcp](https://github.com/microsoft/playwright-mcp) from 0.0.37 to 0.0.40.
- [Release notes](https://github.com/microsoft/playwright-mcp/releases)
- [Commits](https://github.com/microsoft/playwright-mcp/compare/v0.0.37...v0.0.40)

---
updated-dependencies:
- dependency-name: "@playwright/mcp"
  dependency-version: 0.0.40
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-07 14:50:00 -08:00
Justin Chen
56b2d5fcde edit markdown parts in collapsible part (#286301)
* edit markdown parts in collapsible part

* remove whitespace

* address some comments and remove a lot of unnecessary code

* remove some unused functions

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* extra whitespace

* Update src/vs/workbench/contrib/chat/browser/widget/chatListRenderer.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-08 06:36:41 +08:00
Ross Wollman
a03084b22a Merge pull request #286444 from microsoft/chat-import-programmatic
Resolves #283954.

1. Update workbench.action.chat.import to non-interactively accept filepath for import.
2. Accept `target` for location chat will be revived to.
2026-01-07 22:30:30 +00:00
Josh Spicer
0ccfbc0da9 bump copyright (#286438) 2026-01-07 13:52:15 -08:00
Osvaldo Ortega
e166b7b679 Revert "Revert "debt - remove AMD support of VSCode for web"" (#286423)
Revert "Revert "debt - remove AMD support of VSCode for web" (#286421)"

This reverts commit 84ce6e1a98.
2026-01-07 13:02:55 -08:00
Ladislau Szomoru
734c24e062 SCM - add missing filter clause to visible repositories (#286431) 2026-01-07 20:50:35 +00:00
Josh Spicer
7e1838ed22 bump to 1.109 (#286424)
ref https://github.com/microsoft/vscode/issues/285989
2026-01-07 20:00:53 +00:00
Connor Peet
ec711a3d38 chat: support MCP apps (#285864)
* wip

* wip

* wip

* works

* add a config option

* copilot comments

* simplify and polish
2026-01-07 11:39:38 -08:00
Osvaldo Ortega
84ce6e1a98 Revert "debt - remove AMD support of VSCode for web" (#286421)
Revert "debt - remove AMD support of VSCode for web (#285230)"

This reverts commit 74c4ecddf7.
2026-01-07 19:30:20 +00:00
Anthony Kim
8268e617ba Properly account for tabs when announcing col number (#286412) 2026-01-07 19:01:03 +00:00
Logan Ramos
075474a037 Bump distro (#286410) 2026-01-07 18:35:56 +00:00
Matt Bierner
6c4600652f Merge pull request #286399 from mjbvz/dev/mjbvz/sensible-wildebeest
Remove `provideNewChatSessionItem`
2026-01-07 10:03:22 -08:00
Matt Bierner
dfba89f602 Remove provideNewChatSessionItem
Fixes #282763
2026-01-07 09:32:04 -08:00
Benjamin Pasero
0a29012f26 Memory leak related to diff editor (fix #286336) (#286385) 2026-01-07 16:52:01 +00:00
Dmitriy Vasyura
2294cd06ff Merge pull request #286383 from microsoft/dev/dmitriv/model-picker-tooltip
Combine action and warning tooltip text into a single string in getHoverContents
2026-01-07 17:45:41 +01:00
Simon Siefke
dc178377f2 fix: memory leak call stack widget (#286246)
fix: memory leak in call stack widget
2026-01-07 16:32:34 +00:00
Dmitriy Vasyura
f45e849bc9 Merge branch 'main' into dev/dmitriv/model-picker-tooltip 2026-01-07 17:13:11 +01:00
Dmitriy Vasyura
87b50d1ad3 Combine action and warning tooltip text into a single string in getHoverContents 2026-01-07 16:47:08 +01:00
Alexandru Dima
b13bafae49 Merge pull request #286368 from microsoft/alexd/tropical-mule
Attempt to improve situation for very early callers of activateByEvent using ActivationKind.Immediate
2026-01-07 16:15:11 +01:00
Daniel Imms
2ab78a0947 Merge pull request #286363 from microsoft/tyriar/i6524
Strip quotes as needed from redirection paths
2026-01-07 07:13:57 -08:00
Alex Dima
4770c8ff7b Attempt to improve situation for very early callers of activateByEvent using ActivationKind.Immediate 2026-01-07 15:43:55 +01:00
Daniel Imms
7cc9ef3780 Address feedback 2026-01-07 06:21:26 -08:00
Daniel Imms
62172cc228 Remove unneeded jsdoc 2026-01-07 06:20:12 -08:00
Alex Dima
d4244438cb Refactor: Encapsulate _initialize waiting 2026-01-07 15:11:36 +01:00
Daniel Imms
cf21a7ba42 Strip quotes as needed from redirection paths
Fixes microsoft/vscode-internalbacklog#6524
2026-01-07 06:07:20 -08:00
Daniel Imms
ca44c15e8a Merge pull request #286350 from microsoft/tyriar/286139
Tweak wording when adding rules
2026-01-07 05:41:24 -08:00
Daniel Imms
0a48f4cabe Merge pull request #286347 from microsoft/tyriar/286067
Tweak wording of suggest selection mode hover
2026-01-07 05:40:34 -08:00
Daniel Imms
4f2819d5d8 Tweak wording when adding rules
Fixes #286139
2026-01-07 05:02:55 -08:00
Daniel Imms
6f88b8d4dc Tweak wording of suggest selection mode hover
Fixes #286067
2026-01-07 04:34:42 -08:00
Martin Aeschlimann
42434d7c15 Can't preview custom agents' markdown files (#286331) 2026-01-07 10:46:21 +00:00
Benjamin Pasero
fc07512ec0 Strange UI behaviour when Show Agent Session sidebar (fix #286166) (#286327) 2026-01-07 10:21:50 +00:00
Benjamin Pasero
78444f420d Agent sessions - back button in the title feedback (fix #286098) (#286321) 2026-01-07 09:16:17 +00:00
Dmitriy Vasyura
f9fedc5f60 Merge pull request #286317 from microsoft/dev/dmitriv/align-resourceUri-props-jdoc
Make JDoc on `resourceUri` properties in `TreeItem` and `QuickPickItem` more consistent
2026-01-07 09:50:11 +01:00
Dmitriy Vasyura
b3200ed763 Make JDoc on resourceUri properties in TreeItem and QuickPickItem more consistent 2026-01-07 09:28:33 +01:00
Benjamin Pasero
09952bd405 "Search with AI" option shows even if you have "Disable AI Features" enabled (fix #283174) (#286307)
* "Search with AI" option shows even if you have "Disable AI Features" enabled (fix #283174)

* Update src/vs/workbench/api/browser/mainThreadSearch.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-07 08:04:47 +00:00
Benjamin Pasero
90191d5e4b agent sessions - trace logging to diagnose issues resolving (#286305) 2026-01-07 07:25:46 +00:00
Connor Peet
3d862df214 chat: add confirmation not needed reason to tool invocations (#286257)
* chat: add confirmation not needed reason to tool invocations

Adds a 'confirmationNotNeededReason' field to tool confirmation messages
to display why a tool didn't require user confirmation. This makes fetch
results more consistent with other tool calls by providing transparency
about auto-approval decisions.

- Adds confirmationNotNeededReason property to IToolConfirmationMessages
- Populates reason in FetchWebPageTool when URL is mentioned in prompt
- Updates ChatToolInvocation to include reason in confirmed state
- Extracts tool part utilities into shared module for reuse
- Improves UI consistency with confirmation status display

Fixes https://github.com/microsoft/vscode/issues/282238

(Commit message generated by Copilot)

* Update src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatCollapsibleContentPart.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-06 20:01:45 -08:00
Connor Peet
d1d43fd0de testing: fix duplicated command in command palette (#286279)
Closes https://github.com/microsoft/vscode/issues/258967
2026-01-06 19:59:46 -08:00
Connor Peet
004cb2e1d9 chat: fix modified state after accepting agent edits with setContents (#286253)
When setContents is called with modified agent edits, we need to ensure
that if the file was already in an accepted state, we restore that state
after applying the edits. This prevents files from unexpectedly becoming
modified again after edit acceptance.

- Check if entry was in Modified state before applying agent edits
- Restore accepted state if the file wasn't already modified
- Ensures files that were explicitly accepted remain in accepted state

Fixes https://github.com/microsoft/vscode/issues/285733

(Commit message generated by Copilot)
2026-01-06 16:54:47 -08:00
Anthony Kim
ca80d6a570 Fix regression package.json task fail to re-run (#286230)
* Fix regression package.json task fail to re-run

* Update src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* revert  copilot changes

* check for 1 or 127 for command not found

* Check to see if exitCode is none zero when showing warning

* Update to only watch for 1 or 127

* use !success || (success.exitCode !== undefined && success.exitCode !== 0)

* Use typeof success.exitCode number

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-07 00:04:10 +00:00
Tyler James Leonhardt
8bb40dd27b Fixes one instance causing "Chat not available" (#286252)
Fixes https://github.com/microsoft/vscode/issues/280797
2026-01-07 00:00:36 +00:00
Connor Peet
d07da7b491 chat: fix MCP tool confirmation quick tree hide timing (#286235)
Moves the quickTree.hide() call inside the conditional block to ensure it
only hides after the onDidOpen callback has been invoked for 'manage' items.
This prevents the tree from closing prematurely before the manage action
has completed.

Fixes https://github.com/microsoft/vscode/issues/275102

(Commit message generated by Copilot)
2026-01-06 15:32:39 -08:00