Skip to content

Commit

Permalink
Migrate to new API #33
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtManyak committed May 24, 2023
1 parent fbadb05 commit 056ce70
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected override bool AddLookupItems(CSharpCodeCompletionContext context, IIte

var localVarDeclaration = identifier.Parent as ILocalVariableDeclaration;
var fieldDeclaration = identifier.Parent as IFieldDeclaration;
var regularParameterDeclaration = identifier.Parent as IRegularParameterDeclaration;
var regularParameterDeclaration = identifier.Parent as ITypeMemberRegularParameterDeclaration;

var (kind, scalarTypeName) = GetKindAndDeclaration(localVarDeclaration, fieldDeclaration, regularParameterDeclaration);

Expand All @@ -45,7 +45,7 @@ protected override bool AddLookupItems(CSharpCodeCompletionContext context, IIte
}

private static (NamedElementKinds?, IReferenceName) GetKindAndDeclaration(ILocalVariableDeclaration localVarDeclaration, IFieldDeclaration fieldDeclaration,
IRegularParameterDeclaration regularParameterDeclaration)
ITypeMemberRegularParameterDeclaration regularParameterDeclaration)
{
NamedElementKinds? kind = null;
IReferenceName scalarTypeName = null;
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="223.7571" />
<idea-version since-build="232.5150" />
<id>Abc.MoqComplete.Rider</id>
<name>MoqComplete</name>
<version>2022.2.0.1</version>
<version>2023.2.0.1</version>
<vendor url="https://github.com/Abc-Arbitrage/Abc.MoqComplete">ABC Arbitrage Asset Management</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 @@ -19,12 +19,12 @@
<PropertyGroup>
<!-- <WaveVersionBase>2$(SdkVersion.Substring(2,2))</WaveVersionBase>-->
<!-- <WaveVersion>$(WaveVersionBase).0.0</WaveVersion>-->
<WaveVersion>223.0.0.0</WaveVersion>
<WaveVersion>232.0.0.0</WaveVersion>
</PropertyGroup>

<PropertyGroup>
<!-- The version of the MoqComplete plugin -->
<Version>2022.3.0.2</Version>
<Version>2023.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>2022.3.0</SdkVersion>
<SdkVersion>2023.2.0-eap02</SdkVersion>
<Title>MoqComplete</Title>
<Description>Code completion for Moq</Description>
<Authors>ABC Arbitrage Asset Management</Authors>
Expand Down

0 comments on commit 056ce70

Please sign in to comment.