v1.0.5
What's Changed
- Dev by @arnauda-gh in #34
- Improve LSP completion sorting, text sync handling, and documentation fixes by @arnauda-gh in #35
Generated by Github Copilot
This merge request includes several improvements to LSP (Language Server Protocol) integration and documentation:
LSP Completion Enhancements
- Added intelligent completion item sorting based on prefix matching (exact match, prefix match with case sensitivity, and case-insensitive matching)
- Simplified the replace range detection logic for completions
- Improved completion sorting to show most relevant results first
LSP Server Robustness
- Added support for text document synchronization kind detection from server capabilities
- Implemented proper handling of full vs. incremental text synchronization
- Improved LSP initialization to skip notifications during server startup
- Enhanced LSP packet reading with better timeout handling and error reporting
- Fixed completion list parsing to handle both array and object responses from LSP servers
Bug Fixes
- Fixed UTF-16 offset calculations for proper LSP position encoding
- Corrected action parameter order in undo/redo operations
- Improved error handling in LSP notification and response dispatchers (replaced assertions with proper logging)
Documentation Updates
- Fixed README table formatting for LSP server examples
- Updated LSP server names and installation commands for accuracy:
- HTML:
html-languageserver→vscode-html-language-server - CSS:
css-languageserver→vscode-css-language-server - JSON:
json-languageserver→vscode-json-language-server - Makefile: Updated command to use
cargo install makefile-lsp - VHDL: Updated to
vhdl_lswith proper cargo installation
- HTML:
Code Quality
- Refactored logger functions for better organization
- Added logger threshold getter function
- Improved code formatting and consistency throughout
Full Changelog: v1.0.4...v1.0.5