The thing that blows my mind about editors is this: - 2006 (or earlier; this is when I started vim) until now: common languages are automatically highlighted and indented mostly correctly. - 2019: There is no way to get vim to correctly indent common TypeScript code in realtime.
-
Show this thread
-
Like, it's one thing to pine for some complicated editor feature that no one has ever built. But this has *always* worked out of the box. And now it not only doesn't work out of the box; it doesn't seem to be possible at all. And no one seems worried?
3 replies 1 retweet 9 likesShow this thread -
I complain about this every few months and get tons of suggestions. I've probably gotten 30ish suggestions in the last two hours. I've tried them all. None of them seem to work. No one has ever showed me an example of realtime TypeScript indentation actually working.
1 reply 0 retweets 9 likesShow this thread -
This is one of the most basic programming tools we have. When it doesn't work, it puts a permanent ceiling on your editing efficiency, and editing is frequently the bottleneck in programming. I'm so baffled by this.
8 replies 2 retweets 18 likesShow this thread -
"This is all because TypeScript is so tightly coupled with VSCode." Nope. VSCode also can't indent TypeScript code correctly, despite being written in TypeScript and being the flagship TypeScript app. Here's what it does to my example code:pic.twitter.com/InmIBROCyj
7 replies 3 retweets 19 likesShow this thread -
-
Replying to @sgrif
Nope, TSX is part of TypeScript's syntax and is supported by tsc!
1 reply 0 retweets 1 like -
Replying to @garybernhardt
Wait so what does it compile to? Is tsc coupled to React?
1 reply 0 retweets 0 likes -
Replying to @sgrif
JSX tags compile to function calls. For React that function is React.createElement, but it can be anything. It's a compiler option.
2 replies 0 retweets 0 likes
Ah that makes sense. Thanks for clarifying
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.