From ba1481ff76a15f13f0ba6f4aafdcb72f9643f194 Mon Sep 17 00:00:00 2001 From: vitalii Date: Sat, 15 Nov 2025 10:59:55 +0200 Subject: [PATCH 1/2] Migrated settings storage to workspace.xml with support for legacy migration. --- .../com/magento/idea/magento2plugin/project/Settings.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/magento/idea/magento2plugin/project/Settings.java b/src/main/java/com/magento/idea/magento2plugin/project/Settings.java index b24b0d6e2..6290e313b 100644 --- a/src/main/java/com/magento/idea/magento2plugin/project/Settings.java +++ b/src/main/java/com/magento/idea/magento2plugin/project/Settings.java @@ -10,6 +10,7 @@ import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import com.intellij.openapi.project.Project; +import com.intellij.openapi.components.StoragePathMacros; import com.intellij.openapi.util.text.StringUtil; import com.intellij.util.EventDispatcher; import com.intellij.util.SmartList; @@ -27,7 +28,8 @@ @State( name = "Magento2PluginSettings", storages = { - @Storage("magento2plugin.xml") + @Storage(StoragePathMacros.WORKSPACE_FILE), + @Storage(value = "magento2plugin.xml", deprecated = true) } ) public class Settings implements PersistentStateComponent { From 7bb2af7824ca0d4c55e62fb1780eb269230be84b Mon Sep 17 00:00:00 2001 From: vitalii Date: Sat, 15 Nov 2025 11:04:08 +0200 Subject: [PATCH 2/2] Update changelog with settings storage migration entry. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63a239c22..355699620 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). ### Fixed - Null PsiDirectory input in GetModuleNameByDirectoryUtil [#2606](https://github.com/magento/magento2-phpstorm-plugin/pull/2606) +- Migrated settings storage to workspace.xm [#2607](https://github.com/magento/magento2-phpstorm-plugin/pull/2607) ## 2025.2.1