vs code terminal 出错: bash: module: line 1: syntax error: unexpected end of file

我在 windows 上安装了 vs code,在wsl里面打开,比如在某个文件夹下用 code . 打开。

terminal 有如下的错误输出:

bash: module: line 1: syntax error: unexpected end of file
bash: error importing function definition for module' bash: ml: line 1: syntax error: unexpected end of file bash: error importing function definition forml'

因此,很多插件都运行不正常了。请问该怎么解决?