vscode-twoslash-queries icon indicating copy to clipboard operation
vscode-twoslash-queries copied to clipboard

Support for proportional typefaces

Open nickmccurdy opened this issue 1 year ago • 3 comments

I exclusively use proportional typefaces when coding. I like the idea of this extension, but I wouldn't be able to use it easily because the ^ may not be aligned with the type on my typeface. Perhaps there could be an alternate syntax that doesn't rely on a monospace typeface.

nickmccurdy avatar Aug 31 '22 04:08 nickmccurdy

I'm somewhat open to it, but I'm wary the further this extension strays from the twoslash syntax in the TS site / compiler codebase the harder it is to just "get"

Perpahts there could be an identifier lookup in some new syntax similar to how we do types?

abc.de
// ^?["de"]

Where the ^? implies the line, and then ["de"] means look through that line until you find a matching identifier and show that

orta avatar Aug 31 '22 07:08 orta

We could also use ESLint style // next or /* enable */ comments.

nickmccurdy avatar Aug 31 '22 08:08 nickmccurdy

No, not in this extension - the key is sticking with the twoslash format and they'll never support those ( but it'd be trivial to fork this extension and add it though, it's only ~200 LOC)

orta avatar Aug 31 '22 15:08 orta