Cannot open unexpected file types in an Aura Bundle
How to reproduce:
- create a random aura component (
foobar
) - give it a controller (
foobarController.js
) - create a typescript variant (
foobarController.ts
) - Try to open the typescript file
Expected: Open the TS file on its own
Actual: Opens the aura bundle .cmp
file instead of the TS file, and can never open the TS file at all within the editor
Some clients prefer to have a TS file as a source of truth instead of Aura JS files. I know this is a bit of an edge case and totally not the standard behavior, but it’d be nice if IC2 doesn’t just indiscriminately attempt to open all files in the aura bundle as a sibling of the .cmp
file. Otherwise, no other file types can ever be opened.
Comments (6)
-
repo owner -
reporter Thanks so much as usual Scott, you’re a lifesaver
-
Henry are you able to share how you got Typescript to work? i.e. is there a tsconfig.json somewhere in your project?
-
repo owner - changed status to resolved
Delivered in 2.0.9.7. Let me know if it doesn't meet your needs or, worse, causes any issues by side-effect.
-
repo owner Similar support for LWC components delivered in 2.1.0.7.
-
repo owner - changed component to Aura
- Log in to comment
Henry, you're correct that IC doesn't currently expect to find non-deployable source under the Salesforce metadata directories. Nonetheless, if you guys have figured out how to make TypeScript work for Aura development, I don't want to stand in the way of that! I'll fix the issue that's preventing you from opening those files in the IDE.