Skip to content

Commit

Permalink
Version 4.1:
Browse files Browse the repository at this point in the history
+ Added license (under GNU GPL Version 3)
+ Showed #region and #endregion on Navigation Bar
+ Supported partial class in Navigation Bar
+ Added more declaration info for method and local in Super Quick Info
+ Super Quick Info rendered numeric and bullet list in XML Doc
+ Added "Surround with", "Toggle parentheses", and comment commands for XML Doc in Smart Bar
+ Added Markdown support for "Markdown editor" extension
+ Usability enhancements
  • Loading branch information
wmjordan committed Nov 3, 2018
1 parent b1f2385 commit 45fbf3a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions Codist/Classifiers/IBookmarkedSymbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ interface IBookmarkedSymbol : IEquatable<IBookmarkedSymbol>
{
string Name { get; }
SymbolKind Kind { get; }
SyntaxReference Reference { get; }
IBookmarkedSymbolType ContainingType { get; }
IBookmarkedSymbolType MemberType { get; }
int ImageId { get; }
Expand Down
5 changes: 5 additions & 0 deletions Codist/Classifiers/SymbolMarkManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
using Microsoft.VisualStudio.Text.Classification;

Expand Down Expand Up @@ -53,6 +54,7 @@ static int GetHashCode(IBookmarkedSymbol symbol) {
static int GetHashCode(IBookmarkedSymbolType symbol) {
return symbol.Name.GetHashCode() + ((int)symbol.TypeKind * 17);
}

sealed class BookmarkedSymbol : IBookmarkedSymbol, IEquatable<IBookmarkedSymbol>
{
public string Name { get; }
Expand All @@ -61,6 +63,7 @@ sealed class BookmarkedSymbol : IBookmarkedSymbol, IEquatable<IBookmarkedSymbol>
public IBookmarkedSymbolType MemberType { get; }
public int ImageId { get; }
public string DisplayString { get; }
public SyntaxReference Reference { get; }

public BookmarkedSymbol(ISymbol symbol) {
Name = symbol.Name;
Expand All @@ -70,6 +73,7 @@ public BookmarkedSymbol(ISymbol symbol) {
MemberType = rt != null ? new BookmarkedSymbolType(rt) : EmptyBookmarkedSymbolType.Instance;
ImageId = symbol.GetImageId();
DisplayString = symbol.ToDisplayString();
Reference = symbol.DeclaringSyntaxReferences.FirstOrDefault();
}

public bool Equals(IBookmarkedSymbol other) {
Expand Down Expand Up @@ -146,6 +150,7 @@ public IBookmarkedSymbolType MemberType {
}
public int ImageId => _Symbol.GetImageId();
public string DisplayString => _Symbol.ToDisplayString(WpfHelper.MemberNameFormat);
public SyntaxReference Reference => _Symbol.DeclaringSyntaxReferences.FirstOrDefault();

public bool Equals(IBookmarkedSymbol other) {
return other != null && other.Kind == Kind && other.Name == Name
Expand Down
4 changes: 2 additions & 2 deletions Codist/CodistPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Codist
/// <para>The project consists of the following namespace: <see cref="SyntaxHighlight"/> backed by <see cref="Classifiers"/>, <see cref="SmartBars"/>, <see cref="QuickInfo"/>, <see cref="Margins"/>, <see cref="NaviBar"/> etc.</para>
/// </summary>
[PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)]
[InstalledProductRegistration("#110", "#112", "4.0", IconResourceID = 400)] // Information on this package for Help/About
[InstalledProductRegistration("#110", "#112", "4.1", 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 = 0)]
Expand All @@ -31,7 +31,7 @@ namespace Codist

[ProvideOptionPage(typeof(Options.SmartBar), CategorySmartBar, "General", 0, 0, true, Sort = 200)]
[ProvideMenuResource("Menus.ctmenu", 1)]
[ProvideToolWindow(typeof(Commands.SymbolFinderWindow))]
//[ProvideToolWindow(typeof(Commands.SymbolFinderWindow))]
[ProvideAutoLoad(Microsoft.VisualStudio.VSConstants.UICONTEXT.SolutionExists_string, PackageAutoLoadFlags.BackgroundLoad)]
sealed class CodistPackage : AsyncPackage
{
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("4.0.0.0")]
[assembly: AssemblyFileVersion("4.0.1.2702")]
[assembly: AssemblyFileVersion("4.1.0.2804")]
2 changes: 1 addition & 1 deletion Codist/VSPackage.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<value>Codist</value>
</data>
<data name="112" xml:space="preserve">
<value>This extension provides enhanced syntax highlighting, shows super quick info and marks interesting items on scrollbar margin.</value>
<value>This extension provides enhanced syntax highlighting, contextual tooltbar and navigation bar for code editor, shows super quick info and marks interesting items on scrollbar margin.</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="400" type="System.Resources.ResXFileRef, System.Windows.Forms">
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="4.0.1.2698" Language="en-US" Publisher="WMJ" />
<Identity Id="Codist.WMJ.c7b93d20-621f-4b21-9d28-d51157ef0b94" Version="4.1.0.2790" Language="en-US" Publisher="WMJ" />
<DisplayName>Codist</DisplayName>
<Description xml:space="preserve">A coding experience and productivity enhancer for C# programmers with advanced syntax highlight, Super Quick Info (code tooltip), Smart Bar, code navigation bar, code structure on scrollbar markers, comment tagger, and more.</Description>
<MoreInfo>https://github.com/wmjordan/Codist</MoreInfo>
Expand Down

0 comments on commit 45fbf3a

Please sign in to comment.