Skip to content

Commit

Permalink
feat(devin-lang): improve run line markers provider
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phodal committed Mar 16, 2024
1 parent 1e3e21a commit 07a549d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -12,7 +12,7 @@ import com.intellij.openapi.util.NotNullLazyValue
class AutoDevConfigurationType : SimpleConfigurationType(
"AutoDevConfigurationType",
DevInLanguage.INSTANCE.id,
AutoDevBundle.message("line.marker.run.0", DevInLanguage.INSTANCE.id),
AutoDevBundle.message("devin.line.marker.run.0", DevInLanguage.INSTANCE.id),
NotNullLazyValue.lazy { DevInIcons.DEFAULT }
) {
override fun createTemplateConfiguration(project: Project): RunConfiguration =
Expand Down
Expand Up @@ -20,7 +20,7 @@ class DevInRunLineMarkersProvider : RunLineMarkerContributor(), DumbAware {

return Info(
AllIcons.RunConfigurations.TestState.Run,
{ AutoDevBundle.message("line.marker.run.0", psiFile.containingFile.name) },
{ AutoDevBundle.message("devin.line.marker.run.0", psiFile.containingFile.name) },
*actions
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/messages/AutoDevBundle.properties
Expand Up @@ -146,8 +146,8 @@ autoarkui.name=AutoArkUi
autoarkui.generate=Auto Generate ArkUI
autoarkui.generate.clarify=Clarify Requirements
autoarkui.generate.design=Design Page

devin.ref.loading=Loading git revision
line.marker.run.0=Run {0}
autodev.devti=Create property
devin.line.marker.run.0=Run {0}
devin.label.choose.file=Choice DevIn File
devin.run.error.script.not.found=Script not found

0 comments on commit 07a549d

Please sign in to comment.