Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into liveshare
Browse files Browse the repository at this point in the history
  • Loading branch information
zooba committed Nov 1, 2018
2 parents 1287b6a + a9e67a5 commit 584f2cd
Show file tree
Hide file tree
Showing 108 changed files with 6,988 additions and 3,446 deletions.
9 changes: 7 additions & 2 deletions Common/Product/TestAdapter/ServiceProviderExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ public static T GetService<T>(this IServiceProvider serviceProvider)

public static T GetService<T>(this IServiceProvider serviceProvider, Type serviceType)
where T : class {
ValidateArg.NotNull(serviceProvider, "serviceProvider");
ValidateArg.NotNull(serviceType, "serviceType");
if (serviceProvider == null) {
throw new ArgumentNullException(nameof(serviceProvider));
}

if (serviceType == null) {
throw new ArgumentNullException(nameof(serviceType));
}

var serviceInstance = serviceProvider.GetService(serviceType) as T;
if (serviceInstance == null) {
Expand Down
35 changes: 22 additions & 13 deletions Python/Product/Common/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions Python/Product/Common/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2260,16 +2260,22 @@ Expand selection to the full expression?</value>
<value>Python installation</value>
</data>
<data name="AddInstalledEnvironmentInstallationLabel" xml:space="preserve">
<value>Python installation</value>
<value>Python</value>
</data>
<data name="AddInstalledEnvironmentDescription" xml:space="preserve">
<value>To install a new Python interpreter, open Visual Studio Installer and install it from there.</value>
<value>The Visual Studio Installer supports the following versions of Python. Select one or more to install:</value>
</data>
<data name="AddInstalledEnvironmentLabel" xml:space="preserve">
<value>Python installation</value>
</data>
<data name="AddInstalledEnvironmentLaunch" xml:space="preserve">
<value>Open Visual Studio Installer</value>
<value>Install</value>
</data>
<data name="AddInstalledEnvironmentInstalledLabel" xml:space="preserve">
<value>Already installed</value>
</data>
<data name="AddInstalledEnvironmentNone" xml:space="preserve">
<value>(none)</value>
</data>
<data name="AddCondaEnvironmentTabHeader" xml:space="preserve">
<value>Conda environment</value>
Expand Down Expand Up @@ -2473,9 +2479,6 @@ Please specify at least one package.</value>
<data name="AddExistingEnvironmentVersionEmpty" xml:space="preserve">
<value>Version is not specified.</value>
</data>
<data name="WaitForEnvTimeout" xml:space="preserve">
<value>Timed out waiting for environment '{0}' to be detected. The environment may have failed to be created or the environment may not include a Python package.</value>
</data>
<data name="CondaExecutableFilter" xml:space="preserve">
<value>Executable Files (*.exe)|*.exe|All Files (*.*)|*.*</value>
</data>
Expand Down
2 changes: 1 addition & 1 deletion Python/Product/Debugger/Debugger.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
</ItemGroup>
<Import Project="..\ProjectAfter.settings" />
<PropertyGroup>
<BundledPTVSDVersion>4.1.3</BundledPTVSDVersion>
<BundledPTVSDVersion>4.1.4</BundledPTVSDVersion>
</PropertyGroup>
<Target Name="_GatherPtvsd" BeforeTargets="_IncludePtvsd" Condition="!Exists('$(IntermediateOutputPath)Packages\ptvsd\__init__.py')">
<PropertyGroup>
Expand Down
15 changes: 10 additions & 5 deletions Python/Product/Django/Django.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,17 @@
<Choose>
<When Condition="$(IncludeDjangoHtmlExtensions) == 'true'">
<ItemGroup>
<Reference Include="Microsoft.Web.Core" />
<Reference Include="Microsoft.Web.Editor" />
<Reference Include="Microsoft.Html.Core" />
<Reference Include="Microsoft.Html.Editor" />
<Reference Include="Microsoft.VisualStudio.Html.Package" />
<Reference Include="Microsoft.VisualStudio.Web.HTML" />
<Reference Include="Microsoft.Web.Core" Condition=" '$(VSTarget)' == '15.0' " />
<Reference Include="Microsoft.Web.Editor" Condition=" '$(VSTarget)' == '15.0' " />
<Reference Include="Microsoft.Html.Core" Condition=" '$(VSTarget)' == '15.0' " />
<Reference Include="Microsoft.Html.Editor" Condition=" '$(VSTarget)' == '15.0' " />
<Reference Include="Microsoft.VisualStudio.Html.Package" Condition=" '$(VSTarget)' == '15.0' " />
<Reference Include="Microsoft.WebTools.Languages.dll" Condition=" '$(VSTarget)' == '16.0' " />
<Reference Include="Microsoft.WebTools.Languages.Editor.dll" Condition=" '$(VSTarget)' == '16.0' " />
<Reference Include="Microsoft.WebTools.Languages.Html.dll" Condition=" '$(VSTarget)' == '16.0' " />
<Reference Include="Microsoft.WebTools.Languages.Html.Editor.dll" Condition=" '$(VSTarget)' == '16.0' " />
<Reference Include="Microsoft.WebTools.Languages.Html.VS.dll" Condition=" '$(VSTarget)' == '16.0' " />
</ItemGroup>
<ItemGroup>
<Compile Include="DjangoEditorFactory.cs" />
Expand Down
4 changes: 4 additions & 0 deletions Python/Product/Django/DjangoEditorFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

using System;
using System.Runtime.InteropServices;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Html.VS.Package.Common;
#else
using Microsoft.VisualStudio.Html.Package.Package.Common;
#endif

namespace Microsoft.PythonTools.Django {
[Guid(GuidList.guidDjangoEditorFactoryString)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Formatting;
#else
using Microsoft.Web.Editor.Formatting;
#endif

namespace Microsoft.PythonTools.Django.Formatting {
[Export(typeof(IEditorFormatterProvider))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.Web.Editor;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Controller.Command;
#else
using Microsoft.Web.Editor.Controller.Command;
#endif

namespace Microsoft.PythonTools.Django.Formatting {
internal class TemplateFormatDocumentCommandHandler : EditingCommand {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.Web.Editor;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Controller.Command;
#else
using Microsoft.Web.Editor.Controller.Command;
#endif

namespace Microsoft.PythonTools.Django.Formatting {
internal class TemplateFormatSelectionCommandHandler : EditingCommand {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Controller;
#else
using Microsoft.Web.Editor.Controller;
#endif

namespace Microsoft.PythonTools.Django.Formatting {
[Export(typeof(ICommandFactory))]
Expand Down
7 changes: 6 additions & 1 deletion Python/Product/Django/Intellisense/DjangoCompletionSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Html.Editor.Document;
using Microsoft.PythonTools.Django.TemplateParsing;
using Microsoft.PythonTools.Intellisense;
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Html.Editor.Document;
using Microsoft.WebTools.Languages.Text;
#else
using Microsoft.Html.Editor.Document;
using Microsoft.Web.Core.Text;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
internal class DjangoCompletionSource : DjangoCompletionSourceBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
// permissions and limitations under the License.

using System.Linq;
using Microsoft.Html.Editor.Document;
using Microsoft.PythonTools.Django.TemplateParsing;
using Microsoft.PythonTools.Intellisense;
using Microsoft.VisualStudio.Text;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Html.Editor.Document;
#else
using Microsoft.Html.Editor.Document;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
internal class ProjectBlockCompletionContext : ProjectBlockCompletionContextBase {
Expand Down
4 changes: 4 additions & 0 deletions Python/Product/Django/Intellisense/TemplateCommandFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Operations;
using Microsoft.VisualStudio.Utilities;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Controller;
#else
using Microsoft.Web.Editor.Controller;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
[Export(typeof(ICommandFactory))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
// permissions and limitations under the License.

using Microsoft.VisualStudio.Text.Editor;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Completion;
using Microsoft.WebTools.Languages.Editor.Services;
#else
using Microsoft.Web.Editor.Completion;
using Microsoft.Web.Editor.Services;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
internal class TemplateCompletionCommandHandler : CompletionCommandHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Completion;
#else
using Microsoft.Web.Editor.Completion;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
internal class TemplateCompletionController : CompletionController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Services;
#else
using Microsoft.Web.Editor.Services;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
[Export(typeof(IIntellisenseControllerProvider)), ContentType(TemplateTagContentType.ContentTypeName), Order]
Expand Down
5 changes: 5 additions & 0 deletions Python/Product/Django/Intellisense/TemplateMainController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@

using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Controller;
using Microsoft.WebTools.Languages.Editor.Services;
#else
using Microsoft.Web.Editor.Controller;
using Microsoft.Web.Editor.Services;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
internal class TemplateMainController : ViewController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,17 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Utilities;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.ContainedLanguage;
using Microsoft.WebTools.Languages.Editor.Controller;
using Microsoft.WebTools.Languages.Editor.Host;
using Microsoft.WebTools.Languages.Editor.Services;
#else
using Microsoft.Web.Editor.ContainedLanguage;
using Microsoft.Web.Editor.Controller;
using Microsoft.Web.Editor.Host;
using Microsoft.Web.Editor.Services;
#endif
using ITextViewCreationListener = Microsoft.VisualStudio.Text.Editor.ITextViewCreationListener;

namespace Microsoft.PythonTools.Django.Intellisense {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Operations;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Editor.Completion;
using Microsoft.WebTools.Languages.Editor.Services;
#else
using Microsoft.Web.Editor.Completion;
using Microsoft.Web.Editor.Services;
#endif

namespace Microsoft.PythonTools.Django.Intellisense {
internal class TemplateTypingCommandHandler : TypingCommandHandler {
Expand Down
4 changes: 4 additions & 0 deletions Python/Product/Django/TemplateContentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@

using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Utilities;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.ContentTypes;
#else
using Microsoft.Web.Core.ContentTypes;
#endif

namespace Microsoft.PythonTools.Django {
/// <summary>
Expand Down
7 changes: 6 additions & 1 deletion Python/Product/Django/TemplateParsing/TemplateArtifact.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Html.Core.Artifacts;
using Microsoft.PythonTools.Django.Intellisense;
#if DEV16_OR_LATER
using Microsoft.WebTools.Languages.Html.Artifacts;
using Microsoft.WebTools.Languages.Text;
#else
using Microsoft.Html.Core.Artifacts;
using Microsoft.Web.Core.Text;
#endif

namespace Microsoft.PythonTools.Django.TemplateParsing {
/// <summary>
Expand Down
Loading

0 comments on commit 584f2cd

Please sign in to comment.