---
title: "Interactive refactoring in gopls"
description: "gopls now supports interactive refactoring through a proposed Language Server Protocol extension, co-designed with the Dart team, that lets language servers ask the user for input before computing edits."
url: "https://swe.quest/articles/interactive-refactoring-in-gopls-71fe08e61af60368"
canonical: "https://go.dev/blog/interactive-refactoring"
source: "The Go Blog"
published: "2026-10-16"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 7
tags: ["developer-tools","refactoring","go"]
---

# Interactive refactoring in gopls

A post on [The Go Blog](https://swe.quest/sources/go.md), published 2026-10-16, 7 min read, Announcement. Original: [https://go.dev/blog/interactive-refactoring](https://go.dev/blog/interactive-refactoring)

## Summary

gopls now supports interactive refactoring through a proposed Language Server Protocol extension, co-designed with the Dart team, that lets language servers ask the user for input before computing edits. Previously, LSP code actions were effectively parameterless, so gopls had to guess, for example always emitting camelCase json struct tags, or skip a refactoring entirely. The new mechanism enables configurable Add/Remove struct tags, Implement Interface with workspace symbol search and type-argument prompts, and a previewed Move Declaration that carries dependent helpers and fixes imports. It ships in gopls v0.24.0 and vscode-go v0.56.0, with Change Signature, conflict resolution and interactive test/benchmark configuration on the roadmap.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Go](https://swe.quest/tags/go.md) (Languages)

## Prerequisites

- Go basics ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))
- Language Server Protocol

## Keywords

gopls, Language Server Protocol, VS Code, vscode-go, Dart

## Related posts

- [Zed Weekly: #26](https://swe.quest/articles/zed-weekly-26-03163e8327774f9f.md): Zed · 2023-11-10 · Medium · 9 min read · Rust, Developer tools, Frontend
  Zed's team reports progress porting the editor to GPUI 2, including a new action- and key-context-based keyboard handling API shown with a Rust menu example.
- [Copilot x Zed](https://swe.quest/articles/copilot-x-zed-48f53be12c312262.md): Zed · 2023-04-20 · Medium · 2 min read · Developer tools, AI for coding
  GitHub Copilot is now available in Zed v0.82, integrated by reusing the undocumented, minified Copilot LSP server shipped in the Neovim plugin, which Zed's built-in LSP support could drive directly.
- [Zed Weekly: #23](https://swe.quest/articles/zed-weekly-23-d3ef49beb6d8eb22.md): Zed · 2023-10-13 · Medium · 7 min read · Developer tools, Rust, Concurrency, Frontend, Performance engineering
  Zed's weekly team update covers a fix for typing lag with autocomplete.
- [Enabling low-latency, syntax-aware editing using Tree-sitter](https://swe.quest/articles/enabling-low-latency-syntax-aware-editing-using-tree-sitter-9ffe8225d976568b.md): Zed · 2023-03-27 · Medium · 10 min read · Developer tools, Compilers, Data structures, Rust
  Zed builds its syntax-aware features on Tree-sitter, a GLR-based incremental parsing framework with error recovery that produces concrete syntax trees.
- [Zed Weekly: #17](https://swe.quest/articles/zed-weekly-17-390d0b1828377e87.md): Zed · 2023-08-22 · Easy · 7 min read · Developer tools, LLMs, Rust
  Weekly team update from the Zed editor team covering AI features, channels, language support and UI work.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
