Skip to content

Commit 79c28eb

Browse files
committed
Merge pull request #355 from retailcoder/1.22_hotfix
1.22 hotfix
2 parents 3eef200 + dd359d4 commit 79c28eb

File tree

7 files changed

+17
-22
lines changed

7 files changed

+17
-22
lines changed

RetailCoder.VBE/Extensions/VbeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static IEnumerable<CodeModule> FindCodeModules(this VBE vbe, string proje
2929
{
3030
var matches =
3131
vbe.VBProjects.Cast<VBProject>()
32-
.Where(project => project.Name == projectName)
32+
.Where(project => project.Protection != vbext_ProjectProtection.vbext_pp_locked && project.Name == projectName)
3333
.SelectMany(project => project.VBComponents.Cast<VBComponent>()
3434
.Where(component => component.Name == componentName))
3535
.Select(component => component.CodeModule);
@@ -57,7 +57,7 @@ public static void SetSelection(this VBE vbe, QualifiedSelection selection)
5757
{
5858
//not a very robust method. Breaks if there are multiple projects with the same name.
5959
var project = vbe.VBProjects.Cast<VBProject>()
60-
.FirstOrDefault(p => p.Name == selection.QualifiedName.ProjectName);
60+
.FirstOrDefault(p => p.Protection != vbext_ProjectProtection.vbext_pp_locked && p.Name == selection.QualifiedName.ProjectName);
6161

6262
VBComponent component = null;
6363
if (project != null)

RetailCoder.VBE/Inspections/CodeInspectionResultBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public virtual QualifiedSelection QualifiedSelection
7979
public VBComponent FindComponent(VBE vbe)
8080
{
8181
return vbe.VBProjects.Cast<VBProject>()
82-
.Where(project => project.Name == QualifiedName.ProjectName)
82+
.Where(project => project.Protection != vbext_ProjectProtection.vbext_pp_locked && project.Name == QualifiedName.ProjectName)
8383
.SelectMany(project =>
8484
project.VBComponents.Cast<VBComponent>()
8585
.Where(component => component.Name == QualifiedName.ModuleName))

RetailCoder.VBE/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.21.*")]
36-
[assembly: AssemblyFileVersion("1.21.1.0")]
35+
[assembly: AssemblyVersion("1.22.*")]
36+
[assembly: AssemblyFileVersion("1.22.0.0")]

RetailCoder.VBE/UI/ToDoItems/ToDoExplorerDockablePresenter.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ private async Task<IOrderedEnumerable<ToDoItem>> GetItems()
8181
{
8282
await Task.Yield();
8383
var items = new ConcurrentBag<ToDoItem>();
84-
var projects = VBE.VBProjects.Cast<VBProject>();
84+
var projects = VBE.VBProjects.Cast<VBProject>().Where(project => project.Protection != vbext_ProjectProtection.vbext_pp_locked);
8585
Parallel.ForEach(projects,
8686
project =>
8787
{
@@ -114,9 +114,10 @@ private IEnumerable<ToDoItem> GetToDoMarkers(CommentNode comment)
114114
private void NavigateToDoItem(object sender, ToDoItemClickEventArgs e)
115115
{
116116
var projects = VBE.VBProjects.Cast<VBProject>()
117-
.Where(p => p.Name == e.SelectedItem.ProjectName
118-
&& p.VBComponents.Cast<VBComponent>()
119-
.Any(c => c.Name == e.SelectedItem.ModuleName)
117+
.Where(p => p.Protection != vbext_ProjectProtection.vbext_pp_locked
118+
&& p.Name == e.SelectedItem.ProjectName
119+
&& p.VBComponents.Cast<VBComponent>()
120+
.Any(c => c.Name == e.SelectedItem.ModuleName)
120121
);
121122

122123
if (projects == null)

RetailCoder.VBE/UI/UnitTesting/TestExplorerDockablePresenter.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void SynchronizeEngineWithIDE()
7979
try
8080
{
8181
_testEngine.AllTests = this.VBE.VBProjects
82-
.Cast<VBProject>()
82+
.Cast<VBProject>().Where(project => project.Protection != vbext_ProjectProtection.vbext_pp_locked)
8383
.SelectMany(project => project.TestMethods())
8484
.ToDictionary(test => test, test => _testEngine.AllTests.ContainsKey(test) ? _testEngine.AllTests[test] : null);
8585

@@ -162,7 +162,8 @@ private void OnExplorerGoToSelectedTest(object sender, SelectedTestEventArgs e)
162162
var signature = string.Concat("Public Sub ", controlSelection.MethodName, "()");
163163

164164
var projects = this.VBE.VBProjects.Cast<VBProject>()
165-
.Where(project => project.Name == controlSelection.ProjectName
165+
.Where(project => project.Protection != vbext_ProjectProtection.vbext_pp_locked
166+
&& project.Name == controlSelection.ProjectName
166167
&& project.VBComponents
167168
.Cast<VBComponent>()
168169
.Any(c => c.Name == controlSelection.ModuleName)

Setup/Rubberduck.Setup32.isl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1901,8 +1901,6 @@
19011901
<col def="S255">ISBuildSourcePath</col>
19021902
<col def="I4">ISAttributes</col>
19031903
<col def="S72">ISComponentSubFolder_</col>
1904-
<row><td>rubberduck.debug_symbols</td><td>Rubberduck.Debug_Symbols1</td><td>Rubberduck.Debug Symbols</td><td>0</td><td/><td/><td/><td>1</td><td>&lt;Rubberduck&gt;|Symbols</td><td>3</td><td/></row>
1905-
<row><td>rubberduck.primary_output</td><td>Rubberduck.Primary_output1</td><td>Rubberduck.Primary output</td><td>0</td><td/><td/><td>0</td><td>1</td><td>&lt;Rubberduck&gt;|Built</td><td>3</td><td/></row>
19061904
<row><td>rubberduck.tlb</td><td>Rubberduck.tlb</td><td>RUBBER~1.TLB|Rubberduck.tlb</td><td>0</td><td/><td/><td>0</td><td>1</td><td>C:\Users\Christopher\Source\Repos\Rubberduck\RetailCoder.VBE\bin\Release\Rubberduck.tlb</td><td>1</td><td/></row>
19071905
</table>
19081906

@@ -4398,9 +4396,9 @@ RABWAEQALQA1AAEARQB4AHAAcgBlAHMAcwA=
43984396
<row><td>PROGMSG_IIS_ROLLBACKAPPPOOLS</td><td>##IDS_PROGMSG_IIS_ROLLBACKAPPPOOLS##</td><td/></row>
43994397
<row><td>PROGMSG_IIS_ROLLBACKVROOTS</td><td>##IDS_PROGMSG_IIS_ROLLBACKVROOTS##</td><td/></row>
44004398
<row><td>PROGMSG_IIS_ROLLBACKWEBSERVICEEXTENSIONS</td><td>##IDS_PROGMSG_IIS_ROLLBACKWEBSERVICEEXTENSIONS##</td><td/></row>
4401-
<row><td>ProductCode</td><td>{5BFA486D-8F83-4F26-8CD5-788B1F64AE25}</td><td/></row>
4399+
<row><td>ProductCode</td><td>{5F7101F7-6176-42ED-84E2-E77F4B15E307}</td><td/></row>
44024400
<row><td>ProductName</td><td>Rubberduck</td><td/></row>
4403-
<row><td>ProductVersion</td><td>1.21.0000</td><td/></row>
4401+
<row><td>ProductVersion</td><td>1.22.0000</td><td/></row>
44044402
<row><td>ProgressType0</td><td>install</td><td/></row>
44054403
<row><td>ProgressType1</td><td>Installing</td><td/></row>
44064404
<row><td>ProgressType2</td><td>installed</td><td/></row>
@@ -4687,7 +4685,7 @@ RABWAEQALQA1AAEARQB4AHAAcgBlAHMAcwA=
46874685
<col def="s72">ActionProperty</col>
46884686
<col def="S72">ISDisplayName</col>
46894687
<row><td>{00000000-0000-0000-0000-000000000000}</td><td>***ALL_VERSIONS***</td><td></td><td></td><td>2</td><td/><td>ISFOUNDNEWERPRODUCTVERSION</td><td>ISPreventDowngrade</td></row>
4690-
<row><td>{43BFBEFB-88F2-4F12-AABC-576581E50AFA}</td><td>1.1.0000</td><td>1.21.0000</td><td>1033</td><td>768</td><td/><td>ISACTIONPROP1</td><td>UpgradeFrom1.1</td></row>
4688+
<row><td>{43BFBEFB-88F2-4F12-AABC-576581E50AFA}</td><td>1.1.0000</td><td>1.22.0000</td><td>1033</td><td>768</td><td/><td>ISACTIONPROP1</td><td>UpgradeFrom1.1</td></row>
46914689
</table>
46924690

46934691
<table name="Verb">

Setup/Rubberduck.Setup32.isproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,5 @@
2929
</ItemGroup>
3030
<Import Project="$(MSBuildExtensionsPath32)\InstallShield\2013Limited\InstallShield.targets"/>
3131
<ItemGroup/>
32-
<ItemGroup>
33-
<ProjectReference Include="..\RetailCoder.VBE\Rubberduck.csproj">
34-
<Name>Rubberduck</Name>
35-
<Project>{20589DE8-432E-4359-9232-69EB070B7185}</Project>
36-
</ProjectReference>
37-
</ItemGroup>
32+
<ItemGroup/>
3833
</Project>

0 commit comments

Comments
 (0)