Skip to content

Commit 666c70f

Browse files
authored
合并拉取请求 #99
6.6.0
2 parents 3318274 + 3a7e630 commit 666c70f

27 files changed

Lines changed: 1242 additions & 267 deletions

.idea/workspace.xml

Lines changed: 159 additions & 175 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
## [6.6.0] - 2025-11-06
6+
7+
* Add the dio service listening master switch setting
8+
* Modify the dart vm http request list UI (new: table list)
9+
510
## [6.5.0] - 2025-11-04
611

712
* Adds provider panel (dart vm) beta version

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
kotlin.stdlib.default.dependency=false
2-
pluginVersion=6.5.0.
2+
pluginVersion=6.6.0.
33
#252
44
dartVersion=252.25557.23
55
sinceBuildVersion=252
Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
package shop.itbug.fluttercheckversionx.actions
22

33
import com.intellij.icons.AllIcons
4-
import com.intellij.openapi.actionSystem.ActionManager
5-
import com.intellij.openapi.actionSystem.AnAction
64
import com.intellij.openapi.actionSystem.AnActionEvent
7-
import com.intellij.openapi.diagnostic.fileLogger
5+
import com.intellij.openapi.diagnostic.thisLogger
86
import com.intellij.openapi.options.ShowSettingsUtil
97
import com.intellij.openapi.project.DumbAwareAction
108
import shop.itbug.fluttercheckversionx.i18n.PluginBundle
@@ -15,12 +13,7 @@ import shop.itbug.fluttercheckversionx.setting.AppConfig
1513
*/
1614
class OpenSettingAnAction : DumbAwareAction({ PluginBundle.get("setting.flutterx") }, AllIcons.General.Settings) {
1715
override fun actionPerformed(e: AnActionEvent) {
18-
fileLogger().debug("打开系统设置")
16+
thisLogger().debug("打开系统设置")
1917
e.project?.let { ShowSettingsUtil.getInstance().showSettingsDialog(it, AppConfig::class.java) }
2018
}
21-
22-
companion object {
23-
fun getInstance(): AnAction =
24-
ActionManager.getInstance().getAction("shop.itbug.fluttercheckversionx.actions.OpenSettingAnAction")
25-
}
2619
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
package shop.itbug.fluttercheckversionx.actions.components
2+
3+
import com.intellij.execution.configurations.GeneralCommandLine
4+
import com.intellij.icons.AllIcons
5+
import com.intellij.openapi.actionSystem.AnAction
6+
import com.intellij.openapi.actionSystem.AnActionEvent
7+
import com.intellij.openapi.actionSystem.DefaultActionGroup
8+
import com.intellij.openapi.project.DumbAware
9+
import com.intellij.openapi.project.DumbAwareAction
10+
import shop.itbug.fluttercheckversionx.config.FlutterConfigQuickOpenInCommandDialog
11+
import shop.itbug.fluttercheckversionx.config.FlutterXGlobalConfigService
12+
import shop.itbug.fluttercheckversionx.util.RunUtil
13+
14+
class QuickOpenInActions: DefaultActionGroup(), DumbAware {
15+
16+
override fun getChildren(e: AnActionEvent?): Array<out AnAction?> {
17+
if(e!=null){
18+
val list = mutableListOf<AnAction>()
19+
val setting = FlutterXGlobalConfigService.getInstance().state
20+
val customOpenIn = setting.quickOpenInCommand
21+
if (customOpenIn.isNotEmpty()) {
22+
customOpenIn.forEach { item ->
23+
val title = item.title
24+
val command = item.command
25+
if (title != null && command != null) {
26+
list.add(object : DumbAwareAction(title) {
27+
override fun actionPerformed(p0: AnActionEvent) {
28+
RunUtil.runOpenInBackground(p0, title) {
29+
GeneralCommandLine(command.split(" "))
30+
}
31+
}
32+
})
33+
}
34+
}
35+
}
36+
list.add(object : DumbAwareAction("Add Custom Quick Open In","", AllIcons.General.Add) {
37+
override fun actionPerformed(e: AnActionEvent) {
38+
val project = e.project
39+
if (project != null) {
40+
FlutterConfigQuickOpenInCommandDialog(project).show()
41+
}
42+
}
43+
})
44+
return list.toTypedArray()
45+
}
46+
return super.getChildren(e)
47+
}
48+
49+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package shop.itbug.fluttercheckversionx.actions.dio
2+
3+
import com.intellij.icons.AllIcons
4+
import com.intellij.openapi.actionSystem.ActionUpdateThread
5+
import com.intellij.openapi.actionSystem.AnAction
6+
import com.intellij.openapi.actionSystem.AnActionEvent
7+
import shop.itbug.fluttercheckversionx.config.DioListingUiConfig
8+
import shop.itbug.fluttercheckversionx.socket.service.AppService
9+
import shop.itbug.fluttercheckversionx.socket.service.DioApiService
10+
import shop.itbug.fluttercheckversionx.util.TaskRunUtil
11+
12+
class DioStatusCheckAction: AnAction() {
13+
override fun actionPerformed(p0: AnActionEvent) {
14+
p0.project?.let { project ->
15+
TaskRunUtil.runBackground(project,"FlutterX socket starting"){
16+
DioApiService.getInstance().tryStart(project)
17+
DioListingUiConfig.changeSetting { it.copy(enableFlutterXDioSocket = true) }
18+
}
19+
}
20+
21+
}
22+
23+
override fun update(e: AnActionEvent) {
24+
e.presentation.isVisible = e.project != null && !AppService.getInstance().dioIsStart
25+
e.presentation.text = "FlutterX socket not started yet."
26+
e.presentation.icon = AllIcons.General.Warning
27+
super.update(e)
28+
}
29+
30+
override fun getActionUpdateThread(): ActionUpdateThread {
31+
return ActionUpdateThread.BGT
32+
}
33+
}

0 commit comments

Comments
 (0)