Skip to content

Commit

Permalink
Bump SDK to 2024.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski committed Aug 15, 2024
1 parent 614b6b0 commit ca6424a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

<ItemGroup>
<PackageReference Include="JetBrains.ReSharper.SDK.Tests" Version="$(SdkVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Moq" Version="4.13.1" />
<PackageReference Include="Moq.AutoMock" Version="2.0.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Application.Components;
using JetBrains.Diagnostics;
using JetBrains.DocumentManagers;
using JetBrains.Lifetimes;
Expand All @@ -10,23 +8,21 @@
using JetBrains.ReSharper.Feature.Services.LiveTemplates.Hotspots;
using JetBrains.ReSharper.FeaturesTestFramework.Intentions;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.TestFramework;
using JetBrains.TextControl;
using NUnit.Framework;

namespace Abc.MoqComplete.Tests.ContextAction
{
public abstract class ContextActionBypassIsAvailable<TAction> : ContextActionExecuteTestBase<TAction>
where TAction : ContextActionBase
{
protected override void ProcessAction(Lifetime lifetime, Func<ITextControl, TAction> actionCreator, IProject project)
protected override void ProcessAction(Lifetime lifetime, IProject project)
{
var solution = project.GetSolution();
var documentManager = solution.GetComponent<DocumentManager>();
var caretPosition = GetCaretPosition() ?? CaretPositionsProcessor.PositionNames.SelectMany(_ => CaretPositionsProcessor.Positions(_) as IEnumerable<CaretPosition>).First("Caret position is not set. Please add {caret} or {selstart} to a test file.");
var caretPosition = GetCaretPosition() ?? CaretPositionsProcessor.PositionNames.SelectMany(i => CaretPositionsProcessor.Positions(i)).First("Caret position is not set. Please add {caret} or {selstart} to a test file.");
var textControl = OpenTextControl(lifetime, caretPosition);
var name = InitTextControl(textControl);
var contextAction = actionCreator(textControl);
var contextAction = CreateContextActionCheckAvailability(textControl);
ExecuteWithGold(textControl.Document, sw =>
{
Assert.NotNull(contextAction);
Expand All @@ -48,12 +44,12 @@ protected override void ProcessAction(Lifetime lifetime, Func<ITextControl, TAct
{
var document = textControl.Document;
ExecuteItem(textControl, bulbAction1, solution);
var currentSession = ShellInstance.GetComponent<HotspotSessionExecutor>().CurrentSession;
var currentSession = HotspotSessionExecutor.Instance.CurrentSession;
if (currentSession != null)
{
while (!currentSession.HotspotSession.IsFinished)
{
ProcessHotspot(textControl, currentSession.HotspotSession.CurrentHotspot.NotNull());
ProcessHotspot(textControl);
currentSession.HotspotSession.GoToNextHotspotSync();
}
}
Expand Down
4 changes: 2 additions & 2 deletions Abc.MoqComplete/Abc.MoqComplete/Resources/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<idea-plugin require-restart="true">
<depends>com.intellij.modules.rider</depends>
<idea-version since-build="241.14494" />
<idea-version since-build="242.20224.401" />
<id>Abc.MoqComplete.Rider</id>
<name>MoqComplete</name>
<version>2024.1.1.1</version>
<version>2024.2.0.1</version>
<vendor url="https://github.com/Abc-Arbitrage/Abc.MoqComplete">abc-arbitrage</vendor>
<description><![CDATA[
<p>Code completion for Moq: Provide completion for It.IsAny, Callback, suggest mock in constructor</p>
Expand Down
4 changes: 2 additions & 2 deletions Abc.MoqComplete/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
<Import Project="Plugin.props" />

<PropertyGroup>
<WaveVersion>241.0.0.0</WaveVersion>
<WaveVersion>242.0.0.0</WaveVersion>
</PropertyGroup>

<PropertyGroup>
<!-- The version of the MoqComplete plugin -->
<Version>2024.1.1.1</Version>
<Version>2024.2.0.1</Version>
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion Abc.MoqComplete/Plugin.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<!-- The used sdk version -->
<SdkVersion>2024.1.2</SdkVersion>
<SdkVersion>2024.2.0</SdkVersion>
<Title>MoqComplete</Title>
<Description>Code completion for Moq</Description>
<Authors>ABC Arbitrage Asset Management</Authors>
Expand Down

0 comments on commit ca6424a

Please sign in to comment.