feat(lsp): deeper rename for fields, variants, qualified paths

bux-lsp 0.7 indexes struct fields and enum variants and renames only the
right binding: .member / ::Variant / field-init, without clobbering locals.

- Member scan in analyzeFile; access kinds bare/dot/colon/field-init
- classifyRenameTarget: local | member | global
- smoke_lsp_rename_deep + test-lsp wiring
This commit is contained in:
2026-07-19 23:09:51 +03:00
parent 94cc94f638
commit 42f9453e18
5 changed files with 469 additions and 58 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ if ! grep -q 'renameProvider' "$TMP/out.txt"; then
echo "FAIL: initialize missing renameProvider"
exit 1
fi
if ! grep -qE '0\.[56]\.0' "$TMP/out.txt"; then
if ! grep -qE '0\.[567]\.0' "$TMP/out.txt"; then
echo "WARN: unexpected bux-lsp version in initialize"
fi