Skip to content

Commit fc3cfc3

Browse files
authored
Merge pull request #2607 from vitaliyboykocontributor/2558-com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments-java.lang.Throwable
Migrated settings storage to workspace.xml with support for legacy mi…
2 parents ca74b0f + 7bb2af7 commit fc3cfc3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
99
### Fixed
1010

1111
- Null PsiDirectory input in GetModuleNameByDirectoryUtil [#2606](https://github.com/magento/magento2-phpstorm-plugin/pull/2606)
12+
- Migrated settings storage to workspace.xm [#2607](https://github.com/magento/magento2-phpstorm-plugin/pull/2607)
1213

1314
## 2025.2.1
1415

src/main/java/com/magento/idea/magento2plugin/project/Settings.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.intellij.openapi.components.State;
1111
import com.intellij.openapi.components.Storage;
1212
import com.intellij.openapi.project.Project;
13+
import com.intellij.openapi.components.StoragePathMacros;
1314
import com.intellij.openapi.util.text.StringUtil;
1415
import com.intellij.util.EventDispatcher;
1516
import com.intellij.util.SmartList;
@@ -27,7 +28,8 @@
2728
@State(
2829
name = "Magento2PluginSettings",
2930
storages = {
30-
@Storage("magento2plugin.xml")
31+
@Storage(StoragePathMacros.WORKSPACE_FILE),
32+
@Storage(value = "magento2plugin.xml", deprecated = true)
3133
}
3234
)
3335
public class Settings implements PersistentStateComponent<Settings.State> {

0 commit comments

Comments
 (0)