Created by: stevegreatrex
The typescipt docs for include suggest we should use a glob pattern src/**/* instead of src.
This appears to resolve the problem described here where imports in VSCode are not available automatically for newly-created files:
- Add new file
- Type const
MyComponent: FC. Get a prompt to importFCfromreact. Do it. - Add the rest of the line:
const MyComponent: FC = () => <ExistingComponent /> - No auto import for
ExistingComponent😢 - Manually add the import
- Now future auto imports work fine