Release 1.4.3 — Codebase corrections and full stabilization
Release 1.4.3 — Codebase corrections and full stabilization
Overview
This release delivers a complete round of corrections and refinements across the extension, the integrated LSP server, and packaging configuration. The primary goal is to stabilize the entire toolchain, improve maintainability, and ensure compatibility with the VS Code Marketplace distribution process.
⸻
Extension (VS Code Client)
• Fixed extension.ts to eliminate TypeScript errors and ensure strict typing compliance.
• Refined documentSelector handling for LSP activation (supports vitte, vit, and vitl).
• Improved command registration: logs, restart, built-in actions (format, organize imports, fix all), rename, debug samples, and info display.
• Added robust status bar integration with clear feedback on LSP state (starting, running, stopped).
• Hardened middleware for document formatting fallback to VS Code built-in formatter.
⸻
LSP Server
• Enriched server.ts with full feature set: completion, hover, document symbols, definition, references, rename (with prepare), formatting, diagnostics, semantic tokens, and workspace symbols.
• Implemented configuration handling with dynamic updates and defaults (trace, lintDebounceMs, enableFormatting, maxFileSizeKB).
• Added lint debounce scheduling with cancellation and size guards to avoid performance issues on large files.
• Extended error handling with try/catch wrappers and structured logging.
• Added metrics for lint duration when trace mode is set to verbose.
⸻
Packaging
• Corrected icon path to images/icon.png for proper Marketplace display.
• Added repository, homepage, and bugs metadata in package.json.
• Removed conflict between files property and .vscodeignore; packaging now relies exclusively on .vscodeignore with explicit !out/** inclusion.
• Updated .vscodeignore rules to exclude sources, configs, and tests while shipping only compiled artifacts and required assets.
• Ensured compatibility with vsce package and Marketplace publishing flow.
⸻
Documentation
• Updated activation events to avoid redundant onCommand entries where VS Code already handles automatic activation.
• Improved inline comments in configuration files (language-configuration.json, package.json) for maintainability.
• Clarified default server path resolution with support for overriding via user settings (vitte.serverPath).
⸻
Stability and Quality
• Full codebase validated with tsc --noEmit.
• Verified packaging with vsce package produces a compliant .vsix.
• Extension tested under VS Code 1.93.0 with smooth activation and LSP operation across .vitte, .vit, and .vitl files.