You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, the VSCode extension installed and
executed gomodifytags directly.
To reduce third-party dependencies in gopls, we are submitting a
change to gomodifytags to extract the functionality into a library
called by gopls (fatih/gomodifytags#117). Now, the extension will call the gopls.modify_tags
command and the command handler will invoke the modifytags package's
Apply() method.
Also adds basic code actions for adding and removing struct tags. This will be extended once we
implement a dialogue feature in gopls.
Change-Id: Idf130c95eec5d469a454cb6f21897629b3364b06
Reviewed-on: https://go-review.googlesource.com/c/tools/+/652495
Reviewed-by: Hongxiang Jiang <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
the Software, and to permit persons to whom the Software is furnished to do so,
44
+
subject to the following conditions:
45
+
46
+
The above copyright notice and this permission notice shall be included in all
47
+
copies or substantial portions of the Software.
48
+
49
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
50
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
51
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
52
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
53
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55
+
56
+
-- github.com/fatih/gomodifytags LICENSE --
57
+
58
+
Copyright (c) 2017, Fatih Arslan
59
+
All rights reserved.
60
+
61
+
Redistribution and use in source and binary forms, with or without
62
+
modification, are permitted provided that the following conditions are met:
63
+
64
+
* Redistributions of source code must retain the above copyright notice, this
65
+
list of conditions and the following disclaimer.
66
+
67
+
* Redistributions in binary form must reproduce the above copyright notice,
68
+
this list of conditions and the following disclaimer in the documentation
69
+
and/or other materials provided with the distribution.
70
+
71
+
* Neither the name of gomodifytags nor the names of its
72
+
contributors may be used to endorse or promote products derived from
73
+
this software without specific prior written permission.
74
+
75
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
76
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
77
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
78
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
79
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
80
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
81
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
82
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
83
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
84
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
85
+
86
+
-- github.com/fatih/structtag LICENSE --
87
+
88
+
Copyright (c) 2017, Fatih Arslan
89
+
All rights reserved.
90
+
91
+
Redistribution and use in source and binary forms, with or without
92
+
modification, are permitted provided that the following conditions are met:
93
+
94
+
* Redistributions of source code must retain the above copyright notice, this
95
+
list of conditions and the following disclaimer.
96
+
97
+
* Redistributions in binary form must reproduce the above copyright notice,
98
+
this list of conditions and the following disclaimer in the documentation
99
+
and/or other materials provided with the distribution.
100
+
101
+
* Neither the name of structtag nor the names of its
102
+
contributors may be used to endorse or promote products derived from
103
+
this software without specific prior written permission.
104
+
105
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
106
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
107
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
108
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
109
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
110
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
111
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
112
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
113
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
114
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
115
+
116
+
This software includes some portions from Go. Go is used under the terms of the
117
+
BSD like license.
118
+
119
+
Copyright (c) 2012 The Go Authors. All rights reserved.
120
+
121
+
Redistribution and use in source and binary forms, with or without
122
+
modification, are permitted provided that the following conditions are
123
+
met:
124
+
125
+
* Redistributions of source code must retain the above copyright
126
+
notice, this list of conditions and the following disclaimer.
127
+
* Redistributions in binary form must reproduce the above
128
+
copyright notice, this list of conditions and the following disclaimer
129
+
in the documentation and/or other materials provided with the
130
+
distribution.
131
+
* Neither the name of Google Inc. nor the names of its
132
+
contributors may be used to endorse or promote products derived from
133
+
this software without specific prior written permission.
134
+
135
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
136
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
137
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
138
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
139
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
140
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
141
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
142
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
143
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
144
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
145
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
146
+
147
+
The Go gopher was designed by Renee French. http://reneefrench.blogspot.com/ The design is licensed under the Creative Commons 3.0 Attributions license. Read this article for more details: https://blog.golang.org/gopher
148
+
33
149
-- github.com/google/go-cmp LICENSE --
34
150
35
151
Copyright (c) 2017 The Go Authors. All rights reserved.
0 commit comments