Skip to content

Commit 14e9bdd

Browse files
authored
Merge pull request #10939 from microsoft/wangmi/update-develop
update develop
2 parents ea6bdb5 + 0ec3f92 commit 14e9bdd

File tree

10 files changed

+41
-30
lines changed

10 files changed

+41
-30
lines changed

.azure-pipelines/sign-for-stable-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ extends:
142142
- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
143143
displayName: "Manifest Generator "
144144
inputs:
145-
BuildDropPath: $(build.artifactstagingdirectory)/drop
145+
BuildDropPath: $(build.artifactstagingdirectory)/drop

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-arm/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ dependencies {
33
// runtimeOnly project(path: ":azure-intellij-plugin-lib", configuration: "instrumentedJar")
44
implementation("com.microsoft.azure:azure-toolkit-ide-common-lib")
55
implementation("com.microsoft.azure:azure-toolkit-ide-arm-lib")
6+
intellijPlatform {
7+
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
8+
bundledPlugin("com.intellij.modules.json")
9+
}
610
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-arm/src/main/java/com/microsoft/azure/toolkit/intellij/arm/language/ARMTemplateCompletionProvider.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@
55

66
package com.microsoft.azure.toolkit.intellij.arm.language;
77

8+
import com.intellij.json.psi.JsonProperty;
89
import com.google.common.collect.Sets;
910
import com.intellij.codeInsight.completion.CompletionParameters;
1011
import com.intellij.codeInsight.completion.CompletionProvider;
1112
import com.intellij.codeInsight.completion.CompletionResultSet;
1213
import com.intellij.codeInsight.lookup.LookupElementBuilder;
13-
import com.intellij.json.psi.impl.JsonPropertyImpl;
14+
import com.intellij.json.psi.JsonValue;
1415
import com.intellij.psi.PsiElement;
1516
import com.intellij.util.ProcessingContext;
1617

1718
import java.util.Arrays;
19+
import java.util.Objects;
20+
import java.util.Optional;
1821
import java.util.Set;
1922
import org.jetbrains.annotations.NotNull;
2023

@@ -57,12 +60,10 @@ protected void addCompletions(@NotNull CompletionParameters parameters, Processi
5760
}
5861

5962
private boolean isProperty(PsiElement position) {
60-
PsiElement parentElement = position.getParent().getParent().getOriginalElement();
61-
if (parentElement instanceof JsonPropertyImpl) {
62-
if (((JsonPropertyImpl) parentElement).getValue() == null) {
63-
return true;
64-
}
65-
return !position.getText().equals(((JsonPropertyImpl) parentElement).getValue().getText());
63+
final PsiElement parentElement = position.getParent().getParent().getOriginalElement();
64+
if (parentElement instanceof JsonProperty) {
65+
final String value = Optional.ofNullable(((JsonProperty) parentElement).getValue()).map(JsonValue::getText).orElse(null);
66+
return Objects.isNull(value) || !position.getText().equals(value);
6667
}
6768
return false;
6869
}
@@ -75,8 +76,10 @@ private Scope findScope(PsiElement position) {
7576
while (position.getParent().getParent().getParent() != null) {
7677
position = position.getParent();
7778
}
78-
String positionName = ((JsonPropertyImpl) position).getName();
79-
return Scope.valueOf(positionName);
79+
80+
// String positionName = ((JsonProperty) position).namespace();
81+
// return Scope.valueOf(positionName);
82+
return Scope.root;
8083
} catch (Exception ignore) {
8184
return Scope.root;
8285
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-containerservice/src/main/java/com/microsoft/azure/toolkit/intellij/containerservice/actions/OpenKubernetesPluginAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public CoroutineContext getContext() {
135135
public void resumeWith(@Nonnull Object o) {
136136
if (o instanceof com.intellij.kubernetes.api.ContextsConfiguration configuration) {
137137
final Context context = configuration.getContexts().entrySet().stream()
138-
.filter(c -> StringUtils.equals(c.getKey(), cluster.getName()))
138+
.filter(c -> StringUtils.equals(c.getKey().getName(), cluster.getName()))
139139
.findFirst()
140140
.map(Map.Entry::getValue)
141141
.orElse(null);

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-hdinsight-lib/src/main/kotlin/com/microsoft/azure/hdinsight/spark/ui/SparkSubmissionJobUploadStorageAzureBlobCard.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ class SparkSubmissionJobUploadStorageAzureBlobCard
6868
var selectedContainer: String?
6969
}
7070

71+
private val textChangeTriggerResetStorageContainerListener = object : DocumentAdapter() {
72+
override fun textChanged(e: DocumentEvent) {
73+
storageContainerUI.comboBox.model = DefaultComboBoxModel()
74+
}
75+
}
76+
7177
private val secureStore: ISecureStore? = AzureStoreManager.getInstance().secureStore
7278
private val storageAccountTip = "The default storage account of the HDInsight cluster, which can be found from HDInsight cluster properties of Azure portal."
7379
private val storageKeyTip = "The storage key of the default storage account, which can be found from HDInsight cluster storage accounts of Azure portal."
@@ -133,12 +139,6 @@ class SparkSubmissionJobUploadStorageAzureBlobCard
133139
button.addActionListener { doRefresh() }
134140
}
135141

136-
private val textChangeTriggerResetStorageContainerListener = object : DocumentAdapter() {
137-
override fun textChanged(e: DocumentEvent) {
138-
storageContainerUI.comboBox.model = DefaultComboBoxModel()
139-
}
140-
}
141-
142142
@Synchronized
143143
private fun doRefresh() {
144144
if (storageContainerUI.button.isEnabled) {

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-monitor/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ dependencies {
66
implementation("com.azure:azure-monitor-query:1.0.10")
77
implementation("org.apache.commons:commons-csv:1.9.0")
88
implementation("com.michaelbaranov:microba:0.4.4.3")
9-
}
9+
intellijPlatform {
10+
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
11+
bundledPlugin("com.intellij.modules.json")
12+
}
13+
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-vm/src/main/java/com/microsoft/azure/toolkit/intellij/vm/runtarget/AzureVmTargetType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public final void actionPerformed(ActionEvent it) {
117117
if (configuration instanceof SshTargetEnvironmentConfiguration) {
118118
final SshConfig sshConfig = ((SshTargetEnvironmentConfiguration) configuration).findSshConfig(project);
119119
final SshUiData uiData = sshConfig != null ? new SshUiData(sshConfig, true) : null;
120-
SshTargetType.Companion.handleBrowsing$intellij_remoteRun(uiData, project, title, component, textComponentAccessor);
120+
// SshTargetType.Companion.handleBrowsing$intellij_remoteRun(uiData, project, title, component, textComponentAccessor);
121121
} else {
122122
Messages.showWarningDialog(component, RemoteSdkBundle.message("dialog.message.got.unexpected.settings.for.browsing", new Object[0]), title);
123123
}

PluginsAndFeatures/azure-toolkit-for-intellij/gradle.properties

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
pluginVersion=3.95.0
2-
intellijDisplayVersion=2024.2
3-
intellij_version=IU-2024.2
4-
platformVersion=2024.2
2+
intellijDisplayVersion=2025.1
3+
intellij_version=IU-2025.1
4+
platformVersion=2025.1
55
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
6-
pluginSinceBuild=242
7-
pluginUntilBuild=242.*
6+
pluginSinceBuild=251
7+
pluginUntilBuild=251.*
88
# Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP
9-
platformPlugins=org.intellij.scala:2024.2.5
9+
platformPlugins=org.intellij.scala:2025.1.7
1010
# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
1111
platformType=IU
1212
needPatchVersion=true

PluginsAndFeatures/azure-toolkit-for-intellij/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# libraries
33

44
# plugins
5-
kotlin = "1.9.24"
5+
kotlin = "2.1.0"
66
changelog = "2.2.0"
7-
intellijPlatform = "2.1.0"
7+
intellijPlatform = "2.3.0"
88
detekt = "1.23.6"
99
ktlint = "12.1.1"
1010
#gradleIntelliJPlugin = "1.17.3"

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
ARTIFACTS_DIR=artifacts
22
INJECT_INTELLIJ_VERSION=true
3-
IJ_VERSION_MAJOR_BUILD=241.12662.62
4-
IJ_VERSION_MAJOR=233-EAP-SNAPSHOT
3+
IJ_VERSION_MAJOR_BUILD=251.27812.49
4+
IJ_VERSION_MAJOR=2025.1
55
IJ_VERSION_MINOR=
6-
IJ_SCALA_VERSION_LATEST=2024.1.2
6+
IJ_SCALA_VERSION_LATEST=2025.1.7
77
skipCheckstyle=true
88
skipTest=false
99
forceClean=false

0 commit comments

Comments
 (0)