-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
Description
Description
Add support for Deno language server to provide enhanced editing capabilities for Deno TypeScript/JavaScript files.
Current State
Currently, the nanocoder LSP system does not include support for Deno-specific language servers, which limits the editing experience for Deno-based projects.
Desired Implementation
Add support for Deno language server in the server-discovery.ts file. The recommended approach is:
Deno Language Server:
- deno:
deno lspcommand- Languages:
ts,tsx,js,jsx,mjs,cjs(when using Deno) - Installation:
curl -fsSL https://deno.land/install.sh | shor via package manager - GitHub: https://github.com/denoland/deno
- Deno provides its own LSP server via the
deno lspcommand
- Languages:
Implementation Requirements
- Add Deno language server definition to the
KNOWN_SERVERSarray - Include appropriate verification method (likely 'lsp' since
deno lsp --stdiocan be used) - Provide clear installation hints for Deno
- Consider how to differentiate between regular TypeScript/JavaScript files and Deno files
- Map appropriate file extensions (ts, tsx, js, jsx, mjs, cjs when in Deno context)
- Ensure proper language ID mapping for LSP protocol
Reference
From the ArchWiki LSP page, Deno provides its own built-in language server via deno lsp.
Additional Context
Deno support is important for the growing ecosystem of Deno users. The challenge here is to detect when to use Deno's LSP vs standard TypeScript/JavaScript LSP. This could be determined by:
- Presence of
deno.jsonordeno.jsoncconfig files - Presence of
denocommand in the project - Project context or configuration
Deno LSP provides:
- TypeScript/JavaScript support optimized for Deno
- Import maps support
- TypeScript type checking with Deno's type system
- Built-in formatting and linting
- Better integration with Deno's security model