Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#297 Re-implement start-analysis based on help from @orangy and @dnes…

…teruk (thanks!)

* figure out which assemblies the required types live in, and reference them.
* copy and paste example from @dnesteruk into #if v610 block.

Compilation achieved; now for tests...
  • Loading branch information...
commit 602cf11c98d3bc16f600a77f0332dee397b651a7 1 parent 8376054
@petemounce petemounce authored
View
BIN  lib/resharper-6.1.0/JetBrains.ReSharper.Feature.Services.dll
Binary file not shown
View
3,481 lib/resharper-6.1.0/JetBrains.ReSharper.Feature.Services.xml
3,481 additions, 0 deletions not shown
View
BIN  lib/resharper-6.1.0/JetBrains.ReSharper.Resources.dll
Binary file not shown
View
2,332 lib/resharper-6.1.0/JetBrains.ReSharper.Resources.xml
2,332 additions, 0 deletions not shown
View
17 src/OpenWrap.ReSharper.450/ResharperTests5.cs
@@ -4,8 +4,6 @@
using EnvDTE;
#if v600 || v610
-using resharper::JetBrains.ActionManagement;
-using resharper::JetBrains.ReSharper.Daemon.Impl;
using ResharperPluginManager = resharper::JetBrains.Application.PluginSupport.PluginManager;
using ResharperPlugin = resharper::JetBrains.Application.PluginSupport.Plugin;
using ResharperPluginTitleAttribute = resharper::JetBrains.Application.PluginSupport.PluginTitleAttribute;
@@ -23,6 +21,12 @@
using ResharperUpdatableAction = resharper::JetBrains.ActionManagement.IUpdatableAction;
#endif
+#if v610
+using resharper::JetBrains.Application;
+using resharper::JetBrains.Application.Settings;
+using resharper::JetBrains.ProjectModel.DataContext;
+using resharper::JetBrains.ReSharper.Daemon;
+#endif
namespace OpenWrap.Resharper
{
#if DEBUG
@@ -87,8 +91,15 @@ static bool CanContinueWaiting(Stopwatch sw, TimeSpan time)
void ActivateSolutionAnalysis()
{
+#if v450 || v500 || v510 || v600
var sas = resharper::JetBrains.ReSharper.Daemon.Impl.SolutionAnalysisService.GetInstance(_solution);
- //sas.AnalysisEnabledOption = true;
+ sas.AnalysisEnabledOption = true;
+#elif v610
+ resharper::JetBrains.Application.Shell.Instance.Invocator.ReentrancyGuard.Execute("SWEA", () =>
+ {
+ Shell.Instance.GetComponent<resharper::JetBrains.Application.Settings.Store.Implementation.SettingsStore>().SetValue(_solution.ToDataContext(), HighlightingSettingsAccessor.AnalysisEnabled, AnalysisScope.SOLUTION);
+ });
+#endif
}
}
#endif
View
10 src/OpenWrap.ReSharper.610/OpenWrap.Resharper.610.csproj
@@ -90,6 +90,16 @@
<Aliases>resharper</Aliases>
<Private>False</Private>
</Reference>
+ <Reference Include="JetBrains.ReSharper.Feature.Services">
+ <HintPath>..\..\lib\resharper-6.1.0\JetBrains.ReSharper.Feature.Services.dll</HintPath>
+ <Aliases>resharper</Aliases>
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="JetBrains.ReSharper.Resources">
+ <HintPath>..\..\lib\resharper-6.1.0\JetBrains.ReSharper.Resources.dll</HintPath>
+ <Aliases>resharper</Aliases>
+ <Private>False</Private>
+ </Reference>
<Reference Include="JetBrains.ReSharper.SolutionAnalysis">
<HintPath>..\..\lib\resharper-6.1.0\JetBrains.ReSharper.SolutionAnalysis.dll</HintPath>
<Aliases>resharper</Aliases>
Please sign in to comment.
Something went wrong with that request. Please try again.