Commit Graph
134342 Commits
Author SHA1 Message Date
Connor Peet 810f7a00a1 mcp: fix test error in McpStdioStateHandler (#251401) 2025-06-13 09:15:00 -07:00
Bhavya U a7208460fe fix: update reason for closing duplicate issues in commands.json (#251400) 2025-06-13 09:10:38 -07:00
Daniel Imms 17447d74db Merge pull request #250771 from microsoft/copilot/fix-250770
Add terminal history commands to view overflow menu
2025-06-13 09:03:55 -07:00
S. M. Mohiuddin Khan Shiam 70f8e0e38f Fix incorrect SHA-1 commit regex in [version_manager.rs](cci:7://file:///d:/Github/vscode/cli/src/desktop/version_manager.rs:0:0-0:0) (#251329)
The CLI’s `RequestedVersion::Commit` parser rejected many valid commit hashes and allowed invalid ones due to an erroneous regular expression:

* **Old pattern:** `^[a-e0-f]{40}$`
  * Allowed non-hex characters outside the `a–f` range
  * Excluded the valid hex digit `f` and any uppercase letters
* **New pattern:** [(?i)^[0-9a-f]{40}$](cci:1://file:///d:/Github/vscode/cli/src/desktop/version_manager.rs:102:1-107:2)
  * [(?i)](cci:1://file:///d:/Github/vscode/cli/src/desktop/version_manager.rs:102:1-107:2) enables case-insensitive matching (accepts `A–F`)
  * Character class now correctly restricts input to hexadecimal digits `0-9` and `a-f`
  * Ensures the string is exactly 40 characters, matching a valid SHA-1

#### Impact

`code version use <commit>` and related commands could silently fail or accept malformed commit IDs, leading to unexpected version resolution behavior.
With this fix, only valid 40-character hexadecimal commit hashes are accepted, restoring reliable version selection and preventing subtle bugs.

#### Notes

No API changes; the fix is a single-line update in [cli/src/desktop/version_manager.rs](cci:7://file:///d:/Github/vscode/cli/src/desktop/version_manager.rs:0:0-0:0).
2025-06-13 15:40:55 +00:00
Henning Dieterichs 3fdc00409f Implements persistent middle mouse scrolling. 2025-06-13 17:38:49 +02:00
Daniel Imms 64bbbe136e Merge remote-tracking branch 'origin/main' into copilot/fix-250770 2025-06-13 08:38:42 -07:00
Henning Dieterichs 4ea56e67fa Aligns with copilot 2025-06-13 17:37:01 +02:00
Aaron Munger fafd5bfd80 update widget aria label on title switch (#251017)
* widget aria label is also observable

* update the aria label

* fix initialization

* remove unused getter
2025-06-13 07:39:47 -07:00
Benjamin Pasero 292353090d debt - inline extpath.ts into pfs.ts (#251388) 2025-06-13 16:37:16 +02:00
Tony BrixandHenning Dieterichs 2c4bd5e3a7 feat: add middle mouse button scrolling (#245882)
* feat: add middle scroll

---------

Co-authored-by: Henning Dieterichs <hdieterichs@microsoft.com>
2025-06-13 07:28:53 -07:00
Benjamin Pasero 5d1bd8f13d Revert "Fix extraction of tab title name" (#251379)
* Revert "Fix extraction of tab title name (#250621)"

This reverts commit ab6d98e599.

* skip test
2025-06-13 15:38:51 +02:00
Ladislau Szomoru ea92c32109 Git - fix race condition with computing teh branch base (#251374) 2025-06-13 13:41:51 +02:00
Benjamin Pasero f0aef94f97 chat - update badge in dock to notify when window has no focus (#251358) 2025-06-13 02:32:39 -07:00
Connor Peet 5547eb94df chat: fix not notifying window on confirmation (#251292)
Applies updated naming

Ref https://github.com/microsoft/vscode/issues/251290
2025-06-13 00:29:59 -07:00
Tyler James Leonhardt 31620a3dec Have Loopback Server flow redirect back to VS Code and make it the primary flow (#251333)
* Have Loopback Server flow redirect back to VS Code and make it the primary flow

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

* Fix test

* Fix test

* Fix other test
2025-06-13 08:14:41 +02:00
Rob Lourens 7766411d9f Add ... (#251350)
Fix microsoft/vscode-copilot#18203
2025-06-12 22:56:36 -07:00
7e4e0f4e55 mcp: implement stdio shutdown spec compliance with graceful shutdown manager (#250207)
* Initial plan for issue

* Implement MCP stdio shutdown spec compliance with graceful shutdown manager

Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>

* Add error handling and cleanup optimizations to MCP shutdown manager

Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>

* update

* cleanup

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: connor4312 <2230985+connor4312@users.noreply.github.com>
Co-authored-by: Connor Peet <connor@peet.io>
2025-06-13 01:14:07 +00:00
Justin Chen 6d2793975c undo button to undo requests, adds request in input (#251306)
change to undo, setting for exp
2025-06-12 16:31:27 -07:00
6582eb540f Fix down arrow navigation in last notebook cell to move cursor to end of line (#251156)
* Initial plan for issue

* Fix down arrow navigation in last notebook cell to move cursor to end of line

Co-authored-by: Yoyokrazy <12552271+Yoyokrazy@users.noreply.github.com>

* Add test to validate cursor position logic for last cell arrow navigation

Co-authored-by: Yoyokrazy <12552271+Yoyokrazy@users.noreply.github.com>

* Fix notebook down arrow navigation logic to move cursor to end of line

Co-authored-by: Yoyokrazy <12552271+Yoyokrazy@users.noreply.github.com>

* Implement proper down arrow navigation logic based on feedback

- Check NOTEBOOK_EDITOR_CURSOR_LINE_BOUNDARY context key
- Only move to end of line when cursor boundary is 'start' or 'none'
- Use ICellViewModel's setSelections method for cursor positioning
- Apply logic to any cell on last line, not just last cell
- Preserve existing behavior for last cell navigation

Co-authored-by: Yoyokrazy <12552271+Yoyokrazy@users.noreply.github.com>

* holy overthinking copilot

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Yoyokrazy <12552271+Yoyokrazy@users.noreply.github.com>
Co-authored-by: Michael Lively <milively@microsoft.com>
2025-06-12 15:47:30 -07:00
Daniel Imms f62c722516 Merge pull request #251316 from microsoft/tyriar/235331
Don't revive URI before sending from ext to main
2025-06-12 13:55:16 -07:00
Josh Spicer 3aaf8f9365 Adopt mcp token flag (#251297)
* adopt mcp token flag (https://github.com/microsoft/vscode-internalbacklog/issues/5514)

* dont use constant to ChatMCP

* use common/objects equals()
2025-06-12 13:40:31 -07:00
Aaron Munger 90da568e31 drop redo entries when writing new snapshots into history (#251299)
* drop redo entries when writing new snapshots into history

* undo unwanted changes
2025-06-12 13:16:55 -07:00
Daniel Imms 2f7cd441c0 Don't revive URI before sending from ext to main
Fixes #235331
2025-06-12 12:58:58 -07:00
Martin Aeschlimann 086501e7d7 move prompt file parser usages to IPromptsService (#251298) 2025-06-12 11:52:23 -07:00
Joyce ErandJustin Chen 0ab638ea0f fix: try always rendering scrollbar in chat editing file list (#232768)
Co-authored-by: Justin Chen <54879025+justschen@users.noreply.github.com>
2025-06-12 16:57:26 +00:00
Johannes Rieken c00b75d57b also use Y and N based keybindings for inline chat 2 (#251294) 2025-06-12 09:00:44 -07:00
Martin Aeschlimann ba80bf28c3 Merge pull request #251235 from microsoft/aeschli/experienced-orca
use regular chatAttachmentWidgets for prompt files
2025-06-12 17:53:08 +02:00
Johannes Rieken 89ba12c3b5 simplify dynamic variables, no more unused chat file reference fyi @aeschli (#251273) 2025-06-12 08:47:19 -07:00
Connor Peet e680d2347c mcp: avoid spamming invalid streamable http GET handlers (#251288) 2025-06-12 17:43:31 +02:00
Martin Aeschlimann 79ff867c2e ignore prompt files for implicit context 2025-06-12 17:18:03 +02:00
Lee Murray fc7a6b3ded Merge pull request #251272 from microsoft/mrleemurray/democratic-snake-salmon
update `sync` and `sync-ignored` icons
2025-06-12 12:55:09 +01:00
lemurra_microsoft 8b35fd3b88 update sync and sync-ignored icons 2025-06-12 12:33:22 +01:00
Ladislau Szomoru 9913e0238a GitHub - cleanup octokit auth (#251266)
Refactor auth
2025-06-12 12:41:33 +02:00
Henning Dieterichs 2eed366084 Fixes https://github.com/microsoft/vscode-copilot/issues/10610 2025-06-12 12:14:22 +02:00
Johannes Rieken cfa7c4d2ef more API notes (#251215)
* more API notes

https://github.com/microsoft/vscode/issues/250007

* fix compile error
2025-06-12 02:16:54 -07:00
Don JayamanneandJohannes 7443076975 Refactor ChatEditingDocument and Cell Entries to reuse code (#251050)
* Refactor ChatEditingDocument and Cell Entries to reuse code

* Updates

* wip

* Updates

* Updates

* Address code review

* make test diffing a little more realistic

* * have one method that sets/resets the content of modified and orginal
* have the method also compute the edit object
* hence, remove `originalToCurrentEdit` from snapshot data
* same naming nit (keep over accept, undo over discard)

* Register disposables

* Avoid computing diff if disposed

* Fix leaks

---------

Co-authored-by: Johannes <johannes.rieken@gmail.com>
2025-06-12 07:07:41 +02:00
Benjamin Pasero 8ece07a028 chat - when setup without dialog is done, show welcome (#251230) 2025-06-11 21:27:34 -07:00
Tyler James Leonhardt 48e4737a88 Improve async nature of register/unregister auth providers (#251244)
* Improve async nature of register/unregister auth providers

I noticed a race-condition or 2 with registering & unregistering auth providers. This change makes sure order is maintained dispite the async nature.

* real passing tests

* Try tracking disposable state
2025-06-12 05:30:29 +02:00
Tyler James Leonhardt 6ec42e43d5 Misc MCP Auth fixes (#251246)
1. only do device code flow if the server supports it
2. fix route in loopback server where error cases were going to `/` which was a typo
3. fix port listening in loopback when default port is taken
4. some servers require registration to have scopes, so passed that through
5. some types clean up
2025-06-11 17:42:51 -07:00
Matt Bierner b104f8167b Merge pull request #251228 from heoh/fix-249278
Fix markdown preview scroll crawls at EOF (fix #249278)
2025-06-11 15:33:41 -07:00
Justin Chen d03db82baf remove header for non participant messages, better references border (#251242) 2025-06-11 15:32:37 -07:00
Martin Aeschlimann 0fd5ef7300 use regular chatAttachmentWidgets for prompt files 2025-06-11 22:50:24 +02:00
Anthony Kim 768477eaff Consolidate ps1 shell integration vars into __VSCodeState (#251114)
* Consolidate vscode_ps1 var into __VSCodeState

* Remove comments
2025-06-11 12:50:03 -07:00
Raymond Zhao 5a79cf41b9 fix: tweak count widget layout (#251232) 2025-06-11 12:35:59 -07:00
Benjamin Pasero af66efed69 Ability to programmatically assign documents to open in a workspace before it's opened (fix #251202) (#251229) 2025-06-11 12:11:26 -07:00
heoh 53a4ef7018 Fix markdown preview scroll crawls at EOF (fix #249278) 2025-06-12 03:56:11 +09:00
Aiday Marlen Kyzy 080c694447 Refactoring sticky scroll widget file (#251218)
* refactoring sticky scroll widget file

* wip

* polish

* wip
2025-06-11 20:36:40 +02:00
Raymond Zhao 8def6db21b chore: bump vscode/ripgrep (#251213)
* chore: bump vscode/ripgrep

* Update error message
2025-06-11 20:12:10 +02:00
Megan Rogge 6a8e32e03f don't add \ if path already starts with that on pwsh for suggestions (#251219)
fix #25127
2025-06-11 10:33:10 -07:00
Megan Rogge d1d6762ca8 support builtin commands for git bash (#251216)
fix #248558
2025-06-11 19:24:01 +02:00