Skip to content

Commit

Permalink
fix(shirelang): correct typo in ShireFileModificationListener class name
Browse files Browse the repository at this point in the history
The class name ShireFileModifcationListener was misspelled. This has been corrected to ShireFileModificationListener in both the XML configuration and the Kotlin class definition.
  • Loading branch information
phodal committed Sep 25, 2024
1 parent 2befb53 commit 8baad36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ class ShireFileChangesProvider(val project: Project) : Disposable {
}
}

internal class ShireFileModifcationListener : FileDocumentManagerListener, DocumentListener, ShireFileListener {

internal class ShireFileModificationListener : FileDocumentManagerListener, DocumentListener, ShireFileListener {
fun onUpdated(document: Document) {
FileDocumentManager.getInstance().getFile(document).let { onUpdated(it) }
}
Expand All @@ -77,7 +76,6 @@ internal class ShireFileModifcationListener : FileDocumentManagerListener, Docum
internal class AsyncShireFileListener : AsyncFileListener, ShireFileListener {

override fun prepareChange(events: MutableList<out VFileEvent>): AsyncFileListener.ChangeApplier {

val beforeChangedEvents = mutableListOf<VFileEvent>()
val afterChangedEvents = mutableListOf<VFileEvent>()
for (event in events) {
Expand Down
4 changes: 2 additions & 2 deletions shirelang/src/main/resources/com.phodal.shirelang.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@

<vfs.asyncListener implementation="com.phodal.shirelang.actions.AsyncShireFileListener"/>

<fileDocumentManagerListener implementation="com.phodal.shirelang.actions.ShireFileModifcationListener"/>
<fileDocumentManagerListener implementation="com.phodal.shirelang.actions.ShireFileModificationListener"/>

<editorFactoryDocumentListener implementation="com.phodal.shirelang.actions.ShireFileModifcationListener"/>
<editorFactoryDocumentListener implementation="com.phodal.shirelang.actions.ShireFileModificationListener"/>

</extensions>

Expand Down

0 comments on commit 8baad36

Please sign in to comment.