@@ -14,8 +14,6 @@ import com.intellij.openapi.actionSystem.AnActionEvent
14
14
import com.intellij.openapi.project.Project
15
15
import com.intellij.openapi.ui.Messages
16
16
import com.intellij.openapi.ui.popup.JBPopupFactory
17
- import com.intellij.openapi.ui.popup.PopupStep
18
- import com.intellij.openapi.ui.popup.util.BaseListPopupStep
19
17
import com.intellij.openapi.wm.ToolWindowManager
20
18
import com.intellij.ui.ColoredListCellRenderer
21
19
import com.intellij.ui.SimpleTextAttributes
@@ -115,30 +113,6 @@ class ViewHistoryAction : AnAction(
115
113
}
116
114
}
117
115
118
- private inner class SessionPopupStep (
119
- private val project : Project ,
120
- private val sessions : List <ChatSessionHistory >
121
- ) : BaseListPopupStep<SessionListItem>(
122
- AutoDevBundle .message("popup.title.session.history"),
123
- sessions.map { SessionListItem (it, formatRelativeTime(it.createdAt)) }
124
- ) {
125
-
126
- override fun getTextFor (value : SessionListItem ): String {
127
- return value.session.name
128
- }
129
-
130
- override fun onChosen (selectedValue : SessionListItem , finalChoice : Boolean ): PopupStep <* >? {
131
- if (finalChoice) {
132
- loadSessionIntoSketch(project, selectedValue.session)
133
- }
134
- return PopupStep .FINAL_CHOICE
135
- }
136
-
137
- override fun hasSubstep (selectedValue : SessionListItem ): Boolean = false
138
-
139
- override fun isSelectable (value : SessionListItem ): Boolean = true
140
- }
141
-
142
116
override fun actionPerformed (e : AnActionEvent ) {
143
117
val project = e.project ? : return
144
118
val historyService = project.getService(ChatHistoryService ::class .java)
0 commit comments