File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/kotlin/cc/unitmesh/devti Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import com.intellij.openapi.components.service
14
14
import com.intellij.openapi.diagnostic.logger
15
15
import com.intellij.openapi.vcs.VcsDataKeys
16
16
import com.intellij.openapi.vcs.changes.Change
17
+ import com.intellij.openapi.vcs.changes.ChangeListManager
17
18
import com.intellij.openapi.vcs.ui.CommitMessage
18
19
import kotlinx.coroutines.runBlocking
19
20
import kotlinx.coroutines.flow.*
Original file line number Diff line number Diff line change @@ -47,8 +47,11 @@ class VcsPrompting(private val project: Project) {
47
47
it.changes
48
48
}
49
49
50
- val context = project.service<DiffSimplifier >().simplify(changes, defaultIgnoreFilePatterns)
51
- return context
50
+ return prepareContext(changes)
51
+ }
52
+
53
+ fun prepareContext (changes : List <Change >): String {
54
+ return project.service<DiffSimplifier >().simplify(changes, defaultIgnoreFilePatterns)
52
55
}
53
56
54
57
/* *
You can’t perform that action at this time.
0 commit comments