-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/source: rename: update the doc link associated wit…
…h the object The change will update the doc links when renaming the object referred to by the doc links. Doc links (https://go.dev/doc/comment#doclinks) are links of the form "[Name1]" or "[Name1.Name2]" that refer to exported identifiers in the current package, or "[pkg]", "[pkg.Name1]", or "[pkg.Name1.Name2]" to refer to identifiers in other packages. The doc links may contain a leading star (e.g. "[*Buffer]", "[*bytes.Buffer]"). The "pkg" can be a package path and can refer to a package that is not imported (e.g., "[example.com/pkg.Name]"). If you want to modify such links, you have to scan all files, so this type of link is not supported at this change. Doc links are only valid in "Doc comments". Doc comments are comments that appear immediately before top-level package, const, func, type, and var declarations with no intervening newlines. Therefore, only the package-level comment needs to be scanned. Fixes golang/go#64495 Change-Id: I218a3eb9aff4947063dd2f8362fb89e3b3d72536 Reviewed-on: https://go-review.googlesource.com/c/tools/+/548415 Reviewed-by: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information
Showing
2 changed files
with
387 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.