Subject: Re: bug#71562: treesit-install-language-grammar fails to install typescript

From: Eli Zaretskii <[email-masked]>
Date: Wed, 19 Jun 2024 22:14:34 +0300

> From: Steinar Bang <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>,  Dmitry Gutov <[email-masked]>,
>   [email-masked]
> Date: Wed, 19 Jun 2024 20:51:21 +0200
> 
> >>>>> Yuan Fu <[email-masked]>:
> 
> > treesit-install-language-grammar works fine if you pass “typescript/src” instead of the default “src” to it, for the third argument, so I don’t think there’s anything to fix here. Installing multiple things “smartly” might be more confusing and error-prone than helpful, IMO.
> 
> FWIW the repo contains two grammars: typescript and tsx
> 
> And both grammars are needed (not just typescript).

Yes.  Which is why I said that we should find _all_ the subdirectories
called 'src' which have a parser, and produce a shared library in each
one of them.