0.0.5 • Published 3 years ago
vtsls v0.0.5
vtsls
Notice: The server has not been well tested, use it at your own risk. Feedback welcome.
This is an LSP wrapper around TypeScript extension bundled with VSCode. All features and performance are nearly the same.
Usage
Install by npm install -g vtsls, then run vtsls --stdio.
Supported LSP Features
See available server capabilities.
Commands
Just works
typescript.goToProjectConfigtypescript.openTsServerLogtypescript.restartTsServertypescript.reloadProjectstypescript.selectTypeScriptVersion
Special
- Go to source definition
{ command: "typescript.goToSourceDefinition", arguments: [DocumentUri, Position] }
=> Location[]- File references
{ command: "typescript.findAllFileReferences", arguments: [DocumentUri] }
=> Location[]Update paths on rename
Should work if client is capable of sending
workspace/didRenameFilesnotification. No special handling is needed on client side.
Configuration
Almost the same as TypeScript extension of VSCode, with a few additional settings excluded for this server.
* => javascript|typescript
vtsls.*.format.baseIndentSizevtsls.*.format.indentSizevtsls.*.format.tabSizevtsls.*.format.newLineCharactervtsls.*.format.convertTabsToSpacesvtsls.*.format.indentStylevtsls.*.format.trimTrailingWhitespacevtsls.*.wordPattern
Code Actions
Same as VSCode. The list below may not be complete.
typescript.organizeImportstypescript.sortImportsjavascript.sortImportstypescript.removeUnusedImportsjavascript.removeUnusedImports
TODO
- E2E test
- Diagnostics polling
Not Planned
- Read TypeScript plugin from VSCode extensions
Similar Projects
0.1.0
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1-alpha.3
3 years ago
0.0.1-alpha.2
3 years ago
0.0.1-alpha.1
3 years ago
0.0.1
3 years ago