Commit Graph
106 Commits
Author SHA1 Message Date
csh bb44bd1e32 🐛 fix(core): enable syntax diagnostics 2026-07-14 12:09:17 +08:00
csh e122abc305 🗑️ remove(provider): delete staged capability scaffolding 2026-07-14 12:08:42 +08:00
csh 5a02bd10f9 🎨 style(core): normalize lifecycle implementation 2026-07-14 12:08:09 +08:00
csh 12e1a87b2b 🐛 fix(core): convert diagnostics to UTF-16 positions 2026-07-14 09:35:34 +08:00
csh 71b519793a 🐛 fix(core): reject invalid LSP framing 2026-07-14 09:03:47 +08:00
csh 101b69e84f 🐛 fix(core): dispatch cancellable requests asynchronously 2026-07-14 08:56:30 +08:00
csh efb6eae796 🐛 fix(core): return JSON-RPC protocol errors 2026-07-14 08:22:40 +08:00
csh 06a0da5124 🐛 fix(core): enforce strict LSP lifecycle 2026-07-13 21:35:40 +08:00
csh 89b8937697 🐛 fix(async_executor): implement cooperative cancellation 2026-07-13 16:03:56 +08:00
csh aa31ecad18 test(text_coordinates): run cases before exit coverage 2026-07-12 12:32:55 +08:00
csh 61d16d0147 🐛 fix(text_coordinates): convert LSP UTF-16 positions 2026-07-12 12:15:46 +08:00
csh 98c05323cb test(cli): harden startup coverage 2026-07-11 21:58:33 +08:00
csh 49e7c7f424 test(lsp): remove obsolete logger flags 2026-07-11 18:26:14 +08:00
csh 3642aa8b5b ♻️ refactor(cli): validate startup arguments 2026-07-11 18:07:22 +08:00
csh f4f629c232 📦 deps(lsp_server): update conan dependencies
lsp-server ci / build-and-test (push) Failing after 0s
2026-05-27 09:54:39 +08:00
csh 7aa60e78f8 🐛 fix(tree_sitter): parse anonymous procedures and property accessors
accept anonymous procedure expressions, keyword-prefixed identifiers,

and read/write accessor nodes in the grammar and generated parsers.

sync ast tests, parser scripts, sample fixtures, and playbook

config with the updated parser behavior.
2026-05-24 11:07:30 +08:00
csh a9958f36fe 🔧 chore(repo): refresh local rules and ast defaults
add repository-local agent rules and refresh the architecture notes
for the current lsp layering.

register the AST self-test in CTest, initialize a few AST defaults,
and bump glaze to the newer conan package version.

verify: `cmake --build lsp-server/build/clang-linux/Release --target test_ast`
verify: `ctest --test-dir lsp-server/build/clang-linux/Release -R test_ast_unit --output-on-failure` passes
known issue: `ctest --test-dir lsp-server/build/clang-linux/Release -R test_ast_script --output-on-failure` still fails on `/home/csh/windows_share/tsf/funcext/Common/Tree/TTree.tsf` due to invalid TSF syntax (`FConfig &= v` missing trailing `;`).
2026-03-06 13:03:00 +08:00
csh 32e1eb09db 🐛 fix(ast): support single-variable for-in fallback
normalize single-variable for-in nodes in the deserializer and
rewrite legacy input in test_ast when the bundled parser cannot
generate updated parse tables.

skip known-invalid tsf fixtures in test.sh so batch runs can
continue past syntax errors that the grammar should not accept.
2026-03-06 11:45:53 +08:00
csh 20b7d439b1 🔧 lsp-server: update CMakeLists
lsp-server ci / build-and-test (push) Failing after 21s
2026-02-02 17:41:31 +08:00
csh e4e7d4d5ae 🔧 lsp-server: update cppm sources 2026-02-02 17:32:57 +08:00
csh 2ffa3d48c3 📦 deps(lsp_server): bump conan dependencies 2026-01-08 16:07:46 +08:00
csh f056b0cad1 test(lsp_server): update test scripts and tsf cases 2026-01-08 15:51:54 +08:00
csh b2a1bb6685 feat(lsp_server): add call snippets to completion resolve 2025-12-24 15:13:10 +08:00
csh baaf2ee688 🎨 style(bridge): drop unused std imports 2025-12-24 14:02:04 +08:00
csh 1a784c6452 🔧 chore(lsp_server): keep full provider/capability list commented 2025-12-24 13:52:22 +08:00
csh d13b24a5da 🐛 fix(lsp_server): disable diagnostics publishing by default 2025-12-24 13:45:35 +08:00
csh ec2c580a8c test(lsp_server): cover completion trigger cases
Add explicit coverage for empty-prefix variants, unit/member dot access, createobject quoting forms, and resolve snippet placeholders.

