This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
20 lines
602 B
Text
20 lines
602 B
Text
import Lean.Data.Lsp
|
|
open Lean.Lsp
|
|
|
|
def main (_ : List String) : IO Unit := do
|
|
Ipc.runWith "lean" (#["--server"]) do
|
|
let capabilities := {
|
|
textDocument? := some {
|
|
completion? := some {
|
|
completionItem? := some {
|
|
insertReplaceSupport? := true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Ipc.writeRequest ⟨0, "initialize", { capabilities : InitializeParams }⟩
|
|
discard <| Ipc.readResponseAs 0 InitializeResult
|
|
Ipc.writeNotification ⟨"initialized", InitializedParams.mk⟩
|
|
Ipc.waitForWatchdogILeans 1
|
|
Ipc.shutdown 2
|
|
discard <| Ipc.waitForExit
|