VSCode-FPPVSCode extension for FPP Language Support. FPP is a modeling language for the F Prime flight software framework. Get StartedFor the extension to work, it needs a valid F´ build cache.
TroubleshootingWhen first loading up your F Prime project, you may notice errors. This is because the compiler doesn't know where to search for FPP declarations You will need to load the locs files which is generated during build time in the cmake build folder. Look for Once the locs file is loaded, the entire project will be indexed and references will be resolved. It's recommended to 'pin' the reload status so that its easier to reload/reindex the project: This will add a status bar item that will reindex the locs file when clicked. Features
Technical DescriptionThis VSCode extension is essentially a FPP compiler frontend written in TypeScript using ANTLR4. It injests a 'locs' file generated during the FPrime build process which will tell the compiler which files to include during its variable/type declaration stage. Files are parsed and reduced in a separate worker thread and then sent through the compilers declaration collection in the main thread. Development instructionsTo set up dependencies you will need NodeJS and a package manager like
When making a change to the ANTLR definition (
To build a VSIX file you can use:
This will generate a |