Skip to content

Pzhu/feature custom snooze time - #298934

Merged
Benjamin Christopher Simmonds (benibenj) merged 5 commits into
microsoft:mainfrom
Pengkun-ZHU:pzhu/feature-custom-snooze-time
May 4, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 5 commits into
microsoft:mainfrom
Pengkun-ZHU:pzhu/feature-custom-snooze-time

Conversation

@Pengkun-ZHU

Copy link
Copy Markdown
Contributor

Fixes #288770

Feature

Add an option named "Custom" in the snooze quick pick.

How to test

  1. Go to snooze quick pick
  2. Select "Custom"
  3. Enter a positive number without sign, fraction number is supported
  4. Observe the snooze time countdown, or equivalently try with the inline suggestion when it is back online after timeout. N.B. there currently exists an issue that after timeout, you need to conduct a related operation in order to get the inline suggestion back, I'll file the issue sepaxarately and mention here

Screen recording showing the fix works

Screen.Recording.2026-02-28.at.00.20.19.MOV
Screen.Recording.2026-03-03.at.01.22.40.MOV

Copilot AI review requested due to automatic review settings March 3, 2026 11:22
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ladislau Szomoru (@lszomoru)

Matched files:

  • extensions/git/src/fileSystemProvider.ts
  • extensions/git/src/test/git.test.ts

@Pengkun-ZHU

Copy link
Copy Markdown
Contributor Author

I wrongly mixed two commits... I'll correct it a bit later.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “Custom” option to the inline suggestions snooze duration picker and updates the Chat Status Dashboard snooze UI to route initial snoozes through the command-based picker flow.

Changes:

  • Add “Custom...” duration entry that prompts for a user-provided snooze duration (minutes, including fractional values).
  • Update Chat Status Dashboard snooze button behavior: open the duration picker when starting snooze; keep “+5 min” extend behavior while already snoozing.
  • Modify Git extension git: filesystem provider behavior for ref === '~' (diff-original) to try index first, then HEAD, and add related tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.ts Adjusts snooze UI strings and changes click behavior to invoke the snooze picker command when not already snoozing.
src/vs/editor/browser/services/inlineCompletionsService.ts Adds “Custom...” option and implements a quick input prompt to collect a custom snooze duration.
extensions/git/src/fileSystemProvider.ts Adds fallback logic for ref === '~' in stat/readFile by probing index then HEAD.
extensions/git/src/test/git.test.ts Adds tests intended to validate diff-original fallback behavior (currently via a local simulation helper).

Comment thread extensions/git/src/test/git.test.ts Resolved
@Pengkun-ZHU
pzhu (Pengkun-ZHU) force-pushed the pzhu/feature-custom-snooze-time branch from 1025112 to 2a0d577 Compare March 3, 2026 14:11
@Pengkun-ZHU

Copy link
Copy Markdown
Contributor Author

Removed the wrong commit. Kindly ignore the Copilot review on those removed files.

@Pengkun-ZHU
pzhu (Pengkun-ZHU) marked this pull request as ready for review March 3, 2026 14:15
@Pengkun-ZHU

Copy link
Copy Markdown
Contributor Author

A screen recording to demonstrate latest changes as of this comment:

Screen.Recording.2026-03-06.at.00.15.08.mov

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost done, just 2 small things to undo

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 4847e79 into microsoft:main May 4, 2026
39 of 41 checks passed
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 4, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support custom inline suggestion snooze durations

4 participants