提交 8729402a 编写于 作者: J Jason Malinowski

Rename AbstractEncProject to AbstractRoslynProject

The type is about to do more than just Edit and Continue!
上级 cad30e57
...@@ -27,7 +27,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim ...@@ -27,7 +27,7 @@ namespace Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim
/// effectively methods that just QI from one interface to another), are implemented here. /// effectively methods that just QI from one interface to another), are implemented here.
/// </remarks> /// </remarks>
[ExcludeFromCodeCoverage] [ExcludeFromCodeCoverage]
internal abstract partial class CSharpProjectShim : AbstractEncProject internal abstract partial class CSharpProjectShim : AbstractRoslynProject
{ {
/// <summary> /// <summary>
/// This member is used to store a raw array of warning numbers, which is needed to properly implement /// This member is used to store a raw array of warning numbers, which is needed to properly implement
......
...@@ -110,7 +110,7 @@ int IVsReadOnlyViewNotification.OnDisabledEditingCommand(ref Guid pguidCmdGuid, ...@@ -110,7 +110,7 @@ int IVsReadOnlyViewNotification.OnDisabledEditingCommand(ref Guid pguidCmdGuid,
foreach (var documentId in vsWorkspace.GetRelatedDocumentIds(container)) foreach (var documentId in vsWorkspace.GetRelatedDocumentIds(container))
{ {
var hostProject = vsWorkspace.GetHostProject(documentId.ProjectId) as AbstractEncProject; var hostProject = vsWorkspace.GetHostProject(documentId.ProjectId) as AbstractRoslynProject;
if (hostProject?.EditAndContinueImplOpt != null) if (hostProject?.EditAndContinueImplOpt != null)
{ {
if (hostProject.EditAndContinueImplOpt.OnEdit(documentId)) if (hostProject.EditAndContinueImplOpt.OnEdit(documentId))
......
...@@ -143,7 +143,7 @@ internal bool OnEdit(DocumentId documentId) ...@@ -143,7 +143,7 @@ internal bool OnEdit(DocumentId documentId)
return; return;
} }
var hostProject = _vsProject.VisualStudioWorkspace.GetHostProject(documentId.ProjectId) as AbstractEncProject; var hostProject = _vsProject.VisualStudioWorkspace.GetHostProject(documentId.ProjectId) as AbstractRoslynProject;
if (hostProject?.EditAndContinueImplOpt?._metadata != null) if (hostProject?.EditAndContinueImplOpt?._metadata != null)
{ {
var projectHierarchy = _vsProject.VisualStudioWorkspace.GetHierarchy(documentId.ProjectId); var projectHierarchy = _vsProject.VisualStudioWorkspace.GetHierarchy(documentId.ProjectId);
......
...@@ -87,7 +87,7 @@ private void SetReadOnly(Document document) ...@@ -87,7 +87,7 @@ private void SetReadOnly(Document document)
{ {
// Only set documents read-only if they're part of a project that supports Enc. // Only set documents read-only if they're part of a project that supports Enc.
var workspace = document.Project.Solution.Workspace as VisualStudioWorkspaceImpl; var workspace = document.Project.Solution.Workspace as VisualStudioWorkspaceImpl;
var project = workspace?.ProjectTracker?.GetProject(document.Project.Id) as AbstractEncProject; var project = workspace?.ProjectTracker?.GetProject(document.Project.Id) as AbstractRoslynProject;
if (project != null) if (project != null)
{ {
......
...@@ -9,11 +9,11 @@ ...@@ -9,11 +9,11 @@
namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
{ {
internal abstract partial class AbstractEncProject : AbstractProject internal abstract partial class AbstractRoslynProject : AbstractProject
{ {
internal VsENCRebuildableProjectImpl EditAndContinueImplOpt; internal VsENCRebuildableProjectImpl EditAndContinueImplOpt;
public AbstractEncProject( public AbstractRoslynProject(
VisualStudioProjectTracker projectTracker, VisualStudioProjectTracker projectTracker,
Func<ProjectId, IVsReportExternalErrors> reportExternalErrorCreatorOpt, Func<ProjectId, IVsReportExternalErrors> reportExternalErrorCreatorOpt,
string projectSystemName, string projectSystemName,
......
...@@ -9,7 +9,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem ...@@ -9,7 +9,7 @@ namespace Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem
{ {
// Dev11 implementation: csharp\radmanaged\Features\EditAndContinue\EncProject.cs // Dev11 implementation: csharp\radmanaged\Features\EditAndContinue\EncProject.cs
internal partial class AbstractEncProject : EncInterop.IVsENCRebuildableProjectCfg2, EncInterop.IVsENCRebuildableProjectCfg4 internal partial class AbstractRoslynProject : EncInterop.IVsENCRebuildableProjectCfg2, EncInterop.IVsENCRebuildableProjectCfg4
{ {
public int HasCustomMetadataEmitter(out bool value) public int HasCustomMetadataEmitter(out bool value)
{ {
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<Compile Include="Implementation\Preview\ReferenceChange.AnalyzerReferenceChange.cs" /> <Compile Include="Implementation\Preview\ReferenceChange.AnalyzerReferenceChange.cs" />
<Compile Include="Implementation\Preview\ReferenceChange.ProjectReferenceChange.cs" /> <Compile Include="Implementation\Preview\ReferenceChange.ProjectReferenceChange.cs" />
<Compile Include="Implementation\Preview\ReferenceChange.cs" /> <Compile Include="Implementation\Preview\ReferenceChange.cs" />
<Compile Include="Implementation\ProjectSystem\AbstractEncProject.cs" /> <Compile Include="Implementation\ProjectSystem\AbstractRoslynProject.cs" />
<Compile Include="Implementation\ProjectSystem\IVisualStudioWorkingFolder.cs" /> <Compile Include="Implementation\ProjectSystem\IVisualStudioWorkingFolder.cs" />
<Compile Include="Implementation\ProjectSystem\MetadataReferences\VisualStudioAnalyzerAssemblyLoaderService.cs" /> <Compile Include="Implementation\ProjectSystem\MetadataReferences\VisualStudioAnalyzerAssemblyLoaderService.cs" />
<Compile Include="Implementation\ProjectSystem\RuleSets\RuleSetEventHandler.cs" /> <Compile Include="Implementation\ProjectSystem\RuleSets\RuleSetEventHandler.cs" />
...@@ -559,7 +559,7 @@ ...@@ -559,7 +559,7 @@
<Compile Include="Implementation\ProjectSystem\AbstractEntryPointFinder.cs" /> <Compile Include="Implementation\ProjectSystem\AbstractEntryPointFinder.cs" />
<Compile Include="Implementation\ProjectSystem\AbstractProject.cs" /> <Compile Include="Implementation\ProjectSystem\AbstractProject.cs" />
<Compile Include="Implementation\ProjectSystem\AbstractProject_IAnalyzerHost.cs" /> <Compile Include="Implementation\ProjectSystem\AbstractProject_IAnalyzerHost.cs" />
<Compile Include="Implementation\ProjectSystem\AbstractEncProject_IVsENCRebuildableProjectCfg.cs" /> <Compile Include="Implementation\ProjectSystem\AbstractRoslynProject_IVsENCRebuildableProjectCfg.cs" />
<Compile Include="Implementation\ProjectSystem\AbstractProject_IVsReportExternalErrors.cs" /> <Compile Include="Implementation\ProjectSystem\AbstractProject_IVsReportExternalErrors.cs" />
<Compile Include="Implementation\ProjectSystem\ComEventSink.cs" /> <Compile Include="Implementation\ProjectSystem\ComEventSink.cs" />
<Compile Include="Implementation\ProjectSystem\DocumentKey.cs" /> <Compile Include="Implementation\ProjectSystem\DocumentKey.cs" />
......
...@@ -15,7 +15,7 @@ Imports Microsoft.VisualStudio.TextManager.Interop ...@@ -15,7 +15,7 @@ Imports Microsoft.VisualStudio.TextManager.Interop
Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.ProjectSystemShim Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.ProjectSystemShim
Partial Friend MustInherit Class VisualBasicProject Partial Friend MustInherit Class VisualBasicProject
Inherits AbstractEncProject Inherits AbstractRoslynProject
Implements IVbCompilerProject Implements IVbCompilerProject
Implements IVisualStudioHostProject Implements IVisualStudioHostProject
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册