Nol*_*rin 4 warnings visual-studio-code
每次我在 VS Code 上打开一个包含很多子模块的 repo 时,我都会收到一条弹出消息,如下所示:
'rust-devel' 存储库有 15 个不会自动打开的子模块。您仍然可以通过打开其中的文件来单独打开每个文件。
有什么办法可以禁用它吗?
mpl*_*ner 10
我没有找到禁用此警告的方法。但是有一个解决方法:通过将Git: Detect Submodules Limit设置增加到高于子模块数量的值,不会显示警告。
例如,这通过 VS Code settings.json 文件将限制设置为 30:
{
"git.detectSubmodulesLimit": 30
}
Run Code Online (Sandbox Code Playgroud)
编辑settings.json:
"git.detectSubmodules": false,
"git.detectSubmodulesLimit": 9999
Run Code Online (Sandbox Code Playgroud)
第一个避免自动检测,第二个消除警告。信用度 可能最好设置得更合理,以防 9999 可能会减慢您的机器速度。似乎找不到任何理由说明为什么默认值是 10。
// Controls whether to automatically detect git submodules.
"git.detectSubmodules": true,
// Controls the limit of git submodules detected.
"git.detectSubmodulesLimit": 10,
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
990 次 |
| 最近记录: |