File tree 1 file changed +10
-8
lines changed
src/limitedwip/watchdog/components
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ChangeSizeWatcher(private val project: Project) {
30
30
private val application = ApplicationManager .getApplication()
31
31
private val projectBasePath = project.basePath ? : " "
32
32
33
- val changeListSizeInLines get() = changeSizesWithPath
33
+ val changeListSizeInLines: ChangeSizesWithPath get() = changeSizesWithPath
34
34
35
35
/* *
36
36
* Can't use com.intellij.openapi.vcs.impl.LineStatusTrackerManager here because it only tracks changes for open files.
@@ -93,13 +93,15 @@ class ChangeSizeWatcher(private val project: Project) {
93
93
94
94
operator fun set (document : Document , changeSize : ChangeSize ) {
95
95
changeSizeByDocument[document] = changeSize
96
- document.addDocumentListener(object : DocumentListener {
97
- override fun beforeDocumentChange (event : DocumentEvent ) {}
98
- override fun documentChanged (event : DocumentEvent ) {
99
- changeSizeByDocument.remove(document)
100
- document.removeDocumentListener(this )
101
- }
102
- }, parentDisposable)
96
+ document.addDocumentListener(
97
+ object : DocumentListener {
98
+ override fun documentChanged (event : DocumentEvent ) {
99
+ changeSizeByDocument.remove(document)
100
+ document.removeDocumentListener(this )
101
+ }
102
+ },
103
+ parentDisposable
104
+ )
103
105
}
104
106
105
107
operator fun get (document : Document ? ): ChangeSize ? =
You can’t perform that action at this time.
0 commit comments