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 Nov 11, 2024
1 parent 9d15edd commit d192f9b
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 44 deletions.
75 changes: 46 additions & 29 deletions .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: 2.23.0.${{ github.run_number }}
BuildVersion: 2.24.0.${{ github.run_number }}

jobs:
build:
Expand All @@ -15,31 +15,48 @@ jobs:

steps:

- uses: actions/checkout@v4
with:
submodules: true

- name: Run Build.ps1
run: >
./Build/Build.ps1
-Configuration "${{ env.BuildConfiguration }}"
-Version "${{ env.BuildVersion }}"
-BranchName "${{ github.ref_name }}"
-CoverageBadgeUploadToken "${{ secrets.COVERAGE_BADGE_UPLOAD_TOKEN }}"
- name: Upload Packages artifacts
uses: actions/upload-artifact@v4
with:
name: Packages
path: |
Build/Output/*.nupkg
Build/Output/*.zip
- name: Upload TestOutput artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: TestOutput
path: |
Build/Output/TestResults/**
Build/Output/TestCoverage/**
- uses: actions/checkout@v4
with:
submodules: true

- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget-
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run Build.ps1
run: >
./Build/Build.ps1
-Configuration "${{ env.BuildConfiguration }}"
-Version "${{ env.BuildVersion }}"
-BranchName "${{ github.ref_name }}"
-CoverageBadgeUploadToken "${{ secrets.COVERAGE_BADGE_UPLOAD_TOKEN }}"
- name: Upload Packages artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Packages
path: |
Build/Output/*.nupkg
Build/Output/*.zip
- name: Upload TestOutput artifacts
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: TestOutput
path: |
Build/Output/TestResults/**
Build/Output/TestCoverage/**
3 changes: 3 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 2.24.0 ###
- ReSharper and Rider 2024.3 support

### 2.23.0 ###
- ReSharper and Rider 2024.2 support

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-XmlDocInspections

ResharperPluginProjectName=XmlDocInspections.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="..\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RD20242.csproj" />
<ProjectReference Include="..\XmlDocInspections.Plugin\XmlDocInspections.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="..\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RS20242.csproj" />
<ProjectReference Include="..\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RS20243.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMember.Local
// ReSharper disable UnusedType.Global
// ReSharper disable RedundantPartialMethodEmptyImplementation

namespace XmlDocInspections.Sample.Highlighting
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMember.Local
// ReSharper disable UnusedType.Global
// ReSharper disable RedundantPartialMethodEmptyImplementation

namespace XmlDocInspections.Sample.Highlighting
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMember.Local
// ReSharper disable UnusedType.Global
// ReSharper disable RedundantPartialMethodEmptyImplementation

namespace XmlDocInspections.Sample.Highlighting
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMember.Local
// ReSharper disable UnusedType.Global
// ReSharper disable RedundantPartialMethodEmptyImplementation

namespace XmlDocInspections.Sample.Highlighting
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
using System;
using System.Collections.Generic;
using JetBrains.Application;
using JetBrains.Application.Parts;
using JetBrains.Lifetimes;
using JetBrains.ReSharper.Feature.Services.QuickFixes;
using JetBrains.ReSharper.Intentions.CSharp.QuickFixes;
using JetBrains.ReSharper.Psi.CSharp.Tree;

namespace XmlDocInspections.Plugin.Highlighting
{
[ShellComponent]
[ShellComponent(Instantiation.DemandAnyThreadSafe)]
internal class XmlDocInspectionsQuickFixRegistrarComponent : IQuickFixesProvider
{
public IEnumerable<Type> Dependencies => Array.Empty<Type>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
using System;
using System.Linq;
using JetBrains.Application;
using JetBrains.Application.DataContext;
using JetBrains.Application.Parts;
using JetBrains.Application.Settings;
using JetBrains.Application.Settings.Extentions;
using JetBrains.Diagnostics;
using JetBrains.Lifetimes;
using JetBrains.Metadata.Reader.Impl;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.Settings.Cache;
using XmlDocInspections.Plugin.Settings;

namespace XmlDocInspections.Plugin
{
[SolutionComponent]
[ShellComponent(Instantiation.DemandAnyThreadSafe)] // TODO: Check this out
public class XmlDocInspectionsSettingsCache : ICachedSettingsReader<CachedXmlDocInspectionsSettings>
{
private readonly Lifetime _lifetime;
Expand Down
8 changes: 4 additions & 4 deletions XmlDocInspections.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SolutionItems", "SolutionIt
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Sample", "Src\XmlDocInspections.Plugin.Tests\test\data\XmlDocInspections.Sample.csproj", "{4AF4FFEC-2FAC-426A-B8B2-06F4D9F52392}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.RS20242", "Src\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RS20242.csproj", "{B911381A-0D32-4D8C-A47A-D1E684FD7589}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.RS20243", "Src\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RS20243.csproj", "{B911381A-0D32-4D8C-A47A-D1E684FD7589}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.Tests.RS20242", "Src\XmlDocInspections.Plugin.Tests\XmlDocInspections.Plugin.Tests.RS20242.csproj", "{E3DD348A-4F6B-4660-9D3F-18BFC5F2FDB1}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.Tests.RS20243", "Src\XmlDocInspections.Plugin.Tests\XmlDocInspections.Plugin.Tests.RS20243.csproj", "{E3DD348A-4F6B-4660-9D3F-18BFC5F2FDB1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.RD20242", "Src\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RD20242.csproj", "{68FD44BA-7BD7-432C-B70F-8EA851A4FD06}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.RD20243", "Src\XmlDocInspections.Plugin\XmlDocInspections.Plugin.RD20243.csproj", "{68FD44BA-7BD7-432C-B70F-8EA851A4FD06}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.Tests.RD20242", "Src\XmlDocInspections.Plugin.Tests\XmlDocInspections.Plugin.Tests.RD20242.csproj", "{F0AC23E0-5905-4A51-8FCE-96F87D8CF8B3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Plugin.Tests.RD20243", "Src\XmlDocInspections.Plugin.Tests\XmlDocInspections.Plugin.Tests.RD20243.csproj", "{F0AC23E0-5905-4A51-8FCE-96F87D8CF8B3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "XmlDocInspections.Sample.AspNetCore", "Src\XmlDocInspections.Plugin.Tests\test\data\Special\AspNetCore\XmlDocInspections.Sample.AspNetCore.csproj", "{83BBF7BC-8BBA-4C4F-8143-DD3D7CDE68B1}"
EndProject
Expand Down

0 comments on commit d192f9b

Please sign in to comment.