I faced the same problem today. The case was that the databricks.yml file inside my bundle did not include a targets mapping.
I created one like so

then added the relevant profile in the .databrickscfg file

and it got detected by the extension

Hope it helps ๐ป