0.0.5 • Published 1 year 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.goToProjectConfig
typescript.openTsServerLog
typescript.restartTsServer
typescript.reloadProjects
typescript.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/didRenameFiles
notification. 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.baseIndentSize
vtsls.*.format.indentSize
vtsls.*.format.tabSize
vtsls.*.format.newLineCharacter
vtsls.*.format.convertTabsToSpaces
vtsls.*.format.indentStyle
vtsls.*.format.trimTrailingWhitespace
vtsls.*.wordPattern
Code Actions
Same as VSCode. The list below may not be complete.
typescript.organizeImports
typescript.sortImports
javascript.sortImports
typescript.removeUnusedImports
javascript.removeUnusedImports
TODO
- E2E test
- Diagnostics polling
Not Planned
- Read TypeScript plugin from VSCode extensions
Similar Projects
0.1.0
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1-alpha.3
1 year ago
0.0.1-alpha.2
1 year ago
0.0.1-alpha.1
1 year ago
0.0.1
1 year ago