Verified: test_provider (clang-linux-server/Release)
2025-12-24 12:23:53 +08:00
csh adec86a3aa 🐛 fix(symbol): index all system tsf files
Do not drop system-library .tsf units when the file stem differs from top-level symbols.

Add test_provider support for --interpreter=... and an interpreter integration test that validates full indexing plus completion+resolve snippet.
2025-12-24 12:02:30 +08:00
csh 02864dda89 🔧 chore(lsp_server): gate providers to completion/definition
Initialize now advertises only completion (resolve) and definition.

Verified: test_provider (clang-linux-server/Release)
2025-12-24 11:33:40 +08:00
csh 09e65224fe feat(lsp_server): implement missing providers and json coverage
Implement workspace configuration/folders and apply WorkspaceEdit.changes.

Strengthen provider JSON coverage (all methods require params, no errors).

Verified: Release test_provider
2025-12-24 10:42:13 +08:00
csh f6943e69ef 🔧 chore(conan): update cross build example 2025-12-21 22:53:08 +08:00
csh d2d3d9eb48 🎨 style(provider): restore trailing newlines 2025-12-21 22:23:42 +08:00
csh 2c1c1d8a88 feat(provider): add compile-time registry 2025-12-21 22:21:46 +08:00
csh f54050bad2 ♻️ refactor(semantic): split semantic partitions
move semantic declarations into focused partitions and add new type_system.types/graph.types modules.

reorder lsp server members so async executor shuts down before manager hub to avoid exit crash.
2025-12-21 21:33:15 +08:00
csh 442bb5db7e 🧹 chore: align scripts with kept build dirs 2025-12-21 17:35:42 +08:00
csh 6dcbe0a1cd 🐛 fix: filter createobject completion prefix 2025-12-21 16:12:39 +08:00
csh f56cf960f1 🐛 fix: align trace value type 2025-12-21 16:12:28 +08:00
csh eb44afe2be 🧪 test: ignore IDS_AuditExpr in ast/symbol scripts 2025-12-21 15:57:38 +08:00
csh fbf6c85baa 🧪 test: register remaining tests in ctest 2025-12-21 15:52:09 +08:00
csh f2d2aeb272 🧪 test: wire ast/symbol scripts into ctest 2025-12-21 15:47:27 +08:00
csh bb0cbde79c 🧪 test: add LSP json fixtures and provider suite 2025-12-21 15:39:33 +08:00
csh 53f4588c53 🐛 fix: align rename provider method names 2025-12-21 15:39:16 +08:00
csh 1de97aace5 🐛 fix: support LSP request id variants 2025-12-21 15:38:46 +08:00
csh 8e564fc8bb 🧹 remove empty extern C block 2025-12-20 11:33:09 +08:00
csh b27dafb657 sync tree-sitter grammar and AST 2025-12-20 11:25:33 +08:00
csh 7c13d70d3a 🔧 chore(standards): sync cpp playbook rules
Vendor standards live under docs/standards/playbook and are synced into .agents/cpp.

Add AGENTS.md entries so agents working in lsp-server follow the C++ ruleset and standards.
2025-12-14 17:57:26 +08:00
csh e75027b80a 🔧 chore(symbol): trace per-library file indexing
- Log each indexed .tsf file at trace level during LoadSystemLibrary.
- Include top-level symbol summary when a file is skipped for stem mismatch.
2025-12-14 14:06:24 +08:00
csh 9a12b1b194 🐛 fix(logging): support --log-stderr and clarify stdin wait
- Make logs go to stderr by default (keep LSP stdout clean).
- Add --log-stderr/--log-stdout flags and wire config.use_stderr into spdlog.
- Log an explicit message when waiting for LSP input on stdin.
2025-12-14 13:43:56 +08:00
csh 241de77152 🐛 fix(symbol): treat .tsl as script, not library
- LoadSystemLibrary now only scans .tsf files.
- LoadWorkspace still indexes .tsl scripts but skips the file-stem/top-level check for them.
2025-12-14 13:28:14 +08:00
csh 566830bdb8 🐛 fix(symbol): emit module symbols for unit
Fix Builder::CreateSymbol to handle SymbolKind::Module (Unit) so system/workspace loading can match file stems.
2025-12-14 13:13:54 +08:00