Are you tired of looking up properties in the documentation when you are making changes to the Forge app manifest? Then you can import the manifest schema in VS Code to get linting and code completion by following these steps:
- Install the YAML extension by Red Hat.
- Open your VS Code
settings.json
(works with both user and workspace settings). - Add the following property to the settings:
"yaml.schemas": {
"https://unpkg.com/@forge/manifest@5.5.0/out/schema/manifest-schema.json": "manifest.yml"
},
This setting tells the extension to use the YAML schema from the @forge/manifest
npm package for files named manifest.yml
. This is the same schema that the Forge CLI uses when you run the forge lint
command. Make sure to update the link to the schema file from time to time when new features are added to Forge by replacing the version number in the URL (in this case 5.5.0
) with the latest version number from npm.