From e248f2fb2a9b19ce58a49d60b09f1c70feffe36b Mon Sep 17 00:00:00 2001 From: Ryan Nowak Date: Wed, 6 Jun 2018 09:19:40 -0700 Subject: [PATCH] Rename a file --- .../ProjectSystem/FallbackRazorProjectHost.cs | 8 ++++---- ...stemSchema.cs => ManagedProjectSystemSchema.cs} | 2 +- .../ProjectSystem/FallbackRazorProjectHostTest.cs | 14 +++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) rename src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/{ManageProjectSystemSchema.cs => ManagedProjectSystemSchema.cs} (95%) diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/FallbackRazorProjectHost.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/FallbackRazorProjectHost.cs index 9ca90249cd..5dedf67af9 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/FallbackRazorProjectHost.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/FallbackRazorProjectHost.cs @@ -14,10 +14,10 @@ using System.Threading.Tasks; using System.Threading.Tasks.Dataflow; using Microsoft.VisualStudio.LanguageServices; using Microsoft.VisualStudio.ProjectSystem; -using ContentItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ContentItem; -using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ItemReference; -using NoneItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.NoneItem; -using ResolvedCompilationReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ResolvedCompilationReference; +using ContentItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ContentItem; +using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ItemReference; +using NoneItem = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.NoneItem; +using ResolvedCompilationReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ResolvedCompilationReference; namespace Microsoft.CodeAnalysis.Razor.ProjectSystem { diff --git a/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/ManageProjectSystemSchema.cs b/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/ManagedProjectSystemSchema.cs similarity index 95% rename from src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/ManageProjectSystemSchema.cs rename to src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/ManagedProjectSystemSchema.cs index 65f3f9da1d..a56464e495 100644 --- a/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/ManageProjectSystemSchema.cs +++ b/src/Microsoft.VisualStudio.LanguageServices.Razor/ProjectSystem/ManagedProjectSystemSchema.cs @@ -4,7 +4,7 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem { // Well-Known Schema and property names defined by the ManagedProjectSystem - internal static class ManageProjectSystemSchema + internal static class ManagedProjectSystemSchema { public static class ResolvedCompilationReference { diff --git a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/ProjectSystem/FallbackRazorProjectHostTest.cs b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/ProjectSystem/FallbackRazorProjectHostTest.cs index 78b634c287..8cb7174d1b 100644 --- a/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/ProjectSystem/FallbackRazorProjectHostTest.cs +++ b/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/ProjectSystem/FallbackRazorProjectHostTest.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; using Microsoft.VisualStudio.ProjectSystem; using Moq; using Xunit; -using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManageProjectSystemSchema.ItemReference; +using ItemReference = Microsoft.CodeAnalysis.Razor.ProjectSystem.ManagedProjectSystemSchema.ItemReference; namespace Microsoft.CodeAnalysis.Razor.ProjectSystem { @@ -19,9 +19,9 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem Workspace = new AdhocWorkspace(); ProjectManager = new TestProjectSnapshotManager(Dispatcher, Workspace); - ReferenceItems = new ItemCollection(ManageProjectSystemSchema.ResolvedCompilationReference.SchemaName); - ContentItems = new ItemCollection(ManageProjectSystemSchema.ContentItem.SchemaName); - NoneItems = new ItemCollection(ManageProjectSystemSchema.NoneItem.SchemaName); + ReferenceItems = new ItemCollection(ManagedProjectSystemSchema.ResolvedCompilationReference.SchemaName); + ContentItems = new ItemCollection(ManagedProjectSystemSchema.ContentItem.SchemaName); + NoneItems = new ItemCollection(ManagedProjectSystemSchema.NoneItem.SchemaName); } private ItemCollection ReferenceItems { get; } @@ -38,13 +38,13 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem public void GetChangedAndRemovedDocuments_ReturnsChangedContentAndNoneItems() { // Arrange - var afterChangeContentItems = new ItemCollection(ManageProjectSystemSchema.ContentItem.SchemaName); + var afterChangeContentItems = new ItemCollection(ManagedProjectSystemSchema.ContentItem.SchemaName); ContentItems.Item("Index.cshtml", new Dictionary() { [ItemReference.LinkPropertyName] = "NewIndex.cshtml", [ItemReference.FullPathPropertyName] = "C:\\From\\Index.cshtml", }); - var afterChangeNoneItems = new ItemCollection(ManageProjectSystemSchema.NoneItem.SchemaName); + var afterChangeNoneItems = new ItemCollection(ManagedProjectSystemSchema.NoneItem.SchemaName); NoneItems.Item("About.cshtml", new Dictionary() { [ItemReference.LinkPropertyName] = "NewAbout.cshtml", @@ -378,7 +378,7 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem { // Arrange ReferenceItems.Item("c:\\nuget\\Microsoft.AspNetCore.Mvc.razor.dll"); - var afterChangeContentItems = new ItemCollection(ManageProjectSystemSchema.ContentItem.SchemaName); + var afterChangeContentItems = new ItemCollection(ManagedProjectSystemSchema.ContentItem.SchemaName); ContentItems.Item("Index.cshtml", new Dictionary() { [ItemReference.FullPathPropertyName] = "C:\\Path\\Index.cshtml",