Skip to content

Commit 07a549d

Browse files
committed
feat(devin-lang): improve run line markers provider
The run line markers provider for the DevInLanguage has been enhanced to use a more specific message and icon when creating a run configuration from a file. This change ensures that the user experience is more intuitive and aligned with the language's conventions.
1 parent 1e3e21a commit 07a549d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/run/AutoDevConfigurationType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import com.intellij.openapi.util.NotNullLazyValue
1212
class AutoDevConfigurationType : SimpleConfigurationType(
1313
"AutoDevConfigurationType",
1414
DevInLanguage.INSTANCE.id,
15-
AutoDevBundle.message("line.marker.run.0", DevInLanguage.INSTANCE.id),
15+
AutoDevBundle.message("devin.line.marker.run.0", DevInLanguage.INSTANCE.id),
1616
NotNullLazyValue.lazy { DevInIcons.DEFAULT }
1717
) {
1818
override fun createTemplateConfiguration(project: Project): RunConfiguration =

exts/devins-lang/src/main/kotlin/cc/unitmesh/devti/language/run/DevInRunLineMarkersProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class DevInRunLineMarkersProvider : RunLineMarkerContributor(), DumbAware {
2020

2121
return Info(
2222
AllIcons.RunConfigurations.TestState.Run,
23-
{ AutoDevBundle.message("line.marker.run.0", psiFile.containingFile.name) },
23+
{ AutoDevBundle.message("devin.line.marker.run.0", psiFile.containingFile.name) },
2424
*actions
2525
)
2626
}

src/main/resources/messages/AutoDevBundle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ autoarkui.name=AutoArkUi
146146
autoarkui.generate=Auto Generate ArkUI
147147
autoarkui.generate.clarify=Clarify Requirements
148148
autoarkui.generate.design=Design Page
149+
149150
devin.ref.loading=Loading git revision
150-
line.marker.run.0=Run {0}
151-
autodev.devti=Create property
151+
devin.line.marker.run.0=Run {0}
152152
devin.label.choose.file=Choice DevIn File
153153
devin.run.error.script.not.found=Script not found

0 commit comments

Comments
 (0)