Repository activity
40458 results across all weeks
test(code-actions): expose inline recovery stack overflow
Add a reduced reproducer for eager inline edit construction overflowing the stack on a malformed, unused binding.
Rudi Grinberg (@rgrinberg)test(code-actions): expose malformed destruct-line reply
Adds an end-to-end reproduction for malformed destruct-line recovery.
Rudi Grinberg (@rgrinberg)test(code-actions): expose nested or-pattern corruption
Adds an end-to-end reproduction for destruct-line splitting a nested or-pattern as if each bar introduced a separate match case.
Rudi Grinberg (@rgrinberg)test(code-actions): filter rendered edits by action
Allow source-rendering code-action helpers to identify an action with both its title and an optional predicate. This supports cases where the protocol kind is the stable discriminator while preserving title-based behavior for existing callers.
Rudi Grinberg (@rgrinberg)test(code-actions): refresh package-constraint snapshot
Refresh the package-constraint regression snapshot after #2191 and #2194 landed together. The formatter now retains tuple parentheses, so the expected | , _ -> _ becomes | (, _) -> _.
Rudi Grinberg (@rgrinberg)test(code-actions): render annotation edits as source
Render successful type-annotation and annotation-removal actions as transformed source with the requested selection marked inline. This makes the effects on nested functions, patterns, and multiline expressions visible without manually applying serialized workspace edits. In particular, the coerced-expression case now makes clear that removing the inner anno…
Rudi Grinberg (@rgrinberg)test(code-actions): render destruct edits as source
Render successful destruct actions as transformed source with their requested selections marked inline. The expectations now show inserted cases, indentation, parentheses, and multiline placement in context rather than as serialized edits.
Rudi Grinberg (@rgrinberg)test(code-actions): render interface edits as source
Render inferred-interface, signature-update, and combine-cases actions as transformed source with their request ranges marked inline. The expectations now show how declarations and adjacent cases change in context instead of requiring readers to apply workspace-edit JSON manually.
Rudi Grinberg (@rgrinberg)test(code-actions): render quick-fix edits as source
Render module-qualification, missing-rec, inferred-interface, and incremental combine-cases actions as transformed source instead of serialized workspace edits.
Rudi Grinberg (@rgrinberg)test(code-actions): share interface test setup
Factor implementation-document preparation and interface action invocation out of the inferred-interface and signature-update tests. This removes repeated URI, document-open, target-path, and action-title plumbing while keeping each implementation/interface pair inline and self-contained.
Rudi Grinberg (@rgrinberg)test(completion): mark request positions inline
Mark completion request positions inline where the cursor is otherwise difficult to infer, and apply uniquely selected completions when replacement behavior is the subject of the test. Cases such as incorrect suffixes, backtick-only prefixes, holes, and keyword completion now show the resulting source directly.
Rudi Grinberg (@rgrinberg)test(definition): expose Not_found for nullary exception
Adds a regression test for go-to-definition on a nullary exception used as a structure expression:
Rudi Grinberg (@rgrinberg)test(dune): cover location-free diagnostics and unknown promotion removal
Add fake-Dune end-to-end coverage for diagnostics without locations and removal of unknown promotions.
Rudi Grinberg (@rgrinberg)test(dune): expose late cleanup after RPC errors
Factor the existing disconnected-instance finalization into a testable helper without changing its behavior. The regression test records that an RPC failure is currently reported before cleanup runs, while confirming that cleanup eventually runs exactly once.
Rudi Grinberg (@rgrinberg)test(dune): render formatting edits as source
Apply successful Dune formatting edits and print the resulting stanza instead of serialized TextEdit JSON. The malformed-input request still asserts the RPC error, and its unexpected-success path now renders edits against the malformed source as well.
Rudi Grinberg (@rgrinberg)test(e2e): share cursor marker parsing
Add Test.parse_cursor on top of marked-selection parsing. It centralizes the invariant that a cursor marker must produce a zero-length range and returns the source together with the request position.
Rudi Grinberg (@rgrinberg)test(e2e): share marked-source edit helpers
Centralize marked-selection parsing and source rendering for E2E tests so request tests can show both where an action is invoked and the resulting document.
Rudi Grinberg (@rgrinberg)test(formatting): mark ranges and render formatted source
Replace numeric range construction with inline selection markers in range-formatting tests, then show each compact edit range alongside the resulting source. This makes OCaml, ocamllex, and Menhir formatting effects readable in their surrounding document while retaining minimal-edit coverage.
Rudi Grinberg (@rgrinberg)test(formatting): render on-type indentation in source
Apply the successful on-type formatting response and print the resulting source with whitespace escaped. The inserted indentation is now visible in context while the existing RPC launch count continues to verify helper-process reuse.
Rudi Grinberg (@rgrinberg)test(formatting): show formatted source beside edit ranges
Show successful document-formatting responses as both compact edit ranges and the resulting source. This keeps the existing coverage of minimal diff boundaries while making formatter selection and visible output directly readable.
Rudi Grinberg (@rgrinberg)