Skip to content

Commit 2b95fc3

Browse files
committed
fix: dispose statusBar
1 parent 7ddb9fa commit 2b95fc3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

jetbrains/plugin/src/main/kotlin/ai/kilocode/jetbrains/actors/MainThreadStatusBarShape.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ interface MainThreadStatusBarShape : Disposable {
5151
* @param id Entry identifier
5252
*/
5353
fun removeEntry(id: Int)
54+
55+
/**
56+
* Dispose a status bar entry (alias for removeEntry for VSCode compatibility)
57+
* @param id Entry identifier
58+
*/
59+
fun disposeEntry(id: Int)
5460
}
5561

5662
/**
@@ -126,6 +132,12 @@ class MainThreadStatusBar(
126132
// For now, we just log the removal
127133
}
128134

135+
override fun disposeEntry(id: Int) {
136+
logger.info("Disposing status bar entry: id=$id")
137+
// disposeEntry is functionally equivalent to removeEntry for VSCode compatibility
138+
removeEntry(id)
139+
}
140+
129141
private fun updateStatusBar(project: Project, entry: StatusBarEntry) {
130142
try {
131143
// Get the status bar for the project

0 commit comments

Comments
 (0)