How to get breadcrumbs to work for Salesforce Apex files in Visual Studio Code

23 views Asked by At

In visual Studio Code, I can see that Breadcrumbs works for e.g. html files in my project, but not for Apex classes. I get Breadcrumbs for folder all the way to file, but not inside the cls file. I know this has worked before, so I'm wondering if someone can help me troubleshoot or direct me to the settings/updates I have to do.

The same goes for the file outline. It is empty for cls files but not for etc. html files.

I use a docker container and i have installed the Salesforce Extension pack and the Salesforce Extension pack (Expanded).

1

There are 1 answers

0
Øyvind On

Solved: Needed to update the java version in the devcontainer.js

"settings": {
        "salesforcedx-vscode-apex.java.home": "/usr/lib/jvm/java-17-openjdk-amd64"
      },