Skip to content

Commit

Permalink
fix(error): rename error template file for clarity
Browse files Browse the repository at this point in the history
Renamed "generate-dockerfile.vm" to "fix-error.vm" in the ErrorPromptBuilder class for better clarity and readability.
  • Loading branch information
phodal committed Mar 7, 2024
1 parent 777baf4 commit e661651
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -23,6 +23,10 @@ class FixThisAction : ChatBaseAction() {
}

val prompt = ErrorMessageProcessor.extracted(project, description)
if (prompt == null) {
logger.error("Prompt is null, description: $description")
return
}

sendToChatWindow(project, getActionType()) { panel, service ->
service.handlePromptAndResponse(panel, object : ContextPrompter() {
Expand Down
Expand Up @@ -72,6 +72,7 @@ object ErrorMessageProcessor {

val errorPromptBuilder =
ErrorPromptBuilder(AutoDevSettingsState.maxTokenLength, TokenizerImpl.INSTANCE)

return errorPromptBuilder.buildPrompt(extractedText, extractedErrorPlaces)
}

Expand Down

0 comments on commit e661651

Please sign in to comment.