TypeScript files created in VSCode not showing in the C3 editor

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
[C2] [C3] Support C3 build service and Android 14
  • Is anyone finding .ts files created in VScode don't show in the C3 editor? I have to create them in C3 and then edit in VSCode.

    I wonder if it's because of TypeScript type definitions?? Though not sure why they can't be updated when the C3 editor picks up new files.

    .js files do show however which would make sense.

    • I have converted my project to TypeScript and setup TypeScript for external editor.
    • I've also used the Reload From Folder option.
    • The .ts files were created in the script folder alongside main.ts (and they show in windows file explorer).

    Everything else with scripting works fine.

  • What is your workflow exactly? With the latest beta it's currently designed on the assumption you will use one of two workflows:

    1. Add all .ts files in Construct, and no .js files. Then Construct will automatically compile the .ts to .js for you using the built-in TypeScript compiler.
    2. Add all .js files in Construct, and keep the .ts files on disk but not in the Construct project. Then you can use an external editor like VS Code and use the TypeScript compiler installed locally to compile all your .ts to .js, where Construct then picks up the resulting .js only. (This also allows using a different/newer version of TypeScript to the one built in to Construct.)

    If you're doing something like adding .ts files to a Construct project, then adding a .ts file in an external editor which then automatically compiles a .js file for you, then you've got a sort of half-and-half workflow, and it would seem better to go with one or the other.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ah ok I just assumed Construct would compile any .ts file at preview or build time so I wasn't running the vscode compiler.

    I was using the Construct editor up till now but I want to use AI to speed things up!

    Thanks for clearing that up.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)