fix(hashline): replaced delimiter heuristics with tree-sitter validation

- Replaced heuristic delimiter-balance boundary repairs with tree-sitter guided variants.
- Added combinatorial search over replacement boundary keep/drop variants and syntax-essential row validation.
- Removed obsolete `CloserSpareAmbiguityError` along with custom JSX parsing and delimiter counting helpers.
- Updated warning and error messages to include unified boundary diagnostics.
This commit is contained in:
can1357
2026-08-13 06:40:40 +02:00
parent 2d512cb253
commit 006ea27fbd
6 changed files with 715 additions and 1144 deletions
@@ -2645,7 +2645,7 @@ describe("lsp regressions", () => {
rootMarkers: [],
isLinter: true,
};
const server = installFakeLsp((message, srv) => {
installFakeLsp((message, srv) => {
if (message.method === "initialize") {
srv.send({
jsonrpc: "2.0",