Skip to content

Commit

Permalink
moar dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
scohen committed Sep 13, 2023
1 parent 08ce476 commit 18e997c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions apps/server/test/support/lexical/test/completion_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,19 @@ defmodule Lexical.Test.Server.CompletionCase do

position = %Document.Position{line: line, character: column}

context =
trigger_character =
if is_binary(trigger_character) do
Types.Completion.Context.new(
trigger_kind: :trigger_character,
trigger_character: nil
)
trigger_character
else
Types.Completion.Context.new(trigger_kind: :trigger_character)
nil
end

context =
Types.Completion.Context.new(
trigger_kind: :trigger_character,
trigger_character: trigger_character
)

Completion.complete(project, document, position, context)
end

Expand Down

0 comments on commit 18e997c

Please sign in to comment.