Skip to content

Commit 1a1de1f

Browse files
Merge remote-tracking branch 'origin/endgame-202307' into develop
2 parents e08052a + 858b8e9 commit 1a1de1f

File tree

51 files changed

+405
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+405
-293
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
All notable changes to "Azure Toolkit for IntelliJ IDEA" will be documented in this file.
44

55
- [Change Log](#change-log)
6+
- [3.79.0](#3790)
67
- [3.78.1](#3781)
78
- [3.78.0](#3780)
89
- [3.77.0](#3770)
@@ -99,6 +100,19 @@ All notable changes to "Azure Toolkit for IntelliJ IDEA" will be documented in t
99100
- [3.0.7](#307)
100101
- [3.0.6](#306)
101102

103+
## 3.79.0
104+
### Added
105+
- Support for creating Azure Spring apps/services of Enterprise/Standard/Basic tier in IDE.
106+
- Support for managing deployment target services directly in Project Explorer.
107+
108+
### Fixed
109+
- status shows inactive after creating/refreshing spring app.
110+
- error may occur when importing document into SQL container.
111+
- error may occur when connecting to the storage emulator and running locally.
112+
- error may occur when deploy function app.
113+
- HDInsight Job view nodes are displayed as 'folder icon + cluster name'.
114+
- HDInsight Linked cluster cannot display in Azure Explorer when not signed in.
115+
102116
## 3.78.1
103117
### Fixed
104118
- Fix: error pops when starting/stopping/restarting spring app.

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-applicationinsights/src/main/java/com/microsoft/azure/toolkit/intellij/applicationinsights/task/CreateApplicationInsightsResourceConnectionTask.java

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import com.microsoft.azure.toolkit.lib.applicationinsights.AzureApplicationInsights;
1818
import com.microsoft.azure.toolkit.lib.common.messager.AzureMessager;
1919
import com.microsoft.azure.toolkit.lib.common.operation.AzureOperation;
20+
import com.microsoft.azure.toolkit.lib.common.task.AzureTaskManager;
2021

2122
import javax.annotation.Nonnull;
2223
import java.util.Objects;
@@ -40,19 +41,19 @@ public void execute() {
4041
final Module module = getModule();
4142
final Resource consumer = getModuleConsumer(module);
4243
final AzureModule azureModule = AzureModule.from(module);
43-
final Profile profile = azureModule.getDefaultProfile();
44-
if (Objects.isNull(profile)) {
45-
return;
46-
}
47-
final Connection<?,?> connection = ConnectionManager.getDefinitionOrDefault(resource.getDefinition(),
44+
final AzureTaskManager tm = AzureTaskManager.getInstance();
45+
tm.runAndWait(() -> tm.write(() -> {
46+
final Profile profile = azureModule.initializeWithDefaultProfileIfNot();
47+
final Connection<?, ?> connection = ConnectionManager.getDefinitionOrDefault(resource.getDefinition(),
4848
consumer.getDefinition()).define(resource, consumer);
49-
if (connection.validate(this.project)) {
50-
profile.createOrUpdateConnection(connection);
51-
profile.save();
52-
final String message = String.format("The connection between %s and %s has been successfully created.",
49+
if (connection.validate(this.project)) {
50+
profile.createOrUpdateConnection(connection);
51+
profile.save();
52+
final String message = String.format("The connection between %s and %s has been successfully created.",
5353
resource.getName(), consumer.getName());
54-
AzureMessager.getMessager().success(message);
55-
}
54+
AzureMessager.getMessager().success(message);
55+
}
56+
}));
5657
}
5758

5859
@Nonnull
@@ -63,7 +64,7 @@ public String getName() {
6364

6465
private Resource<ApplicationInsight> getResource() {
6566
final String applicationInsightsId = (String) Objects.requireNonNull(context.getParameter("applicationInsightsId"),
66-
"`applicationInsightsId` should not be null to create a resource connection");
67+
"`applicationInsightsId` should not be null to create a resource connection");
6768
final ApplicationInsight applicationInsight = Azure.az(AzureApplicationInsights.class).getById(applicationInsightsId);
6869
return ApplicationInsightsResourceDefinition.INSTANCE.define(applicationInsight);
6970
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice-java/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/FunctionAppConfigFormPanelAdvance.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ protected void textChanged(@Nonnull final DocumentEvent documentEvent) {
7777
final ApplicationInsightsComboBox insightsComboBox = appServiceMonitorPanel.getApplicationInsightsComboBox();
7878
insightsComboBox.removeItem(insightsConfig);
7979
insightsComboBox.setValue(insightsConfig);
80+
insightsComboBox.reloadItems();
8081
}
8182
});
8283
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice-java/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/runner/core/FunctionUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public class FunctionUtils {
115115
REQUIRED_ATTRIBUTE_MAP.put(BindingEnum.HttpTrigger, Arrays.asList("authLevel"));
116116
}
117117

118+
@AzureOperation(name = "internal/function.save_app_settings_to_security_storage")
118119
public static void saveAppSettingsToSecurityStorage(String key, Map<String, String> appSettings) {
119120
if (StringUtils.isEmpty(key)) {
120121
return;
@@ -123,6 +124,7 @@ public static void saveAppSettingsToSecurityStorage(String key, Map<String, Stri
123124
IntelliJSecureStore.getInstance().savePassword(AZURE_FUNCTIONS_APP_SETTINGS, key, null, appSettingsJsonValue);
124125
}
125126

127+
@AzureOperation(name = "internal/function.load_app_settings_from_security_storage")
126128
public static Map<String, String> loadAppSettingsFromSecurityStorage(String key) {
127129
if (StringUtils.isEmpty(key)) {
128130
return new HashMap<>();

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice-java/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/runner/localrun/FunctionRunState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class FunctionRunState extends AzureRunProfileState<Boolean> {
102102
private static final ComparableVersion MINIMUM_JAVA_9_SUPPORTED_VERSION_V2 = new ComparableVersion("2.7.2628");
103103
private static final BindingEnum[] FUNCTION_WITHOUT_FUNCTION_EXTENSION = {BindingEnum.HttpOutput, BindingEnum.HttpTrigger};
104104
private static final List<String> AZURE_WEB_JOBS_STORAGE_NOT_REQUIRED_TRIGGERS = Arrays.asList("httptrigger", "kafkatrigger", "rabbitmqtrigger",
105-
"orchestrationTrigger", "activityTrigger", "entityTrigger");
105+
"activityTrigger", "entityTrigger");
106106
private static final String CONNECTION_TITLE = "AzureWebJobsStorage is missing";
107107
private static final String CONNECTION_DESCRIPTION = "Please set the resource connection for AzureWebJobsStorage.";
108108
private boolean isDebuggerLaunched;

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/AppServiceComboBox.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public AppServiceComboBox(final Project project) {
4949

5050
@Override
5151
public void setValue(T val, Boolean fixed) {
52-
if (isDraftResource(val) && !this.draftItems.contains(val)) {
52+
if (isDraftResource(val)) {
53+
this.draftItems.remove(val);
5354
this.draftItems.add(0, val);
5455
this.reloadItems();
5556
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/insights/ApplicationInsightsComboBox.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ public void setSubscription(Subscription subscription) {
5252

5353
@Override
5454
public void setValue(final ApplicationInsightsConfig val, Boolean fixed) {
55-
if (val != null && val.isNewCreate() && !this.draftItems.contains(val)) {
55+
if (val != null && val.isNewCreate()) {
56+
this.draftItems.remove(val);
5657
this.draftItems.add(0, val);
5758
this.reloadItems();
5859
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/appservice/serviceplan/ServicePlanComboBox.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ public void setRegion(Region region) {
9797

9898
@Override
9999
public void setValue(@Nullable AppServicePlan val, Boolean fixed) {
100-
if (Objects.nonNull(val) && val.isDraftForCreating() && !this.draftItems.contains(val)) {
100+
if (Objects.nonNull(val) && val.isDraftForCreating()) {
101+
this.draftItems.remove(val);
101102
this.draftItems.add(0, val);
102103
this.reloadItems();
103104
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/runner/deploy/ui/components/DeploymentSlotComboBox.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public void setAppService(final String appServiceId) {
4848

4949
@Override
5050
public void setValue(DeploymentSlotConfig val, Boolean fixed) {
51-
if (isDraftResource(val) && !this.draftItems.contains(val)) {
51+
if (isDraftResource(val)) {
52+
this.draftItems.remove(val);
5253
this.draftItems.add(0, val);
5354
this.reloadItems();
5455
}

PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-bicep/src/main/resources/META-INF/azure-intellij-plugin-bicep.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@
2828
id="org.wso2.lsp4intellij.contributors.LSPCompletionContributor" language="any"/>
2929
<!-- needed for completion as well as signature help -->
3030
<typedHandler implementation="org.wso2.lsp4intellij.listeners.LSPTypedHandler"
31-
id="LSPTypedHandler"/>
31+
id="Azure.LSPTypedHandler"/>
3232

3333
<!-- needed for code diagnostics -->
34-
<externalAnnotator id="LSPAnnotator" language="TEXT"
34+
<externalAnnotator id="Azure.LSPAnnotator" language="TEXT"
3535
implementationClass="org.wso2.lsp4intellij.contributors.annotator.LSPAnnotator"/>
3636

3737
<!-- needed for Workspace Symbols -->
3838
<gotoSymbolContributor implementation="org.wso2.lsp4intellij.contributors.symbol.LSPSymbolContributor"
39-
id="LSPSymbolContributor"/>
39+
id="Azure.LSPSymbolContributor"/>
4040

4141
<!-- needed for renaming -->
42-
<renameHandler implementation="org.wso2.lsp4intellij.contributors.rename.LSPRenameHandler" id="LSPRenameHandler" order="first"/>
43-
<renamePsiElementProcessor implementation="org.wso2.lsp4intellij.contributors.rename.LSPRenameProcessor" id="LSPRenameProcessor" order="first"/>
42+
<renameHandler implementation="org.wso2.lsp4intellij.contributors.rename.LSPRenameHandler" id="Azure.LSPRenameHandler" order="first"/>
43+
<renamePsiElementProcessor implementation="org.wso2.lsp4intellij.contributors.rename.LSPRenameProcessor" id="Azure.LSPRenameProcessor" order="first"/>
4444
</extensions>
4545

4646
<actions>
4747
<!-- needed for hover -->
4848
<action id="org.intellij.sdk.action.QuickDocAction" class="org.wso2.lsp4intellij.actions.LSPQuickDocAction" text="Show Quick Doc"/>
49-
<action class="org.wso2.lsp4intellij.actions.LSPGotoDeclarationAction" id="GotoDeclaration" use-shortcut-of="GotoDeclaration"
49+
<action class="org.wso2.lsp4intellij.actions.LSPGotoDeclarationAction" id="Azure.GotoDeclaration" use-shortcut-of="GotoDeclaration"
5050
overrides="true" text="Go to Declaration or Usages"/>
51-
<action class="org.wso2.lsp4intellij.actions.LSPReformatAction" id="ReformatCode" use-shortcut-of="ReformatCode"
51+
<action class="org.wso2.lsp4intellij.actions.LSPReformatAction" id="Azure.ReformatCode" use-shortcut-of="ReformatCode"
5252
overrides="true" text="Reformat Code" />
5353
<!-- needed for find references -->
54-
<action class="org.wso2.lsp4intellij.actions.LSPReferencesAction" id="LSPFindUsages" text="Find Usages">
54+
<action class="org.wso2.lsp4intellij.actions.LSPReferencesAction" id="Azure.LSPFindUsages" text="Find Usages">
5555
<keyboard-shortcut first-keystroke="shift alt F7" keymap="$default"/>
5656
</action>
5757
</actions>

0 commit comments

Comments
 (0)