Skip to content

Add extract and inline refactorings - #753

Merged
renkun-ken merged 3 commits into
REditorSupport:masterfrom
renkun-ken:codex/extract-inline-refactorings
Aug 15, 2026
Merged

renkun-ken merged 3 commits into
REditorSupport:masterfrom
renkun-ken:codex/extract-inline-refactorings

Conversation

@renkun-ken

Copy link
Copy Markdown
Member

Summary

  • advertise refactor.extract and refactor.inline code actions
  • add extract-variable and extract-function edits, including indexed free-variable and live-out analysis
  • add conservative single-use local-variable inlining
  • return previewable workspace edits, using versioned document changes when supported
  • guard stale parses, literate cells, index readiness, NSE and control flow, assignment targets, multiple outputs, and name collisions

This builds on workspace indexing so cross-file symbol analysis is trustworthy.

Validation

  • focused code-action and refactoring tests
  • full test suite; feature tests pass, with the unrelated closed-input connection test observed flaky once and passing in isolation
  • R CMD INSTALL to a temporary library
  • git diff --check

Addresses #94.

@renkun-ken
renkun-ken merged commit 1e60a71 into REditorSupport:master Aug 15, 2026
5 checks passed
This was referenced Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant