VSCode and Make targets

I am having trouble getting intellisense in VSCode to behave properly. I believe the issue is due to intellisense not parsing the make files correctly. I have followed the PX4 developer installation steps, using Ubuntu 20.04. I can build from both the command line, and from VSCode’s side bar. However, when I select a build variant in VSCode’s side bar, the list of build targets available does not match that from ‘make list_config_targets’. Is this behavior expected? If not, why do I get a different list of build targets and how should I fix it?