Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion private/buf/buflsp/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ func isTokenTypeDelimiter(tok token.Token) bool {
kind := tok.Kind()
return (kind == token.Unrecognized && tok.IsZero()) ||
(kind == token.Space && strings.IndexByte(tok.Text(), '\n') != -1) ||
(kind == token.Comment)
(kind == token.Comment && strings.HasSuffix(tok.Text(), "\n"))
}

// extractAroundOffset extracts the value around the offset by querying the token stream.
Expand Down