Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 committed Jan 6, 2024
1 parent 29a3861 commit d59e4e9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/tlspclient.nim
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,17 @@ suite "lsp: Send requests":
let err = client.textDocumentDidOpen(path, LanguageId, Text)
assert err.isOk

block:
const SecondVersion = 2
let changedText = "echo 1\ne"
check client.textDocumentDidChange(SecondVersion, path, changedText).isOk

let position = BufferPosition(line: 1, column: 0)
check client.textDocumentCompletion(Id, path, position).isOk
const IsIncompleteTrigger = false
check client.textDocumentCompletion(
Id,
path,
position,
IsIncompleteTrigger,
"e").isOk
check client.waitingResponse.get == LspMethod.textDocumentCompletion

0 comments on commit d59e4e9

Please sign in to comment.