mirror of https://github.com/golang/go.git
internal/lsp/tests: fix missing period
Change-Id: Idb0b6405aefec1dcef84958482325a68afec5348 Reviewed-on: https://go-review.googlesource.com/c/tools/+/218957 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
0bc66720f3
commit
8feddd8b6a
|
|
@ -156,7 +156,7 @@ const (
|
|||
// Fuzzy tests deep completion and fuzzy matching.
|
||||
CompletionFuzzy
|
||||
|
||||
// CaseSensitive tests case sensitive completion
|
||||
// CaseSensitive tests case sensitive completion.
|
||||
CompletionCaseSensitive
|
||||
|
||||
// CompletionRank candidates in test must be valid and in the right relative order.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import (
|
|||
|
||||
// DiffLinks takes the links we got and checks if they are located within the source or a Note.
|
||||
// If the link is within a Note, the link is removed.
|
||||
// Returns an diff comment if there are differences and empty string if no diffs
|
||||
// Returns an diff comment if there are differences and empty string if no diffs.
|
||||
func DiffLinks(mapper *protocol.ColumnMapper, wantLinks []Link, gotLinks []protocol.DocumentLink) string {
|
||||
var notePositions []token.Position
|
||||
links := make(map[span.Span]string, len(wantLinks))
|
||||
|
|
@ -36,7 +36,7 @@ func DiffLinks(mapper *protocol.ColumnMapper, wantLinks []Link, gotLinks []proto
|
|||
}
|
||||
linkInNote := false
|
||||
for _, notePosition := range notePositions {
|
||||
// Drop the links found inside expectation notes arguments as this links are not collected by expect package
|
||||
// Drop the links found inside expectation notes arguments as this links are not collected by expect package.
|
||||
if notePosition.Line == spn.Start().Line() &&
|
||||
notePosition.Column <= spn.Start().Column() {
|
||||
delete(links, spn)
|
||||
|
|
|
|||
Loading…
Reference in New Issue