Hugo 0.75.0 introduced the command
hugo mod npm pack, which searches for
package.hugo.json files in all the used Hugo modules.
When working in VSCode, a
package.json file opens as a JSON file, but adds additional support. For example, when using code completion on a package name in the
peerDependencies sections, VSCode performs a search on npmjs.com for any matches of the partial name.
When I open
package.hugo.json file, it is a regular JSON file, without the additional support. I tried any possible file association setting in VSCode, but failed so far.
Are there any other VSCode users which were able to let VSCode treat a
package.hugo.json file as a
package.json file, hereby having the additional coding support?