Cannot find module error in vscode with Modern Fortran, fpm and fortls

Hi, new to Fortran and first post here.

I’m trying to get used to fpm. I have this warning where it says

Cannot open module file 'solvers.mod' for reading at (1): No such file or directory

However, if I copy the .mod file in the “src” directory, the error vanishes. I’m not sure if it’s a vscode issue and json config or rather a fortls/fpm issue.

Any help will be appreciated. Thanks.