Skip to content

Commit 6ca9d01

Browse files
committed
fix(test): ensure editor selection after file opening #324
Fix issue where editor selection was not guaranteed after opening a file by moving
1 parent c580a4c commit 6ca9d01

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/src/main/kotlin/cc/unitmesh/devti/intentions/action/task/TestCodeGenTask.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,6 @@ class TestCodeGenTask(val request: TestCodeGenRequest, displayMessage: String) :
172172
var editors: Array<FileEditor> = emptyArray()
173173
ApplicationManager.getApplication().invokeAndWait {
174174
editors = fileEditorManager.openFile(context.outputFile, true)
175-
}
176-
177-
if (editors.isNotEmpty()) {
178175
fileEditorManager.setSelectedEditor(context.outputFile, "text-editor")
179176
}
180177

0 commit comments

Comments
 (0)