From 4974b40bd5126cb4215580c0d066057a973f50d1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 16 Aug 2025 23:29:37 +0300 Subject: 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. --- IDEAS.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'IDEAS.md') diff --git a/IDEAS.md b/IDEAS.md index d7ef0d0..ba9b204 100644 --- a/IDEAS.md +++ b/IDEAS.md @@ -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;` -- cgit v1.2.3