如何在 Visual Studio Code 中让面包屑适用于 Salesforce Apex 文件

问题描述 投票:0回答:1

在 Visual Studio Code 中,我可以看到面包屑适用于例如我的项目中包含 .html 文件,但不适用于 Apex 类。我得到文件夹的面包屑一直到文件,但不在 cls 文件内。我知道这以前有效,所以我想知道是否有人可以帮助我排除故障或指导我进行必须执行的设置/更新。

文件大纲也是如此。对于 cls 文件它是空的,但对于 html 文件等不是空的。

我使用 docker 容器,并且安装了 Salesforce 扩展包和 Salesforce 扩展包(扩展)。

visual-studio-code apex breadcrumbs outline cls
1个回答
0
投票

已解决:需要更新devcontainer.js中的java版本

"settings": {
        "salesforcedx-vscode-apex.java.home": "/usr/lib/jvm/java-17-openjdk-amd64"
      },
© www.soinside.com 2019 - 2024. All rights reserved.