mirror of
https://github.com/golang/go
synced 2024-11-18 15:44:41 -07:00
internal/lsp: fix bug in creating token.Files
Change-Id: Ib133762b6848d78fd3d264b211b44b36316a551d Reviewed-on: https://go-review.googlesource.com/c/tools/+/183260 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
This commit is contained in:
parent
1fa568393b
commit
6e04913cbb
1
internal/lsp/cache/token.go
vendored
1
internal/lsp/cache/token.go
vendored
@ -84,5 +84,6 @@ func tokenFile(ctx context.Context, c *cache, fh source.FileHandle) (*token.File
|
||||
if tok == nil {
|
||||
return nil, fmt.Errorf("no token.File for %s", fh.Identity().URI)
|
||||
}
|
||||
tok.SetLinesForContent(buf)
|
||||
return tok, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user