1
1
---
2
- title : " Gopls release v0.20.0 (forthcoming) "
2
+ title : " Gopls release v0.20.0"
3
3
---
4
4
5
- This release contains a new experimental Model Context Protocol server for
6
- gopls, which may be used to integrate a subset of gopls' features in
7
- AI-assisted environments.
5
+ This release contains a new experimental Model Context Protocol (MCP)
6
+ server for gopls, which may be used to integrate a subset of gopls'
7
+ features in AI-assisted environments.
8
8
9
- Additionally, gopls' documentation is now available on the Go project's website
10
- at https://go.dev/gopls . (Note: this link will not be accurate until the
11
- completion of the release. Dueing the pre-release period, please use
12
- https://tip.golang.org/gopls , which reflects the latest commit.)
13
-
14
- Unlike markdown files in GitHub, these pages are crawled by Google's
9
+ Gopls' documentation is now available on the Go project's website at
10
+ https://go.dev/gopls . (This link reflects the latest gopls release;
11
+ use https://tip.golang.org/gopls to see docs for the latest commit.)
12
+ Unlike Markdown files in GitHub, these pages are crawled by Google's
15
13
web search index.
16
14
17
- ## Configuration Changes
15
+ ## Configuration changes
16
+
17
+ This release enables by default the new persistent index of packages
18
+ in the module cache. This was first attempted in [ v0.19.0] but reverted
19
+ due to problems that have since been fixed.
18
20
19
21
## Web-based features
20
22
@@ -38,14 +40,6 @@ the tool will automate the code transformation, but for now
38
40
you must do that step by hand.
39
41
40
42
41
- <!--
42
-
43
- ### $feature
44
-
45
- https://go.dev/issue#xxxxx
46
-
47
- -->
48
-
49
43
## Editing features
50
44
51
45
### Model Context Protocol server
@@ -58,9 +52,9 @@ See the [documentation](../features/mcp.md) for more information.
58
52
59
53
** Caveats:** This is a brand new mode of operation for gopls, and so we're
60
54
still experimenting with the best set of tools and instructions to provide.
61
- Please let us know how well it works for you. Also, please be aware that using
62
- gopls in an AI powered environment may carry additional security
63
- considerations, as discussed in the documentation above.
55
+ Please let us know how well it works for you. Also, please be aware that
56
+ allowing LLMs to execute operations in your workspace entails additional
57
+ security considerations, as discussed in the documentation above.
64
58
65
59
## Analysis features
66
60
@@ -98,3 +92,8 @@ that are unreferenced within their declaring package.
98
92
the analysis framework since it depends on the entire workspace.)
99
93
100
94
## Code transformation features
95
+
96
+ <!-- golang/go#45199 -->
97
+ The Rename operation now allows you to rename an embedded field, such
98
+ as T in ` struct{ T } ` , so long as the operation is requested at the
99
+ field declaration (T). Both the field and its type will be renamed.
0 commit comments