Skip to content

Commit

Permalink
Fix another line after -Yexplicit-nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
rochala committed Nov 6, 2023
1 parent 1f63dee commit 1016d16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class CompletionProvider(
additionalEdits: List[TextEdit] = Nil,
range: Option[LspRange] = None
): CompletionItem =
val oldText = params.text.substring(completionPos.start, completionPos.end)
val oldText = params.text().nn.substring(completionPos.start, completionPos.end)
val editRange = if newText.startsWith(oldText) then completionPos.stripSuffixEditRange
else completionPos.toEditRange

Expand Down

0 comments on commit 1016d16

Please sign in to comment.