mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
small improvements to the prompt
This commit is contained in:
@@ -212,8 +212,9 @@ func lspInformation() string {
|
|||||||
}
|
}
|
||||||
return `# LSP Information
|
return `# LSP Information
|
||||||
Tools that support it will also include useful diagnostics such as linting and typechecking.
|
Tools that support it will also include useful diagnostics such as linting and typechecking.
|
||||||
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.
|
- 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.
|
||||||
Take necessary actions to fix the issues.
|
- Take necessary actions to fix the issues.
|
||||||
|
- 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.
|
||||||
`
|
`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ func notifyLspOpenFile(ctx context.Context, filePath string, lsps map[string]*ls
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
// Wait for the file to be opened and diagnostics to be received
|
// Wait for the file to be opened and diagnostics to be received
|
||||||
// TODO: see if we can do this in a more efficient way
|
// TODO: see if we can do this in a more efficient way
|
||||||
time.Sleep(2 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user