Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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.
This is not a fork of that extension unlike other similar projects. It is implemented by filling VSCode APIs and applying minimal patches over the extension to make it possible to keep up with the upstream updates and drastically reduce the burden of maintenance.
Install by npm install -g vtsls
, then run vtsls --stdio
. Requires node >= 14
.
See available server capabilities.
All the LSP compliant clients should be able to communiate with it out of box. No special intializationOptions
requirement in the first initialize
request and also the server doesn't use it currently. To configure the server, just use the workspace/didChangeConfiguration
notification. The schema of settings and defaults shoulde be the exactly the same as VSCode's.
For some methods like completionItem/resolve
, codeAction/resolve
, callHierarchy/incomingCalls
which should come after a previous "preparation" request to split the whole function into two round trips, the client should at least support LSP >= 3.16
with dataSupport
in client capabilities.
typescript.openTsServerLog
typescript.restartTsServer
typescript.reloadProjects
typescript.selectTypeScriptVersion
{
command: "typescript.goToSourceDefinition",
arguments: [DocumentUri, Position]
} => Location[]
{
command: "typescript.findAllFileReferences",
arguments: [DocumentUri],
} => Location[]
{
command: "typescript.goToProjectConfig",
arguments: [DocumentUri],
} => void
Update paths on rename
Should work if client is capable of sending workspace/didRenameFiles
notification on file rename. No special handling is needed on client side.
Directly invoke tsserver command
See CommandTypes for available commands.
{
command: "typescript.tsserverRequest",
arguments: [RequestType, args, config]
} => Response
Almost the same as TypeScript extension of VSCode, with a few additional settings excluded for this server.
* => javascript|typescript
"vtsls.*.format.baseIndentSize": number;
"vtsls.*.format.indentSize": number;
"vtsls.*.format.tabSize": number;
"vtsls.*.format.newLineCharacter": string;
"vtsls.*.format.convertTabsToSpaces": boolean;
"vtsls.*.format.indentStyle": 0 | 1 | 2; // None = 0 Block = 1 Smart = 2
"vtsls.*.format.trimTrailingWhitespace": boolean;
Same as VSCode. The list below may not be complete.
typescript.organizeImports
typescript.sortImports
javascript.sortImports
typescript.removeUnusedImports
javascript.removeUnusedImports
source.organizeImports
source.sortImports
source.removeUnusedImports
source.fixAll.ts
source.removeUnused.ts
source.addMissingImports.ts
refactor.extract.function
refactor.extract.constant
refactor.extract.type
refactor.extract.interface
refactor.move.newFile
refactor.rewrite.import
refactor.rewrite.export
refactor.rewrite.arrow.braces
refactor.rewrite.property.generateAccessors
git submodule update # fetch vscode submodule
pnpm install
pnpm patch-extension # copy typescript-language-features from vscode repo and apply patches to it
pnpm build:watch # watching build, server output in dist/main.js
node --enable-source-maps dist/main.js
will give meaningful stack info on error.pnpm patch-extension
for convenient diffing and patch file generation.FAQs
LSP wrapper for typescript extension of vscode
The npm package vtsls receives a total of 0 weekly downloads. As such, vtsls popularity was classified as not popular.
We found that vtsls demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.