coc-ts-go
v0.1.1
Published
Preview of the native TypeScript language server for Visual Studio Code.
Downloads
8
Readme
coc-ts-go
tips: this readme doc generate by lingma
Preview of the native TypeScript language server for coc.nvim, fork from typescript-go
This extension provides a preview of the native TypeScript language server (tsgo) for coc.nvim. It is an experimental alternative to the default TypeScript language service and may provide better performance and more accurate TypeScript/JavaScript language features.
Features
- Native TypeScript language server integration
- Support for JavaScript and TypeScript (including React variants)
- Experimental performance improvements
- Pprof profiling support
- LSP trace output for debugging
Requirements
- coc.nvim version 0.0.82 or higher
- Node.js
Installation
Install the extension in your coc.nvim setup:
:CocInstall coc-ts-goEnable the extension by running the command:
:CocCommand typescript.native-preview.enable
Configuration
This extension contributes the following settings:
typescript.experimental.useTsgo: Enable the native TypeScript language server (default:false)typescript.native-preview.trace.server: Trace server communication (default:"verbose")typescript.native-preview.pprofDir: Directory to write pprof profiles to (optional)typescript.native-preview.tsdk: Path to the @typescript/native-preview package or tsgo binary directory
You can configure these in your coc-settings.json:
{
"typescript.experimental.useTsgo": true,
"typescript.native-preview.trace.server": "verbose"
}Commands
The extension provides the following commands:
typescript.native-preview.enable: Enable the native TypeScript servertypescript.native-preview.disable: Disable the native TypeScript servertypescript.native-preview.restart: Restart the language servertypescript.native-preview.output.focus: Show extension outputtypescript.native-preview.lsp-trace.focus: Show LSP trace output
You can access these commands through :CocCommand.
Usage
Once enabled, the extension will automatically provide language services for TypeScript and JavaScript files. The extension adds a status bar item showing tsgo when active.
Development
- Clone this repository
- Install dependencies:
pnpm install - Build the extension:
pnpm build - Link to your coc.nvim extensions directory
License
MIT
Note
This is an experimental preview and may have issues. Please report any problems you encounter.
