Skip to content

Commit

Permalink
Add ReSharper and Rider 2024.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichb committed Oct 29, 2024
1 parent 05f9720 commit d418707
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
BuildConfiguration: Release
BuildVersion: 1.22.0.${{ github.run_number }}
BuildVersion: 1.23.0.${{ github.run_number }}

jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.23.0 ###
- ReSharper and Rider 2024.3 support

### 1.22.0 ###
- ReSharper and Rider 2024.2 support

Expand Down
8 changes: 4 additions & 4 deletions Roflcopter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Src", "Src", "{26B55A35-CCB
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SolutionItems", "SolutionItems.csproj", "{6ADCE94D-EF87-42F6-A68B-69DA6FD90DE6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.RS20242", "Src\Roflcopter.Plugin\Roflcopter.Plugin.RS20242.csproj", "{9E2BBE59-1972-45B2-836B-802479CFEB6D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.RS20243", "Src\Roflcopter.Plugin\Roflcopter.Plugin.RS20243.csproj", "{9E2BBE59-1972-45B2-836B-802479CFEB6D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.Tests.RS20242", "Src\Roflcopter.Plugin.Tests\Roflcopter.Plugin.Tests.RS20242.csproj", "{6AFE9FA3-33A0-43B2-9C04-05A4C6A57A2D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.Tests.RS20243", "Src\Roflcopter.Plugin.Tests\Roflcopter.Plugin.Tests.RS20243.csproj", "{6AFE9FA3-33A0-43B2-9C04-05A4C6A57A2D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Sample", "Src\Roflcopter.Plugin.Tests\test\data\Roflcopter.Sample.csproj", "{DA8C3190-009E-430B-95B5-7AFF7AA0A55F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.RD20242", "Src\Roflcopter.Plugin\Roflcopter.Plugin.RD20242.csproj", "{B81B447C-A4D0-419A-BD44-8D8836272C3D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.RD20243", "Src\Roflcopter.Plugin\Roflcopter.Plugin.RD20243.csproj", "{B81B447C-A4D0-419A-BD44-8D8836272C3D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.Tests.RD20242", "Src\Roflcopter.Plugin.Tests\Roflcopter.Plugin.Tests.RD20242.csproj", "{E8FBF9D8-FDD3-4755-85D6-351600B6DB49}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Roflcopter.Plugin.Tests.RD20243", "Src\Roflcopter.Plugin.Tests\Roflcopter.Plugin.Tests.RD20243.csproj", "{E8FBF9D8-FDD3-4755-85D6-351600B6DB49}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
3 changes: 1 addition & 2 deletions Src/PluginAndTests.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
<ReSharperVersionYY>$([System.Text.RegularExpressions.Regex]::Match($(ReSharperVersionIdentifier), $(_ReSharperVersionIdentifierRegex)).Groups[2].Value)</ReSharperVersionYY>
<ReSharperVersionMinor>$([System.Text.RegularExpressions.Regex]::Match($(ReSharperVersionIdentifier), $(_ReSharperVersionIdentifierRegex)).Groups[3].Value)</ReSharperVersionMinor>

<!-- Workaround, drop with 2024.3: -->
<SdkNuGetPackageVersion>$(ReSharperVersionYYYY).$(ReSharperVersionMinor).2</SdkNuGetPackageVersion>
<SdkNuGetPackageVersion>$(ReSharperVersionYYYY).$(ReSharperVersionMinor).*-*</SdkNuGetPackageVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Src/RiderPlugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("java")
alias(libs.plugins.kotlinJvm)
id("org.jetbrains.intellij.platform") version "2.0.1" // https://github.com/JetBrains/intellij-platform-gradle-plugin/releases
id("org.jetbrains.intellij.platform") version "2.0.0-beta5" // https://github.com/JetBrains/intellij-platform-gradle-plugin/releases
id("me.filippov.gradle.jvm.wrapper") version "0.14.0" // https://plugins.gradle.org/plugin/me.filippov.gradle.jvm.wrapper
}

Expand Down
6 changes: 3 additions & 3 deletions Src/RiderPlugin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
RiderPluginProjectName=rider-Roflcopter

ResharperPluginProjectName=Roflcopter.Plugin
ReSharperVersionIdentifier=RD20242
ReSharperVersionIdentifier=RD20243
PluginVersion=0.0.0.1
BuildConfiguration=Debug

# https://www.jetbrains.com/intellij-repository/releases
ProductVersion=2024.2
# https://www.jetbrains.com/intellij-repository/releases or https://www.jetbrains.com/intellij-repository/snapshots
ProductVersion=2024.3-SNAPSHOT

# Kotlin 1.4 will bundle the stdlib dependency by default, causing problems with the version bundled with the IDE
# https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-rc-released/#stdlib-default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Roflcopter.Plugin\Roflcopter.Plugin.RD20242.csproj" />
<ProjectReference Include="..\Roflcopter.Plugin\Roflcopter.Plugin.RD20243.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Roflcopter.Plugin\Roflcopter.Plugin.RS20242.csproj" />
<ProjectReference Include="..\Roflcopter.Plugin\Roflcopter.Plugin.RS20243.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
using System.Linq;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using JetBrains.Application.Parts;
using JetBrains.Application.Settings;
using JetBrains.Application.Settings.Extentions;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;

namespace Roflcopter.Plugin.TodoItems
{
[SolutionComponent]
[SolutionComponent(Instantiation.DemandAnyThreadSafe)] // TODO: Review Instantiation !!
public class TodoItemsCountDefinitionsCachedSettingsReader : ICachedSettingsReader<IReadOnlyCollection<TodoItemsCountDefinition>>
{
private readonly ISettingsStore _settingsStore;
Expand Down
3 changes: 2 additions & 1 deletion Src/Roflcopter.Plugin/TodoItems/TodoItemsCountProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using JetBrains.Application.Parts;
using JetBrains.Application.Settings;
using JetBrains.Application.Settings.Extentions;
using JetBrains.DataFlow;
Expand All @@ -16,7 +17,7 @@

namespace Roflcopter.Plugin.TodoItems
{
[SolutionComponent]
[SolutionComponent(Instantiation.LaterAsyncAnyThreadUnsafe)] // TODO: Review Instantiation !!
public class TodoItemsCountProvider
{
private static readonly ILogger Logger = JetBrains.Util.Logging.Logger.GetLogger(typeof(TodoItemsCountProvider));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ protected override Action<ITextControl> ExecutePsiTransaction(ISolution solution
elementFactory.CreateParameterDeclaration(
ownerDeclaration: methodDeclaration,
ParameterKind.VALUE,
isParameterArray: false,
isParams: false,
isVarArg: false,
type: psiModule.GetPredefinedType().Object,
name: "parameter",
Expand Down

0 comments on commit d418707

Please sign in to comment.