提交 2826c031 编写于 作者: C CyrusNajmabadi

Merge branch 'completionRefactor' into disableNewCompletionFeatures

...@@ -274,7 +274,7 @@ ...@@ -274,7 +274,7 @@
<Compile Include="Implementation\Intellisense\Completion\OptionSetExtensions.cs" /> <Compile Include="Implementation\Intellisense\Completion\OptionSetExtensions.cs" />
<Compile Include="Implementation\Intellisense\Completion\Presentation\ClassificationTags.cs" /> <Compile Include="Implementation\Intellisense\Completion\Presentation\ClassificationTags.cs" />
<Compile Include="Implementation\Intellisense\Completion\Presentation\ImageMonikers.cs" /> <Compile Include="Implementation\Intellisense\Completion\Presentation\ImageMonikers.cs" />
<Compile Include="Implementation\Intellisense\Completion\Presentation\IVsCompletionSet.cs" /> <Compile Include="Implementation\Intellisense\Completion\Presentation\IVisualStudioCompletionSet.cs" />
<Compile Include="Implementation\Intellisense\Completion\Presentation\Roslyn14CompletionSet.cs" /> <Compile Include="Implementation\Intellisense\Completion\Presentation\Roslyn14CompletionSet.cs" />
<Compile Include="Implementation\Intellisense\Completion\Presentation\VisualStudio14CompletionSet.cs" /> <Compile Include="Implementation\Intellisense\Completion\Presentation\VisualStudio14CompletionSet.cs" />
<Compile Include="Implementation\Intellisense\Completion\SimplePresentationItem.cs" /> <Compile Include="Implementation\Intellisense\Completion\SimplePresentationItem.cs" />
......
...@@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P ...@@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P
/// us to encapulate logic in our own inheritance hierarchy without having to fit into the /// us to encapulate logic in our own inheritance hierarchy without having to fit into the
/// editor's inheritance hierarchy. /// editor's inheritance hierarchy.
/// </summary> /// </summary>
internal interface IVsCompletionSet : ICompletionSet internal interface IVisualStudioCompletionSet : ICompletionSet
{ {
string DisplayName { get; set; } string DisplayName { get; set; }
string Moniker { get; set; } string Moniker { get; set; }
......
...@@ -26,7 +26,7 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P ...@@ -26,7 +26,7 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P
/// </summary> /// </summary>
internal class Roslyn14CompletionSet : ForegroundThreadAffinitizedObject internal class Roslyn14CompletionSet : ForegroundThreadAffinitizedObject
{ {
protected readonly IVsCompletionSet VsCompletionSet; protected readonly IVisualStudioCompletionSet VsCompletionSet;
private readonly ITextView _textView; private readonly ITextView _textView;
...@@ -37,7 +37,7 @@ internal class Roslyn14CompletionSet : ForegroundThreadAffinitizedObject ...@@ -37,7 +37,7 @@ internal class Roslyn14CompletionSet : ForegroundThreadAffinitizedObject
protected IReadOnlyDictionary<CompletionItem, string> CompletionItemToFilterText; protected IReadOnlyDictionary<CompletionItem, string> CompletionItemToFilterText;
public Roslyn14CompletionSet( public Roslyn14CompletionSet(
IVsCompletionSet vsCompletionSet, IVisualStudioCompletionSet vsCompletionSet,
CompletionPresenterSession completionPresenterSession, CompletionPresenterSession completionPresenterSession,
ITextView textView, ITextView textView,
ITextBuffer subjectBuffer) ITextBuffer subjectBuffer)
......
...@@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P ...@@ -12,7 +12,7 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P
/// See comment on VisualStudio15CompletionSet for an explanation of how these types /// See comment on VisualStudio15CompletionSet for an explanation of how these types
/// fit together and where code should go in them. /// fit together and where code should go in them.
/// </summary> /// </summary>
internal class VisualStudio14CompletionSet : CompletionSet, IVsCompletionSet internal class VisualStudio14CompletionSet : CompletionSet, IVisualStudioCompletionSet
{ {
private readonly Roslyn14CompletionSet _roslynCompletionSet; private readonly Roslyn14CompletionSet _roslynCompletionSet;
...@@ -65,31 +65,31 @@ PresentationItem ICompletionSet.GetPresentationItem(VSCompletion completion) ...@@ -65,31 +65,31 @@ PresentationItem ICompletionSet.GetPresentationItem(VSCompletion completion)
#region IVsCompletionSet - Forward to base type. #region IVsCompletionSet - Forward to base type.
string IVsCompletionSet.DisplayName string IVisualStudioCompletionSet.DisplayName
{ {
get { return base.DisplayName; } get { return base.DisplayName; }
set { base.DisplayName = value; } set { base.DisplayName = value; }
} }
string IVsCompletionSet.Moniker string IVisualStudioCompletionSet.Moniker
{ {
get { return base.Moniker; } get { return base.Moniker; }
set { base.Moniker = value; } set { base.Moniker = value; }
} }
ITrackingSpan IVsCompletionSet.ApplicableTo ITrackingSpan IVisualStudioCompletionSet.ApplicableTo
{ {
get { return base.ApplicableTo; } get { return base.ApplicableTo; }
set { base.ApplicableTo = value; } set { base.ApplicableTo = value; }
} }
BulkObservableCollection<VSCompletion> IVsCompletionSet.WritableCompletionBuilders => BulkObservableCollection<VSCompletion> IVisualStudioCompletionSet.WritableCompletionBuilders =>
base.WritableCompletionBuilders; base.WritableCompletionBuilders;
BulkObservableCollection<VSCompletion> IVsCompletionSet.WritableCompletions => BulkObservableCollection<VSCompletion> IVisualStudioCompletionSet.WritableCompletions =>
base.WritableCompletions; base.WritableCompletions;
CompletionSelectionStatus IVsCompletionSet.SelectionStatus CompletionSelectionStatus IVisualStudioCompletionSet.SelectionStatus
{ {
get { return base.SelectionStatus; } get { return base.SelectionStatus; }
set { base.SelectionStatus = value; } set { base.SelectionStatus = value; }
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
<AssemblyName>Microsoft.CodeAnalysis.EditorFeatures.Next</AssemblyName> <AssemblyName>Microsoft.CodeAnalysis.EditorFeatures.Next</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<CopyNuGetImplementations>false</CopyNuGetImplementations> <CopyNuGetImplementations>false</CopyNuGetImplementations>
<DefineConstants>DEV15</DefineConstants>
</PropertyGroup> </PropertyGroup>
<ItemGroup Label="Project References"> <ItemGroup Label="Project References">
<ProjectReference Include="..\..\Compilers\Core\Portable\CodeAnalysis.csproj"> <ProjectReference Include="..\..\Compilers\Core\Portable\CodeAnalysis.csproj">
......
...@@ -25,7 +25,7 @@ internal class Roslyn15CompletionSet : Roslyn14CompletionSet ...@@ -25,7 +25,7 @@ internal class Roslyn15CompletionSet : Roslyn14CompletionSet
public IReadOnlyList<IntellisenseFilter2> Filters; public IReadOnlyList<IntellisenseFilter2> Filters;
public Roslyn15CompletionSet( public Roslyn15CompletionSet(
IVsCompletionSet vsCompletionSet, IVisualStudioCompletionSet vsCompletionSet,
CompletionPresenterSession completionPresenterSession, CompletionPresenterSession completionPresenterSession,
ITextView textView, ITextView textView,
ITextBuffer subjectBuffer) ITextBuffer subjectBuffer)
......
...@@ -29,9 +29,9 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P ...@@ -29,9 +29,9 @@ namespace Microsoft.CodeAnalysis.Editor.Implementation.IntelliSense.Completion.P
/// Important! Do not put any actual logic into this type. Instead, forward any work to /// Important! Do not put any actual logic into this type. Instead, forward any work to
/// <see cref="VisualStudio15CompletionSet._roslynCompletionSet"/>. If that code then /// <see cref="VisualStudio15CompletionSet._roslynCompletionSet"/>. If that code then
/// needs information from this <see cref="CompletionSet2"/> then expose that data through /// needs information from this <see cref="CompletionSet2"/> then expose that data through
/// the <see cref="IVsCompletionSet"/> interface. /// the <see cref="IVisualStudioCompletionSet"/> interface.
/// </summary> /// </summary>
internal class VisualStudio15CompletionSet : CompletionSet2, IVsCompletionSet internal class VisualStudio15CompletionSet : CompletionSet2, IVisualStudioCompletionSet
{ {
private readonly Roslyn15CompletionSet _roslynCompletionSet; private readonly Roslyn15CompletionSet _roslynCompletionSet;
...@@ -95,31 +95,31 @@ PresentationItem ICompletionSet.GetPresentationItem(VSCompletion completion) ...@@ -95,31 +95,31 @@ PresentationItem ICompletionSet.GetPresentationItem(VSCompletion completion)
// not settable except through the subclass. Here we essentially make those properties // not settable except through the subclass. Here we essentially make those properties
// available so that Roslyn15CompletionSet and Roslyn14CompletionSet can read/write them. // available so that Roslyn15CompletionSet and Roslyn14CompletionSet can read/write them.
string IVsCompletionSet.DisplayName string IVisualStudioCompletionSet.DisplayName
{ {
get { return base.DisplayName; } get { return base.DisplayName; }
set { base.DisplayName = value; } set { base.DisplayName = value; }
} }
string IVsCompletionSet.Moniker string IVisualStudioCompletionSet.Moniker
{ {
get { return base.Moniker; } get { return base.Moniker; }
set { base.Moniker = value; } set { base.Moniker = value; }
} }
ITrackingSpan IVsCompletionSet.ApplicableTo ITrackingSpan IVisualStudioCompletionSet.ApplicableTo
{ {
get { return base.ApplicableTo; } get { return base.ApplicableTo; }
set { base.ApplicableTo = value; } set { base.ApplicableTo = value; }
} }
BulkObservableCollection<VSCompletion> IVsCompletionSet.WritableCompletionBuilders => BulkObservableCollection<VSCompletion> IVisualStudioCompletionSet.WritableCompletionBuilders =>
base.WritableCompletionBuilders; base.WritableCompletionBuilders;
BulkObservableCollection<VSCompletion> IVsCompletionSet.WritableCompletions => BulkObservableCollection<VSCompletion> IVisualStudioCompletionSet.WritableCompletions =>
base.WritableCompletions; base.WritableCompletions;
CompletionSelectionStatus IVsCompletionSet.SelectionStatus CompletionSelectionStatus IVisualStudioCompletionSet.SelectionStatus
{ {
get { return base.SelectionStatus; } get { return base.SelectionStatus; }
set { base.SelectionStatus = value; } set { base.SelectionStatus = value; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册