VSCode(或其他编辑)无法识别随 asdf 安装的 sdk dotnet

VSCode (or anothers editors) don't recognize sdk dotnet installed with asdf

我用 asdf 在我的机器上安装了 dotnet,甚至 asdf 使用 dotnet-install.sh(这是在 dotnet 安装代码中),DOTNET_ROOT. ~/.asdf/plugins/dotnet-core/set-dotnet-home.zsh 设置(在终端中用 echo 测试),dotnet 工作并找到 sdk (dotnet --info):

.NET SDK (reflecting any global.json):
 Version:   5.0.300
 Commit:    2e0c8c940e

Runtime Environment:
 OS Name:     arch
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /home/caneladeouro/.asdf/installs/dotnet-core/5.0.300/sdk/5.0.300/

Host (useful for support):
  Version: 5.0.6
  Commit:  478b2f8c0e

.NET SDKs installed:
  5.0.300 [/home/caneladeouro/.asdf/installs/dotnet-core/5.0.300/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.6 [/home/caneladeouro/.asdf/installs/dotnet-core/5.0.300/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.6 [/home/caneladeouro/.asdf/installs/dotnet-core/5.0.300/shared/Microsoft.NETCore.App]

Visual Studio 代码无法识别文件夹中的 dotnet Sdk,说没有任何 .NET Sdk:

It was not possible to find any installed .NET SDKs.
Install a .NET SDK from:
  https://aka.ms/dotnet-download

C# VSCode Extension 试图找到默认的 dotnet 安装路径但没有找到,在这种情况下你需要手动指向 .NET 中带有一些环境变量的 sdk 路径 Documentation.您必须在终端脚本初始化(如 bashrc、zshrc)中定义以下所有这些变量并显示 asdf .NET Sdk 安装路径,但可以用于其他位置,只需更改路径:

export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR=$(echo $HOME/.asdf/installs/dotnet-core/5.0.300/sdk/*/Sdks)
export DOTNET_MSBUILD_SDK_RESOLVER_SDKS_VER=5.0.300
export DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR=$(echo $HOME/.asdf/installs/dotnet-core/5.0.300)

是的,Sdk 文件夹在 Sdk 文件夹中,我也很困惑(这需要更多时间来解决)。