Skip to content

Commit 39ce10e

Browse files
authored
Merge pull request #1593 from paulvanbrenk/vs2015u3pre3rollup
Vs2015u3pre3rollup
2 parents 6f479df + 2b685f2 commit 39ce10e

37 files changed

+928
-11838
lines changed

Common/Product/SharedProject/CommonPropertyPage.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public abstract Control Control
2828
get;
2929
}
3030

31+
public virtual Size DefaultSize { get; } = new Size(800, 600);
32+
3133
public abstract void Apply();
3234
public abstract void LoadSettings();
3335

@@ -310,8 +312,8 @@ void IPropertyPage.GetPageInfo(PROPPAGEINFO[] pPageInfo)
310312
info.pszDocString = null;
311313
info.pszHelpFile = null;
312314
info.pszTitle = this.Name;
313-
info.SIZE.cx = this.Control.Width;
314-
info.SIZE.cy = this.Control.Height;
315+
info.SIZE.cx = this.DefaultSize.Width;
316+
info.SIZE.cy = this.DefaultSize.Height;
315317
pPageInfo[0] = info;
316318
}
317319

Nodejs/Product/Nodejs/Nodejs.csproj

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@
273273
<Compile Include="Project\DependencyNodeProperties.cs" />
274274
<Compile Include="Project\LocalModulesNode.cs" />
275275
<Compile Include="Project\NodejsFolderNode.cs" />
276+
<Compile Include="Project\NodejsGeneralPropertyPageControl.cs">
277+
<SubType>UserControl</SubType>
278+
</Compile>
279+
<Compile Include="Project\NodejsGeneralPropertyPageControl.Designer.cs">
280+
<DependentUpon>NodejsGeneralPropertyPageControl.cs</DependentUpon>
281+
</Compile>
276282
<Compile Include="Project\NodejsProjectImageName.cs" />
277283
<Compile Include="Project\NodejsTypeScriptFileNode.cs" />
278284
<Compile Include="Project\NodejsTypeScriptFileNodeProperties.cs" />
@@ -455,12 +461,6 @@
455461
<Compile Include="Project\DependencyNode.cs" />
456462
<Compile Include="Project\NodeModulesNode.cs" />
457463
<Compile Include="Project\NodejsFileNode.cs" />
458-
<Compile Include="Project\NodejsGeneralPropertyPageControl.cs">
459-
<SubType>UserControl</SubType>
460-
</Compile>
461-
<Compile Include="Project\NodejsGeneralPropertyPageControl.Designer.cs">
462-
<DependentUpon>NodejsGeneralPropertyPageControl.cs</DependentUpon>
463-
</Compile>
464464
<Compile Include="ProvideEditorExtension2Attribute.cs" />
465465
<Compile Include="Repl\ClearReplCommand.cs" />
466466
<Compile Include="Repl\INodejsReplSite.cs" />
@@ -602,6 +602,10 @@
602602
<DesignTime>True</DesignTime>
603603
<DependentUpon>Resources.en.resx</DependentUpon>
604604
</Compile>
605+
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.resx">
606+
<DependentUpon>NodejsGeneralPropertyPageControl.cs</DependentUpon>
607+
<SubType>Designer</SubType>
608+
</EmbeddedResource>
605609
<EmbeddedResource Include="Resources.en.resx">
606610
<ManifestResourceName>Microsoft.NodejsTools.Resources.en</ManifestResourceName>
607611
<Generator>ResXFileCodeGenerator</Generator>
@@ -742,25 +746,6 @@
742746
<EmbeddedResource Include="Project\NewFileMenuGroup\NewFileNameForm.zh-Hans.resx" />
743747
<EmbeddedResource Include="Project\NewFileMenuGroup\NewFileNameForm.zh-Hant.resx" />
744748
</ItemGroup>
745-
<ItemGroup>
746-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.en.resx">
747-
<Generator>PublicResXFileCodeGenerator</Generator>
748-
<DependentUpon>NodejsGeneralPropertyPageControl.cs</DependentUpon>
749-
</EmbeddedResource>
750-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.cs.resx" />
751-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.de.resx" />
752-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.es.resx" />
753-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.fr.resx" />
754-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.it.resx" />
755-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.ja.resx" />
756-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.ko.resx" />
757-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.pl.resx" />
758-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.pt-BR.resx" />
759-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.ru.resx" />
760-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.tr.resx" />
761-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.zh-Hans.resx" />
762-
<EmbeddedResource Include="Project\NodejsGeneralPropertyPageControl.zh-Hant.resx" />
763-
</ItemGroup>
764749
<ItemGroup>
765750
<EmbeddedResource Include="Options\NodejsGeneralOptionsControl.en.resx">
766751
<Generator>PublicResXFileCodeGenerator</Generator>

