TypeStrong / atom-typescript

The only TypeScript package you will ever need
https://atom.io/packages/atom-typescript
MIT License
1.13k stars 204 forks source link

Is it possible to use this package with language-babel instead of language-typescript? #1597

Closed saadq closed 2 years ago

saadq commented 2 years ago

The main thing I'm missing from language-babel is using the builtin Emmet autocompletion for styled-components. I did see that there was a PR to do something similar, but it seems to have been abandoned. Now that this package is not using its own grammar, this seems harder to do.

Is there any way I can just always use the language-babel package for all my TS files and to make atom-typescript still work with it somehow? I tried changing the activationHooks from:

"activationHooks": [
    "language-typescript:grammar-used"
  ],

to

"activationHooks": [
    "language-babel:grammar-used"
  ],

but it didn't seem to have any effect. If this is possible to achieve, please let me know! Thanks.

lierdakil commented 2 years ago

https://github.com/TypeStrong/atom-typescript/blob/master/docs/faq.md#i-want-to-use-package-x-for-syntax-highlighting-instead-of-language-typescript-but-atom-typescript-doesnt-work