@@ -65,7 +65,6 @@ function renamerefactor(
65
65
66
66
# catch global refactoring not on definition, e.g.: on a call site
67
67
if bind === nothing || old ≠ bind. name
68
- # TODO : `goto` uri
69
68
return Dict (:info => contextdescription (old, mod, context))
70
69
end
71
70
@@ -78,7 +77,7 @@ function renamerefactor(
78
77
moddesc = moduledescription (old, parentmod)
79
78
end
80
79
81
- desc = join ((" _Global_ rename refactoring `$old ` ⟹ `$new ` succeeded." , moddesc, desc), " \n\n " )
80
+ desc = join ((" _Global_ rename refactoring `$mod . $ old ` ⟹ `$mod . $new ` succeeded." , moddesc, desc), " \n\n " )
82
81
end
83
82
84
83
return Dict (kind => desc)
@@ -161,17 +160,24 @@ end
161
160
# descriptions
162
161
# ------------
163
162
164
- moduledescription (old, parentmod) = """
165
- **NOTE**: `$old ` is defined in `$parentmod `
166
- -- you may need the same rename refactorings in that module as well.
163
+ function moduledescription (old, parentmod)
164
+ gotouri = urigoto (parentmod, old)
167
165
"""
166
+ **NOTE**: `$old ` was defined in `$parentmod ` -- you may need the same rename refactorings
167
+ in that module as well. <button>[Go to `$parentmod .$old `]($gotouri )</button>
168
+ """
169
+ end
168
170
169
- contextdescription (old, mod, context) = """
171
+ function contextdescription (old, mod, context)
172
+ gotouri = urigoto (mod, old)
173
+ """
170
174
`$old ` isn't found in local bindings in the current context:
171
175
<details><summary>Context</summary><pre><code>$(strip (context)) </code></p></details>
172
176
173
- If you want a global rename refactoring on `$mod .$old `, you need to call from its definition.
177
+ If you want a global rename refactoring on `$mod .$old `, you need to run this command
178
+ from its definition. <button>[Go to `$mod .$old `]($gotouri )</button>
174
179
"""
180
+ end
175
181
176
182
function filedescription (mod, files)
177
183
filelist = join ((" <li>[$file ]($(uriopen (file)) )</li>" for file in files), ' \n ' )
0 commit comments