1
0
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:
Rebecca Stambler 2019-06-20 14:52:06 -04:00
parent 1fa568393b
commit 6e04913cbb

View File

@ -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
}