Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target 2024.3 #940

Merged
merged 7 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
uses: jlumbroso/free-disk-space@main
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
large-packages: false
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
#
# # Free GitHub Actions Environment Disk Space
# - name: Maximize Build Space
# uses: jlumbroso/free-disk-space@main
# uses: jlumbroso/free-disk-space@v1.3.1
# with:
# tool-cache: false
# large-packages: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

# Free GitHub Actions Environment Disk Space
- name: Maximize Build Space
uses: jlumbroso/free-disk-space@main
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
large-packages: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("java")
id("org.jetbrains.intellij.platform.module")

alias(libs.plugins.aspectj)
}

Expand All @@ -20,6 +21,7 @@ dependencies {
intellijPlatform {
rider(platformVersion, false)
jetbrainsRuntime()
bundledPlugins("com.intellij.modules.json")
instrumentationTools()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<depends>com.intellij.modules.json</depends>

<extensions defaultExtensionNs="com.microsoft.tooling.msservices.intellij.azure">
<explorerNodeProvider implementation="com.microsoft.azure.toolkit.ide.arm.ResourceGroupNodeProvider"/>
<explorerNodeProvider implementation="com.microsoft.azure.toolkit.ide.arm.DeploymentNodeProvider"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies {
intellijPlatform {
rider(platformVersion, false)
jetbrainsRuntime()
bundledModule("intellij.platform.collaborationTools")
bundledPlugins(listOf("org.jetbrains.plugins.terminal"))
instrumentationTools()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ dependencies {
intellijPlatform {
rider(platformVersion, false)
jetbrainsRuntime()
bundledPlugins(listOf("com.intellij.properties"))
bundledModule("intellij.libraries.microba")
bundledPlugins(listOf("com.intellij.properties", "com.intellij.modules.json"))
instrumentationTools()
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<idea-plugin>
<depends>com.intellij.modules.json</depends>

<extensions defaultExtensionNs="com.intellij">
<toolWindow anchor="bottom"
icon="/icons/Common/log_analytics_workspace.svg"
Expand Down
4 changes: 4 additions & 0 deletions PluginsAndFeatures/azure-toolkit-for-rider/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## [Unreleased]

### Changed

- Support for Rider 2024.3

## [4.2.2] - 2024-10-09

### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies {
intellijPlatform {
rider(platformVersion, false)
jetbrainsRuntime()
bundledModule("intellij.rider")
bundledPlugins(listOf("com.jetbrains.restClient"))
instrumentationTools()
}
Expand All @@ -36,4 +37,13 @@ dependencies {
implementation(libs.azureToolkitIdeAppserviceLib)
implementation(libs.azureToolkitIdeContainerregistryLib)
implementation(libs.serializationJson)
implementation(libs.ktorClientContentNegotiation) {
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-core")
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-jdk8")
}
implementation(libs.ktorSerializationJson) {
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-core")
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-coroutines-jdk8")
exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-serialization-json")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@ class AzureFunctionConfigurable : BoundConfigurable("Functions") {
}
row("Tool download path:") {
textFieldWithBrowseButton(
"Azure Functions Core Tools Download Path",
null,
FileChooserDescriptorFactory.createSingleFolderDescriptor()
FileChooserDescriptorFactory.createSingleFolderDescriptor().withTitle("Azure Functions Core Tools Download Path")
)
.align(AlignX.FILL)
.validationOnInput {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ dependencies {
intellijPlatform {
rider(platformVersion, false)
jetbrainsRuntime()
bundledModule("intellij.rider")
bundledPlugins(listOf("Docker"))
instrumentationTools()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@ class AzuriteConfigurable(private val project: Project) : BoundConfigurable("Azu
group("Azurite Executable") {
row("Azurite executable path:") {
textFieldWithBrowseButton(
"Browse For Azurite Executable",
null,
FileChooserDescriptorFactory.createSingleFileOrExecutableAppDescriptor()
FileChooserDescriptorFactory.createSingleFileOrExecutableAppDescriptor().withTitle("Browse For Azurite Executable")
)
.align(Align.FILL)
.bindText(settings::executablePath)
Expand All @@ -57,10 +55,7 @@ class AzuriteConfigurable(private val project: Project) : BoundConfigurable("Azu
}
row("Path:") {
textFieldWithBrowseButton(
"Browse For Workspace Location",
null,
FileChooserDescriptorFactory.createSingleFolderDescriptor()
)
FileChooserDescriptorFactory.createSingleFolderDescriptor().withTitle("Browse For Workspace Location"))
.align(Align.FILL)
.bindText(settings::workspacePath)
.validationOnInput { validationForPath(it) }
Expand Down Expand Up @@ -125,10 +120,7 @@ class AzuriteConfigurable(private val project: Project) : BoundConfigurable("Azu
group("Certificate Settings") {
row("Certificate path:") {
textFieldWithBrowseButton(
"Select *.pem",
null,
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
)
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor().withTitle("Select *.pem"))
.align(Align.FILL)
.comment("Path to a locally-trusted pem or pfx certificate file path to enable HTTPS mode.")
.bindText(settings::certificatePath)
Expand All @@ -137,9 +129,7 @@ class AzuriteConfigurable(private val project: Project) : BoundConfigurable("Azu
}
row("Certificate key path:") {
textFieldWithBrowseButton(
"Select *.key",
null,
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()
FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor().withTitle("Select *.key")
)
.align(Align.FILL)
.comment("Path to a locally-trusted pem key file, required when cert points to a pem file.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import com.jetbrains.plugin.structure.base.utils.isFile
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML
import org.jetbrains.intellij.platform.gradle.Constants
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
Expand Down Expand Up @@ -76,6 +75,7 @@ dependencies {
intellijPlatform {
rider(platformVersion, false)
jetbrainsRuntime()
bundledModule("intellij.rider")
bundledPlugins(listOf("com.jetbrains.restClient"))
instrumentationTools()
pluginVerifier()
Expand Down
8 changes: 4 additions & 4 deletions PluginsAndFeatures/azure-toolkit-for-rider/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ pluginGroup = com.jetbrains
pluginName = azure-toolkit-for-rider
pluginRepositoryUrl = https://github.com/JetBrains/azure-tools-for-intellij
# SemVer format -> https://semver.org
pluginVersion = 4.2.2
pluginVersion = 4.3.0

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 242
pluginUntilBuild = 242.*
pluginSinceBuild = 243
pluginUntilBuild = 243.*

# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
# Examples:
# Release: 2020.2
# EAP: 2020.3-EAP2-SNAPSHOT
# Nightly: 2020.3-SNAPSHOT
platformVersion = 2024.2.5
platformVersion = 2024.3-EAP4-SNAPSHOT

dotnetBuildConfiguration=Release

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]
# libraries
# https://search.maven.org/artifact/com.jetbrains.rd/rd-gen
rdGen = "2024.1.1"
rdGen = "2024.3.0"
opentest4j = "1.3.0"
azureToolkitLibs = "0.48.0"
azureToolkitHdinsightLibs = "0.1.1"
Expand All @@ -14,11 +14,11 @@ plexusArchiver = "4.2.7"
jedis = "3.6.3"

# plugins
kotlin = "2.0.20"
serialization = "1.7.2"
kotlin = "2.0.21"
serialization = "1.7.3"
changelog = "2.2.1"
intelliJPlatform = "2.0.1"
qodana = "2024.1.9"
intelliJPlatform = "2.1.0"
qodana = "2024.2.3"
aspectj = "8.6"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ pluginManagement {
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

include(":protocol")
include(":azure-intellij-plugin-resharper-host")
include(":azure-intellij-plugin-lib")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>

<RiderSDKVersion>2024.2.2</RiderSDKVersion>
<RiderSDKVersion>2024.3.0-eap04</RiderSDKVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
using JetBrains.ReSharper.Daemon;
using JetBrains.ReSharper.Feature.Services.Daemon.Attributes;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi.ContentModel;
using JetBrains.ReSharper.Psi.Resolve;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.ReSharper.Psi;
using JetBrains.UI.RichText;
using JetBrains.Util;
using JetBrains.ReSharper.Azure.Daemon.Errors;
using JetBrains.ReSharper.Azure.Daemon.FunctionApp.Stages.Analysis;
Expand All @@ -37,14 +39,14 @@ namespace JetBrains.ReSharper.Azure.Daemon.Errors.FunctionAppErrors
[ConfigurableSeverityHighlighting(HIGHLIGHTING_ID, "CSHARP", Languages = "CSHARP", OverlapResolve = OverlapResolveKind.NONE, ToolTipFormatString = MESSAGE)]
public sealed partial class TimerTriggerCronExpressionError : IHighlighting
{
protected const string MESSAGE = "{0}";
private const string MESSAGE = "{0}";
public const string HIGHLIGHTING_ID = "Azure.FunctionApp.TimerTriggerCronExpression";

public TimerTriggerCronExpressionError(ICSharpExpression expression, string cronErrorMessage)
{
Expression = expression;
CronErrorMessage = cronErrorMessage;
ToolTip = string.Format(MESSAGE, cronErrorMessage).NON_LOCALIZABLE();
ToolTip = string.Format(MESSAGE, cronErrorMessage);
}

public ICSharpExpression Expression { get; }
Expand All @@ -60,7 +62,7 @@ public DocumentRange CalculateRange()

public bool IsValid()
{
return (Expression == null || Expression.IsValid());
return (Expression is null || Expression.IsValid());
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2018-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the MIT license.

using System;
using JetBrains.Application.Parts;
using JetBrains.Lifetimes;
using JetBrains.ProjectModel;
using JetBrains.ProjectModel.MSBuild;
Expand All @@ -14,7 +15,7 @@

namespace JetBrains.ReSharper.Azure.Daemon.FunctionApp;

[SolutionComponent]
[SolutionComponent(InstantiationEx.LegacyDefault)]
public class FunctionAppDaemonHost
{
private readonly ISolution _solution;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Copyright 2018-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the MIT license.

using JetBrains.Application.Parts;
using JetBrains.ProjectModel;
using JetBrains.TextControl.DocumentMarkup;
using JetBrains.TextControl.DocumentMarkup.Adornments;

namespace JetBrains.ReSharper.Azure.Daemon.FunctionApp.InlayHints;

[SolutionComponent]
[SolutionComponent(Instantiation.DemandAnyThreadSafe)]
public class TimerTriggerCronExpressionAdornmentProvider : IHighlighterAdornmentProvider
{
public bool IsValid(IHighlighter highlighter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class AzureQuickListDefaultSettings(
ILogger logger,
AzureCSharpProjectScopeCategoryUIProvider csharpScopeProvider,
AzureFSharpProjectScopeCategoryUIProvider fsharpScopeProvider)
: HaveDefaultSettings(settingsSchema, logger)
: HaveDefaultSettings<QuickListSettings>(settingsSchema, logger)
{
private readonly IMainScopePoint? _myCSharpMainPoint = csharpScopeProvider.MainPoint;
private readonly IMainScopePoint? _myFSharpMainPoint = fsharpScopeProvider.MainPoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
using JetBrains.Application.Settings;
using JetBrains.Diagnostics;
using JetBrains.Lifetimes;
using JetBrains.ReSharper.Feature.Services.LiveTemplates.Settings;

namespace JetBrains.ReSharper.Azure.Intellisense.FunctionApp.LiveTemplates.Settings;

[ShellComponent(Instantiation.DemandAnyThreadSafe)]
public class AzureTemplatesDefaultSettings : IHaveDefaultSettingsStream
public class AzureTemplatesDefaultSettings : IHaveDefaultSettingsStream, IDefaultSettingsRootKey<LiveTemplatesSettings>
{
public Stream GetDefaultSettingsStream(Lifetime lifetime)
{
Expand All @@ -23,5 +24,5 @@ public Stream GetDefaultSettingsStream(Lifetime lifetime)
return stream;
}

public string Name => "Azure default templates";
public string Name => "Azure default LiveTemplates";
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Copyright 2018-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the MIT license.

using System.Collections.Generic;
using JetBrains.Application.Parts;
using JetBrains.IDE.UsageStatistics;
using JetBrains.ProjectModel;

namespace JetBrains.ReSharper.Azure.Project.FunctionApp;

[SolutionComponent]
[SolutionComponent(Instantiation.DemandAnyThreadSafe)]
public class FunctionAppProjectTechnologyProvider : IProjectTechnologyProvider
{
public IEnumerable<string> GetProjectTechnology(IProject project)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2018-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the MIT license.

using System.Collections.Generic;
using JetBrains.Application.Parts;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Azure.Project.FunctionApp;
using JetBrains.ReSharper.Features.Running;
Expand All @@ -9,7 +10,7 @@

namespace JetBrains.ReSharper.Azure.Project.RunnableProjectsHost.RunnableProjectProviders;

[SolutionComponent]
[SolutionComponent(Instantiation.DemandAnyThreadSafe)]
public class AzureFunctionsRunnableProjectProvider(ILogger logger) : IRunnableProjectProvider
{
public RunnableProject? CreateRunnableProject(IProject project, string name, string fullName, IconModel? icon)
Expand Down
Loading