Hacker News new | ask | show | jobs
by babaganoosh89 1851 days ago
> TypeScript, JSX and TSX Support

It doesn't seem like Sublime ships with the Typescript language server by default, not sure if I'd call syntax highlighting as support.

2 comments

It's the same support we supply for every language. Syntax highlighting drives our goto-definition, goto-symbol, auto-complete and more.
From the announcement text, I assumed Language Server support as well. Not your fault, since you haven't mentioned it specifically.

However, Language Server is way more than syntax support and a huge time saver for Typescript developers. You'll need it to attract Typescript developers, especially since your customers are likely to be advanced users.

There's a package for it at least.
This is interesting. Does that mean that it's not possible to goto-definition for a file that isn't open? What about goto-definition of a file in a different module?

Combining syntax highlighting and code navigation seems like a reasonable approach, I'm just curious how it works.

Goto-definition, goto-anything and now auto-complete use the folders you have added to the project (under Project > Add Folder to Project…). We use all these things internally to navigate our (relatively large) C++ codebase.
This repo seems to disagree: https://github.com/sublimelsp/LSP-typescript (please correct me if I am wrong, I can't test it now)

Perhaps you need to install TypeScript compiler into the project? VSCode bundles that too, ST4 might not.

The language server isn't included, but the syntax is.