Skip to content

Commit d3b95e0

Browse files
authored
fix(gutter): enable mouse events for tooltip (#42)
* fix(gutter): enable mouse events for tooltip Add transparent background to gutter margin Canvas so mouse events are properly captured. WPF requires a Background to be set for hit-testing to work. * chore: remove unimplemented menu entries and settings - Remove Git Graph, File History, Line History, Compare commands from menus - Remove Git Graph settings from options page - Keep stub command files for future implementation - Remove unused command ID constants * chore: remove unused command stub files * chore: remove command stubs from project file * fix(gutter): prevent tooltip flicker by caching line number * feat(menu): move commands to Extensions > Git Ranger submenu - Create Git Ranger submenu under Extensions top-level menu - Move Toggle Inline Blame and Toggle Blame Gutter to submenu - Remove "Git Ranger:" prefix from menu items (submenu provides context) * fix(menu): use IDG_VS_MM_TOOLSADDINS for Extensions menu placement * fix(gutter): use Popup for tooltip and add TextChanges flag - Replace WPF ToolTip with Popup for reliable dynamic tooltips - Add TextChanges CommandFlag to allow Enable/Disable text updates * fix(gutter): prevent tooltip flicker with line tracking * fix(gutter): disable popup hit testing to prevent mouse event interference * fix(gutter): use PreviewMouseLeftButtonUp for reliable click handling * fix(gutter): use tracked tooltip line for click handler * fix(gutter): use PreviewMouseLeftButtonDown for click handling
1 parent 7d28838 commit d3b95e0

File tree

9 files changed

+103
-377
lines changed

9 files changed

+103
-377
lines changed

src/CodingWithCalvin.GitRanger/CodingWithCalvin.GitRanger.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@
5959
<Compile Include="GitRangerPackage.cs" />
6060
<Compile Include="source.extension.cs" />
6161
<Compile Include="Commands\BlameCommands.cs" />
62-
<Compile Include="Commands\HistoryCommands.cs" />
63-
<Compile Include="Commands\GraphCommands.cs" />
6462
<Compile Include="Services\GitService.cs" />
6563
<Compile Include="Services\ThemeService.cs" />
6664
<Compile Include="Services\BlameService.cs" />

src/CodingWithCalvin.GitRanger/Commands/BlameCommands.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ private static void OnBeforeQueryStatusToggleInlineBlame(object sender, EventArg
4949
var options = GeneralOptions.Instance;
5050
var isEnabled = options?.EnableInlineBlame ?? true;
5151
command.Text = isEnabled
52-
? "Git Ranger: Disable Inline Blame"
53-
: "Git Ranger: Enable Inline Blame";
52+
? "Disable Inline Blame"
53+
: "Enable Inline Blame";
5454
command.Enabled = true;
5555
command.Visible = true;
5656
}
@@ -80,8 +80,8 @@ private static void OnBeforeQueryStatusToggleBlameGutter(object sender, EventArg
8080
var options = GeneralOptions.Instance;
8181
var isEnabled = options?.EnableBlameGutter ?? true;
8282
command.Text = isEnabled
83-
? "Git Ranger: Disable Blame Gutter"
84-
: "Git Ranger: Enable Blame Gutter";
83+
? "Disable Blame Gutter"
84+
: "Enable Blame Gutter";
8585
command.Enabled = true;
8686
command.Visible = true;
8787
}

src/CodingWithCalvin.GitRanger/Commands/GraphCommands.cs

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/CodingWithCalvin.GitRanger/Commands/HistoryCommands.cs

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)