Skip to content

Commit

Permalink
Instantiate slice for semantic tokens data
Browse files Browse the repository at this point in the history
  • Loading branch information
doriable committed Dec 11, 2024
1 parent 7321103 commit cb152fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion private/buf/buflsp/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ func (s *server) SemanticTokensFull(
defer progress.Done(ctx)

var (
encoded []uint32
prevLine, prevCol uint32
)
encoded := []uint32{}
for i, symbol := range file.symbols {
progress.Report(ctx, fmt.Sprintf("%d/%d", i+1, len(file.symbols)), float64(i)/float64(len(file.symbols)))

Expand Down

0 comments on commit cb152fa

Please sign in to comment.