Nodejs/Product/Nodejs/NpmUI/NpmPackageInstallWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@
247247
Text="{Binding FilterText,UpdateSourceTrigger=PropertyChanged}"
248248
PreviewKeyDown="FilterTextBox_PreviewKeyDown"
249249
TabIndex="0"
250-
AutomationProperties.Name="{x:Static resx:NpmInstallWindowResources.SearchForPackagesLabel}" />
250+
AutomationProperties.Name="{x:Static resx:NpmInstallWindowResources.SearchForPackagesLabel}"
251+
Padding="0,0,15,0"/>
251252
<TextBlock IsEnabled="False" Background="{x:Null}"
252253
Focusable="False"
253254
IsHitTestVisible="False"

Nodejs/Product/Nodejs/NpmUI/PackageCatalogEntryViewModel.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Linq;
6+
using System.Windows;
67
using Microsoft.NodejsTools.Npm;
78

89
namespace Microsoft.NodejsTools.NpmUI
@@ -34,12 +35,26 @@ protected PackageCatalogEntryViewModel(
3435
}
3536

3637
public virtual string Name { get; }
38+
39+
public string Version => this.version?.ToString() ?? string.Empty;
40+
3741
public IEnumerable<SemverVersion> AvailableVersions { get; }
42+
3843
public string Author { get; }
44+
public Visibility AuthorVisibility => string.IsNullOrEmpty(this.Author) ? Visibility.Collapsed : Visibility.Visible;
45+
3946
public string Description { get; }
47+
public Visibility DescriptionVisibility => string.IsNullOrEmpty(this.Description) ? Visibility.Collapsed : Visibility.Visible;
48+
4049
public IEnumerable<string> Homepages { get; }
50+
public Visibility HomepagesVisibility => this.Homepages.Any() ? Visibility.Visible : Visibility.Collapsed;
51+
4152
public string Keywords { get; }
4253

54+
public bool IsInstalledLocally => this.localVersion.HasValue;
55+
public bool IsLocalInstallOutOfDate => this.localVersion.HasValue && this.localVersion < this.version;
56+
public string LocalVersion => this.localVersion?.ToString() ?? string.Empty;
57+
4358
public override string ToString()
4459
{
4560
return this.Name;

Nodejs/Product/Nodejs/Project/NodejsGeneralPropertyPage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public NodejsGeneralPropertyPage()
1818
}
1919

2020
public override System.Windows.Forms.Control Control => this._control;
21+
2122
internal override CommonProjectNode Project
2223
{
2324
get
@@ -68,8 +69,7 @@ public override void LoadSettings()
6869
this._control.Environment = this.Project.GetUnevaluatedProperty(NodeProjectProperty.Environment);
6970

7071
// Attempt to parse the boolean. If we fail, assume it is true.
71-
bool startWebBrowser;
72-
if (!Boolean.TryParse(this.Project.GetUnevaluatedProperty(NodeProjectProperty.StartWebBrowser), out startWebBrowser))
72+
if (!Boolean.TryParse(this.Project.GetUnevaluatedProperty(NodeProjectProperty.StartWebBrowser), out var startWebBrowser))
7373
{
7474
startWebBrowser = true;
7575
}

0 commit comments

Comments
 (0)