Skip to content

Commit

Permalink
Version 3.6:
Browse files Browse the repository at this point in the history
+ More code references analysis commands and more info for result items in Smart Bar
+ Breakpoint commands in Smart Bar
+ New simple syntax highlight theme
- Fixed several bugs which could crash VS
! Improved readability of Super Quick Info with VS Dark Theme
! Classified "case" and "default" labels as branching keyword
  • Loading branch information
wmjordan committed Aug 23, 2018
1 parent 8000ea3 commit 03c8cb9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Codist/CodistPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Codist
/// <para>To get loaded into VS, the package must be referred by &lt;Asset Type="Microsoft.VisualStudio.VsPackage" ...&gt; in .vsixmanifest file.</para>
/// </remarks>
[PackageRegistration(UseManagedResourcesOnly = true)]
[InstalledProductRegistration("#110", "#112", "3.5", IconResourceID = 400)] // Information on this package for Help/About
[InstalledProductRegistration("#110", "#112", "3.6", IconResourceID = 400)] // Information on this package for Help/About
[Guid(PackageGuidString)]
[ProvideOptionPage(typeof(Options.General), Constants.NameOfMe, "General", 0, 0, true)]
[ProvideOptionPage(typeof(Options.SuperQuickInfo), CategorySuperQuickInfo, "General", 0, 0, true, Sort = 10)]
Expand Down
2 changes: 1 addition & 1 deletion Codist/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersion("3.5.0.1771")]
[assembly: AssemblyFileVersion("3.6.0.1772")]
13 changes: 9 additions & 4 deletions Codist/SmartBars/SmartBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ void CreateToolBar(object dummy) {
if (View.Selection.IsEmpty || Interlocked.Exchange(ref _TimerStatus, Working) != Selecting) {
goto EXIT;
}
CreateToolBar();

EXIT:
_TimerStatus = 0;
}

void CreateToolBar() {
_ToolBarTray.Visibility = Visibility.Hidden;
ToolBar.Items.Clear();
ToolBar2.Items.Clear();
Expand All @@ -166,13 +173,12 @@ void CreateToolBar(object dummy) {
ToolBar2.Visibility = Visibility.Visible;
ToolBar2.HideOverflow();
}
_ToolBarTray.Visibility = Visibility.Visible;
_ToolBarTray.Opacity = 0.3;
_ToolBarTray.SizeChanged += ToolBarSizeChanged;
View.VisualElement.MouseMove += ViewMouseMove;

EXIT:
_TimerStatus = 0;
}

void SetToolBarPosition() {
// keep tool bar position when the selection is restored and the tool bar reappears after executing command
if (DateTime.Now > _LastExecute.AddSeconds(1)) {
Expand All @@ -185,7 +191,6 @@ void SetToolBarPosition() {
: View.ViewportRight - rs.Width);
Canvas.SetTop(_ToolBarTray, (y < 0 ? y + rs.Height + 30 : y) + View.ViewportTop);
}
_ToolBarTray.Visibility = Visibility.Visible;
}

protected virtual void AddCommands() {
Expand Down
2 changes: 1 addition & 1 deletion Codist/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="Codist.WMJ.c7b93d20-621f-4b21-9d28-d51157ef0b94" Version="3.5.1.1756" Language="en-US" Publisher="WMJ" />
<Identity Id="Codist.WMJ.c7b93d20-621f-4b21-9d28-d51157ef0b94" Version="3.6.0.1766" Language="en-US" Publisher="WMJ" />
<DisplayName>Codist</DisplayName>
<Description xml:space="preserve">A Roslyn-powered C# coding experience enhancer with advanced syntax highlight, Super Quick Info (code tooltip), Smart Bar, Code Structure Markers on scrollbar, comment tagger, and more.</Description>
<MoreInfo>https://github.com/wmjordan/Codist</MoreInfo>
Expand Down

0 comments on commit 03c8cb9

Please sign in to comment.