3 ms·
According to the spec it's up to your IDE to notify the LSP when files change (even due to an external software) then the LSP reads the new versions. Typescrip
by lozenge 3y ago
According to the spec it's up to your IDE to notify the LSP when files change (even due to an external software) then the LSP reads the new versions.
Typescript also doesn't use an LSP as it predates the introduction of LSPs.
- saghm 3y agoWhat does it mean for a language "not to use an LSP"? The most straightforward way I can think to interpret that statement is that it's saying that a TypeScript language server doesn't exist at all, which certainly doesn't seem to be the case based on finding https://github.com/typescript-language-server https://github.com/typescript-language-server as the top result when googling "typescript language server". I guess you might be saying that it's not a first-party language server, but I'm not really sure why that would be relevant when discussing properties of language server implementations; the implementation clearly exists, and even if very few people are using it, that doesn't mean GP's point about a flaw in its design wouldn't still apply.
- lozenge 3y agoI meant both VS Code and VS use tsserver which doesn't follow the LSP protocol. Yes there is an LSP for other editors. I don't see the flaw in the design, it's more likely the editor isn't behaving according to spec.