Skip to content

Commit afa5fa8

Browse files
Slava BuynovSlava Buynov
authored andcommitted
Merge branch 'release/2.9.40'
2 parents 331b893 + 31d3aa1 commit afa5fa8

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

QuickNavigate/Forms/Nodes.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,25 @@ public ClassNode([NotNull] ClassModel model, int imageIndex, int selectedImageIn
5858
{
5959
Model = model;
6060
Name = model.Name;
61-
InFile = model.InFile;
62-
Package = InFile != null ? InFile.Package : string.Empty;
61+
InFile = model.InFile ?? FileModel.Ignore;
62+
Package = InFile.Package;
6363
IsPrivate = (model.Access & Visibility.Private) > 0;
6464
Text = Name;
6565
Tag = "class";
6666
In = Package;
67-
if (!string.IsNullOrEmpty(Package))
67+
if (IsPrivate)
6868
{
69-
if (IsPrivate) In = $"{Package}.{Path.GetFileNameWithoutExtension(InFile.FileName)}";
69+
In = Path.GetFileNameWithoutExtension(InFile.FileName);
70+
if (!string.IsNullOrEmpty(Package)) In = $"{Package}.{In}";
71+
}
72+
if (InFile.Context.Features.hasModules)
73+
{
74+
var module = InFile.Module;
75+
if (!string.IsNullOrEmpty(module) && module != Name) In = !string.IsNullOrEmpty(In)? $"{In}.{module}" : module;
7076
}
71-
else if (IsPrivate) In = Path.GetFileNameWithoutExtension(InFile.FileName);
7277
ImageIndex = imageIndex;
7378
SelectedImageIndex = selectedImageIndex;
74-
if (InFile == null) return;
79+
if (InFile == FileModel.Ignore) return;
7580
var match = Regex.Match(InFile.FileName, @"\S*.swc", RegexOptions.Compiled);
7681
if (match.Success) Module = Path.GetFileName(match.Value);
7782
}

QuickNavigate/Forms/TypeExplorerForm.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ void RefreshTree()
168168

169169
void FillNodes(TreeNodeCollection nodes)
170170
{
171-
var openedTypes = FilterTypes(this.openedTypes.ToList());
172-
if (openedTypes.Count > 0) nodes.AddRange(CreateNodes(openedTypes, string.Empty).ToArray());
171+
var types = FilterTypes(openedTypes.ToList());
172+
if (types.Count > 0) nodes.AddRange(CreateNodes(types, string.Empty).ToArray());
173173
}
174174

175175
void FillNodes(TreeNodeCollection nodes, string search)

QuickNavigate/QuickNavigate.csproj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969
</Target>
7070
-->
7171
<ItemGroup>
72-
<Reference Include="JetBrains.Annotations, Version=10.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
73-
<HintPath>..\packages\JetBrains.Annotations.10.0.0\lib\net20\JetBrains.Annotations.dll</HintPath>
72+
<Reference Include="JetBrains.Annotations, Version=10.2.1.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325, processorArchitecture=MSIL">
73+
<HintPath>..\packages\JetBrains.Annotations.10.2.1\lib\net\JetBrains.Annotations.dll</HintPath>
7474
<Private>True</Private>
7575
</Reference>
7676
<Reference Include="System" />
@@ -79,7 +79,9 @@
7979
</ItemGroup>
8080
<ItemGroup>
8181
<Compile Include="ControlClickManager.cs" />
82-
<Compile Include="Forms\ClassHierarchyForm.cs" />
82+
<Compile Include="Forms\ClassHierarchyForm.cs">
83+
<SubType>Form</SubType>
84+
</Compile>
8385
<Compile Include="Forms\ClassHierarchyForm.Designer.cs">
8486
<DependentUpon>ClassHierarchyForm.cs</DependentUpon>
8587
</Compile>
@@ -103,7 +105,9 @@
103105
<Compile Include="Forms\TypeExplorerForm.Designer.cs">
104106
<DependentUpon>TypeExplorerForm.cs</DependentUpon>
105107
</Compile>
106-
<Compile Include="Helpers\FormHelper.cs" />
108+
<Compile Include="Helpers\FormHelper.cs">
109+
<SubType>Form</SubType>
110+
</Compile>
107111
<Compile Include="Properties\AssemblyInfo.cs" />
108112
<Compile Include="PluginMain.cs" />
109113
<Compile Include="Forms\QuickOutlineForm.cs">

QuickNavigate/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="JetBrains.Annotations" version="10.0.0" targetFramework="net35" />
3+
<package id="JetBrains.Annotations" version="10.2.1" targetFramework="net35" />
44
</packages>

0 commit comments

Comments
 (0)