Skip to content

Add setting to disable blame editor decoration preview on hover#283573

Merged
dmitrivMS merged 5 commits intomainfrom
dev/dmitriv/disable-blame-preview-setting
Dec 16, 2025
Merged

Add setting to disable blame editor decoration preview on hover#283573
dmitrivMS merged 5 commits intomainfrom
dev/dmitriv/disable-blame-preview-setting

Conversation

@dmitrivMS
Copy link
Contributor

Fixes #241388

Copilot AI review requested due to automatic review settings December 15, 2025 12:47
@dmitrivMS dmitrivMS enabled auto-merge December 15, 2025 12:47
@dmitrivMS dmitrivMS requested a review from lszomoru December 15, 2025 12:47
@dmitrivMS dmitrivMS self-assigned this Dec 15, 2025
@dmitrivMS dmitrivMS added the git GIT issues label Dec 15, 2025
@vs-code-engineering vs-code-engineering bot added this to the December / January 2026 milestone Dec 15, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new boolean configuration setting git.blame.editorDecoration.disablePreview to allow users to disable the hover preview that appears when hovering over blame editor decorations. This addresses issue #241388 by giving users control over whether the hover provider is registered.

Key changes:

  • Added configuration option to disable blame decoration hover preview
  • Updated configuration change handler to respond to the new setting
  • Modified hover provider registration to respect the new setting

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
extensions/git/src/blame.ts Added logic to check disablePreview setting before registering hover provider and added configuration change listener for the new setting
extensions/git/package.json Registered new git.blame.editorDecoration.disablePreview boolean setting with default value of false
extensions/git/package.nls.json Added localization string for the new setting description

Copy link
Contributor

Copilot AI commented Dec 15, 2025

@dmitrivMS I've opened a new pull request, #283578, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 3 commits December 15, 2025 13:05
…orDecoration settings

Co-authored-by: dmitrivMS <9581278+dmitrivMS@users.noreply.github.com>
[WIP] Update to disable blame editor decoration preview setting
@lszomoru
Copy link
Member

@dmitrivMS, thanks! I have adjusted the setting name, but otherwise it looks good.

@dmitrivMS dmitrivMS merged commit 9b01c97 into main Dec 16, 2025
28 checks passed
@dmitrivMS dmitrivMS deleted the dev/dmitriv/disable-blame-preview-setting branch December 16, 2025 16:09
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

git GIT issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git › Blame › Editor Decoration: Disable Hover

5 participants