Skip to content

Commit 58cfd5b

Browse files
committed
fix: bug fix #603
1 parent d5d592b commit 58cfd5b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/main/java/com/tang/intellij/lua/project/LuaSourceRootManager.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package com.tang.intellij.lua.project
1818

1919
import com.intellij.openapi.components.PersistentStateComponent
20+
import com.intellij.openapi.components.Service
2021
import com.intellij.openapi.components.State
2122
import com.intellij.openapi.components.Storage
2223
import com.intellij.openapi.module.ModuleManager
@@ -31,6 +32,7 @@ interface LuaSourceRootListener {
3132
fun onChanged()
3233
}
3334

35+
@Service(Service.Level.PROJECT)
3436
@State(name = "LuaSourceRootManager", storages = [(Storage("emmy.xml"))])
3537
class LuaSourceRootManager(val project: Project) : PersistentStateComponent<LuaSourceRootManager.State> {
3638
companion object {

src/main/resources/META-INF/emmylua-core.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,6 @@
332332
topic="com.intellij.openapi.fileTypes.FileTypeListener"/>
333333
</applicationListeners>
334334

335-
<project-components>
336-
<component>
337-
<implementation-class>com.tang.intellij.lua.project.LuaSourceRootManager</implementation-class>
338-
</component>
339-
</project-components>
340-
341335
<actions>
342336
<group id="LuaCallHierarchyPopupMenu">
343337
<reference ref="EditSource"/>

0 commit comments

Comments
 (0)