USBMSDHost.h cannot find FATFileSystem.h


When I use both frameworks RTOS and FILESYSTEM, FATFileSystem.h cannot be found when compiling USBMSDHost.h.

It is no problem however to find FATFileSystem.h from main.cpp, at least if I don’t include USBMSDHost.h.

This should be simple to reproduce. Just start with project example mbed-filesystem and include USBMSDHost.h.

Using VSCode. My setup:
platform = ststm32
framework = mbed
board = disco_f769ni
build_flags =

Have tried different ways to help finding the filesystem\fat folder, like lib_deps, build_flag -I without success…