mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
Finch 2.3.0: docs for Windows, LSP and VS Code; cheat sheets (en, pl); portable LSP test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
eaacf70e42
commit
d2693c5bac
13 changed files with 961 additions and 46 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Talks to `finch lsp` like an editor would and checks the answers."""
|
||||
import json, os, subprocess, sys, tempfile
|
||||
import json, os, pathlib, subprocess, sys, tempfile
|
||||
|
||||
FINCH = os.environ.get("FINCH", os.path.join(os.path.dirname(__file__), "..", "build", "finch"))
|
||||
failures = 0
|
||||
|
|
@ -76,7 +76,7 @@ def pos(line_no, text): # 0-based position of `text` in a 1-based line
|
|||
d = tempfile.mkdtemp()
|
||||
path = os.path.join(d, "demo.fch")
|
||||
open(path, "w").write(src)
|
||||
uri = "file://" + path
|
||||
uri = pathlib.Path(path).resolve().as_uri()
|
||||
td = {"uri": uri}
|
||||
|
||||
c = Client()
|
||||
|
|
|
|||
Loading…
Reference in a new issue