diff options
| author | Paul Buetow <paul@buetow.org> | 2025-08-16 23:29:37 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-08-16 23:29:37 +0300 |
| commit | 4974b40bd5126cb4215580c0d066057a973f50d1 (patch) | |
| tree | 0c0febd66e4a59ae713d927474b46fdc4f0592b7 /IDEAS.md | |
| parent | 765eda955eb811d08d867ff4d3914fc6d60c22dd (diff) | |
feat(lsp): code action to rewrite selection with instruction detection
- Adds textDocument/codeAction handler that rewrites the selected range.\n- Instruction preference: strict ;text; marker first, then //, #, -- line comments, then single-line block comments (/* */ and <!-- -->). Earliest in the selection wins.\n- Removes the matched instruction from the selection before sending to LLM.\n- README: document code action workflow and instruction formats.
Diffstat (limited to 'IDEAS.md')
| -rw-r--r-- | IDEAS.md | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -61,9 +61,5 @@ language-servers = [ "gopls", "golangci-lint-lsp", "hexai" ] [language-server.hexai] command = "hexai" -` +``` -## Prompting - -* Write a new function: `;Implement a function that adds two numbers;` -* Replace a whole line: `some other text here ;Implement a function that adds two numbers;` |
