Skip to content

Commit

Permalink
Merge pull request #351 from nils-a/feature/GH-325
Browse files Browse the repository at this point in the history
(#325) bumped rider version to 2023.1
  • Loading branch information
nils-a authored Aug 26, 2023
2 parents fb228ef + e23d7e5 commit 42e8281
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/dotnet/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<DebugType>pdbonly</DebugType>
<!-- will be injected by gradle at build -->
<SdkVersion Condition="'$(SdkVersion)' == ''">2022.2.0</SdkVersion>
<SdkVersion Condition="'$(SdkVersion)' == ''">2023.1.0</SdkVersion>
<WaveVersion>$(SdkVersion.Substring(2,2))$(SdkVersion.Substring(5,1)).0.0</WaveVersion>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/dotnet/cake-rider/CakePredefinedType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private IDeclaredType CreateType(int index, IClrTypeName clrName)
{
lock (_types)
{
_types[index] ??= new PredefinedDeclaredTypeFromClrName(clrName, NullableAnnotation.Unknown, _module);
_types[index] ??= new PredefinedDeclaredTypeFromClrName(clrName, _module);
}
}

Expand All @@ -73,8 +73,8 @@ private IDeclaredType CreateType(int index, IClrTypeName clrName)

private class PredefinedDeclaredTypeFromClrName : DeclaredTypeFromCLRName
{
public PredefinedDeclaredTypeFromClrName(IClrTypeName clrName, NullableAnnotation annotation, IPsiModule module)
: base(clrName, annotation, module)
public PredefinedDeclaredTypeFromClrName(IClrTypeName clrName, IPsiModule module)
: base(clrName, module)
{
}

Expand Down
4 changes: 0 additions & 4 deletions src/rider/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/rider/.idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/rider/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ plugins {
id("java")
// Kotlin support
// do NOT update kotlin - kotlin version must match platform version, see https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library
id("org.jetbrains.kotlin.jvm") version "1.7.0"
id("org.jetbrains.kotlin.jvm") version "1.8.0"
// gradle-intellij-plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
id("org.jetbrains.intellij") version "1.13.3"
id("com.jetbrains.rdgen") version "2022.3.0"
id("com.jetbrains.rdgen") version "2023.1.2"
// gradle-changelog-plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
id("org.jetbrains.changelog") version "2.0.0"
// detekt linter - read more: https://detekt.github.io/detekt/gradle.html
Expand All @@ -24,7 +24,7 @@ plugins {
}

val jvmVersion = "17"
val kotlinVersion = "1.7" // should match org.jetbrains.kotlin.jvm (major.minor)
val kotlinVersion = "1.8" // should match org.jetbrains.kotlin.jvm (major.minor)

group = properties("pluginGroup")
version = properties("pluginVersion")
Expand Down
8 changes: 4 additions & 4 deletions src/rider/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
pluginGroup = net.cakebuild
pluginName = cake-rider
pluginVersion = 0.1.0-alpha.1
pluginSinceBuild = 223
pluginUntilBuild = 223.*
pluginSinceBuild = 231
pluginUntilBuild = 231.*
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions.
# or https://data.services.jetbrains.com/products?fields=name,releases.downloads,releases.version,releases.build,releases.type&code=RD
pluginVerifierIdeVersions = RD-2022.3
pluginVerifierIdeVersions = RD-2023.1

platformType = RD
platformVersion = 2022.3.1
platformVersion = 2023.1.4
platformDownloadSources = true
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<gridbag weightx="0.0" weighty="0.0"/>
</constraints>
<properties>
<icon value="general/add.png"/>
<maximumSize width="30" height="30"/>
<minimumSize width="30" height="30"/>
<preferredSize width="30" height="30"/>
Expand All @@ -99,7 +98,6 @@
<gridbag weightx="0.0" weighty="0.0"/>
</constraints>
<properties>
<icon value="general/remove.png"/>
<label value=""/>
<maximumSize width="30" height="30"/>
<minimumSize width="30" height="30"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.cakebuild.settings;

import icons.CakeIcons;
import net.cakebuild.shared.ui.RegexCellEditor;

import javax.swing.JButton;
Expand Down Expand Up @@ -45,6 +46,7 @@ public CakeRunnerSettingsEditor() {
regexCellEditor.setOnValidationError(s -> { setValidationError(s); return null; });
regexCellEditor.setOnValidationSuccess(() -> { setValidationError(null); return null; });
overrides.getColumnModel().getColumn(0).setCellEditor(regexCellEditor);
addButton.setIcon(CakeIcons.GeneralAdd);
addButton.addActionListener(e -> {
model.addRow(new Object[]{"",""});
int row = model.getRowCount()-1;
Expand All @@ -54,6 +56,7 @@ public CakeRunnerSettingsEditor() {
Component textEdit = overrides.prepareEditor(editor, row, 0);
textEdit.requestFocus();
});
removeButton.setIcon(CakeIcons.GeneralRemove);
removeButton.setEnabled(false);
removeButton.addActionListener(e -> {
int row = overrides.getSelectedRow();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<gridbag weightx="0.0" weighty="0.0"/>
</constraints>
<properties>
<icon value="general/add.png"/>
<maximumSize width="30" height="30"/>
<minimumSize width="30" height="30"/>
<opaque value="true"/>
Expand All @@ -43,7 +42,6 @@
<gridbag weightx="0.0" weighty="0.0"/>
</constraints>
<properties>
<icon value="general/remove.png"/>
<label value=""/>
<maximumSize width="30" height="30"/>
<minimumSize width="30" height="30"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package net.cakebuild.settings.controls;

import icons.CakeIcons;

import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableCellEditor;
Expand Down Expand Up @@ -34,6 +36,7 @@ public SimpleAddEditControl(String[] headers, Supplier<String[]> newItemGenerato
int row = table.getSelectedRow();
removeItem.setEnabled(row >= 0);
});
addItem.setIcon(CakeIcons.GeneralAdd);
addItem.addActionListener(e -> {
model.addRow(newItemGenerator.get());
int row = model.getRowCount()-1;
Expand All @@ -43,6 +46,7 @@ public SimpleAddEditControl(String[] headers, Supplier<String[]> newItemGenerato
Component textEdit = table.prepareEditor(editor, row, 0);
textEdit.requestFocus();
});
removeItem.setIcon(CakeIcons.GeneralRemove);
removeItem.setEnabled(false);
removeItem.addActionListener(e -> {
int row = table.getSelectedRow();
Expand Down
6 changes: 6 additions & 0 deletions src/rider/src/main/kotlin/icons/CakeIcons.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ object CakeIcons {

@JvmField
val CakeTestProjectTemplate = IconLoader.getIcon("/icons/CakeTestProject.svg", CakeIcons.javaClass)

@JvmField
val GeneralAdd = IconLoader.getIcon("/general/add.svg", CakeIcons.javaClass)

@JvmField
val GeneralRemove = IconLoader.getIcon("/general/remove.svg", CakeIcons.javaClass)
}
2 changes: 1 addition & 1 deletion src/rider/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<projectConfigurable parentId="build" instance="net.cakebuild.settings.CakeGeneralSettingsConfigurable"
id="net.cakebuild.settings.cake" displayName="Cake" nonDefaultProject="false" />
<projectConfigurable parentId="net.cakebuild.settings.cake" instance="net.cakebuild.settings.CakeSearchPathSettingsConfigurable"
id="net.cakebuild.settings.cake.runner.paths" displayName="Search paths" nonDefaultProject="false" />
id="net.cakebuild.settings.cake.runner.paths" displayName="Search Paths" nonDefaultProject="false" />
<projectConfigurable parentId="net.cakebuild.settings.cake" instance="net.cakebuild.settings.CakeRunnerSettingsConfigurable"
id="net.cakebuild.settings.cake.runner" displayName="Runner" nonDefaultProject="false" />
<projectService serviceImplementation="net.cakebuild.settings.CakeSettings" />
Expand Down

0 comments on commit 42e8281

Please sign in to comment.