Skip to content

Commit f8e05a0

Browse files
committed
small improvements to the prompt
1 parent 49b593d commit f8e05a0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

internal/llm/prompt/coder.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,9 @@ func lspInformation() string {
212212
}
213213
return `# LSP Information
214214
Tools that support it will also include useful diagnostics such as linting and typechecking.
215-
These diagnostics will be automatically enabled when you run the tool, and will be displayed in the output at the bottom within the <file_diagnostics></file_diagnostics> and <project_diagnostics></project_diagnostics> tags.
216-
Take necessary actions to fix the issues.
215+
- These diagnostics will be automatically enabled when you run the tool, and will be displayed in the output at the bottom within the <file_diagnostics></file_diagnostics> and <project_diagnostics></project_diagnostics> tags.
216+
- Take necessary actions to fix the issues.
217+
- You should ignore diagnostics of files that you did not change or are not related or caused by your changes unless the user explicitly asks you to fix them.
217218
`
218219
}
219220

internal/llm/tools/diagnostics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func notifyLspOpenFile(ctx context.Context, filePath string, lsps map[string]*ls
6565
if err != nil {
6666
// Wait for the file to be opened and diagnostics to be received
6767
// TODO: see if we can do this in a more efficient way
68-
time.Sleep(2 * time.Second)
68+
time.Sleep(3 * time.Second)
6969
}
7070

7171
}

0 commit comments

Comments
 (0)