typescript.el
typescript.el copied to clipboard
TypeScript-support for Emacs
Addresses #48 until better parser support is implemented. This is an 80/20 approach so complex expressions inside the `${}` are fontified as if a simple variable token. It probably can...
[Opening an issue for a problem discovered while discussing #20 .] Template strings allow expressions in string and strings to nest. For instance: ``` `a${1+2}b` ``` equals `"a3b"`. And since...
i tried this with `emacs -Q -L ./typescript.el`. ```` const a = 1, b = 2; ```` this is true for `let` also. in a `.js` buffer, with `js2-mode`, i...
I hit this while reformatting. Minimal repro: ``` , .a ``` Reindenting the second line in typescript-mode freezes emacs. Emacs 28.1, typescript-mode 20220617.1901
To reproduce: ``` emacs -Q -L /path/to/typescript.el -l typescript-mode ~/tmp/something.ts ``` In `something.ts`, this exists: ```ts /** * foo */ ``` Pressing `M-j` begets: ```ts /** * foo */ /**...
TypeScript added support for JSX: https://github.com/Microsoft/TypeScript/issues/3203 Briefly, this adds support for HTML-like literals in code: ``` var foo = blah; ``` typescript-mode currently doesn't indent such literals properly, in contexts...
I am currently using typescript-mode with lsp, for the past few hours I have been struggling with fixing this error message `File mode specification error: (void-function -compose)` This is the...
I haven't had a chance to isolate it, but I ran across a case where indentation would hang when trying to indent parameters in a function. It turns out that...
Hi. I've noticed problems using functionality that depends on `beginning-of-defun`. So I had a closer look and it looks like function return types are throwing it off. With this code:...
ES2015 classes and class methods, along with stuff like ``` typescript const foo = (args) => { const a = 42; return false; } ``` are not treated as `defuns`.