Refactoring via the Language Server Protocol
summary
Implements Wrangler refactorings inside the Erlang Language Server so editors get Wrangler via Erlang LS using LSP JSON-RPC messages; uses code actions, workspace/executeCommand and workspace edits to apply changes and returns success/warnings. Supports extract-function, rename and multi-file refactors (inline-variable pending); uses highlights, semantic tokens and code lenses to present complex previews; VS Code middleware supplies user-input prompts because LSP lacks form fields; files must be saved before/after and the Windows installer needs updating.
AI-written summary · about
chapters (6)
- 0:0001:13 - Intro
- 1:1405:31 - Refactoring & Wrangler
- 5:3210:08 - Language Server Protocol
- 10:0917:11 - Wrangler LS Implementation
- 17:1226:07 - More Complex Refactorings
- 26:0832:19 - QnA
related talks
30mImproving the development experience with language servers
22mEasier Lint Authoring with Semantic Search and (...)
34mThe Future of Erlang LS
30mYour IDE deserves better
40mHow To (Semi-)Automate JavaScript Refactoring
20mThey see me refactorin'. They hatin'
39mCheck your code with RefactorErl!
30mNabLab from Eclipse to VSCode thanks to LSP & Sirius Web
