This extension provides high-performance, fully featured JSON editing experience on Xed-Editor
This extension integrates light-json-lsp to provide rich editor features:
- High Performance: Built on top of Tree-sitter for fast, incremental parsing and synchronous LSP transport.
- JSON Schema Support: Full support for JSON Schema drafts 4 through 2020-12.
- Diagnostics: Live syntax error checking, duplicate key detection, and JSONC (comments and trailing commas) tolerance.
- Editor Integrations:
- Code Completion: Context-aware completions derived from JSON schemas.
- Hover Information: Displays schema descriptions and documentation.
- Document Symbols: Hierarchy view of the JSON structure.
- Formatting & Sorting: CST-based code formatting and key sorting.
- Document Links: Support for
$refresolution and clickable URLs. - Color Highlights: Hex color detection and presentation.
- Folding & Selection Ranges: Precise structure-aware text selections and code folding.
app/: The Android project wrapper (written in Kotlin) that interfaces with Xed-Editor's Extension SDK.com.rk.xededitor.json.Main: Entry point that detects system ABI and loads/registers the LSP server.com.rk.xededitor.json.JsonServer: Manages the life cycle of the LSP process and handles path resolutions.
light-json-lsp/: The Core LSP server written in Rust.bin/: Precompiled target-specific binaries for the Rust LSP.bin/arm64-v8a/light-json-lspbin/armeabi-v7a/light-json-lspbin/x86_64/light-json-lsp
manifest.json: Describes the extension details (ID, name, main class, version) for Xed-Editor.
- Android SDK / NDK (for building the Android wrapper)
- Java JDK 21
- Rust Toolchain (with
cargo-ndkif compiling the LSP binary from source)
./compileDebug./compileReleaseThe resulting zip package is outputted to:
output/Json LSP.zip
This project is licensed under the MIT License.