我一直在使用
Pylance
进行自动建议和完成。
最近我添加了
Pylint
来帮助我检查代码,但是当我安装 Pylint
时,我的 Pylance
停止工作(它没有给出任何自动建议,并且变量、导入等的不同颜色编码消失了)。
我尝试探索我的设置以找出问题所在,但我无法这样做。下面是我的 vs 代码
settings.json
:
{
"terminal.integrated.defaultProfile.windows": "Git Bash",
"[python]": {
"editor.formatOnType": true
},
"workbench.iconTheme": "material-icon-theme",
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"git.confirmSync": false,
"gitlens.gitCommands.skipConfirmations": [
"fetch:command",
"stash-push:command",
"switch:command",
"remote-add:command"
],
"vscode-office.previewCodeHighlight.style": "github",
"workbench.statusBar.visible": false,
"editor.unicodeHighlight.invisibleCharacters": false,
"editor.unicodeHighlight.ambiguousCharacters": false,
"workbench.colorTheme": "Default Dark+",
"python.analysis.autoImportCompletions": true,
"pylint.importStrategy": "fromEnvironment",
"python.autoComplete.extraPaths": [
],
"python.analysis.extraPaths": [],
"editor.fontLigatures": false
}
我在启用Pylint扩展时遇到了这个问题,但是当我重新启动VSCODE时,它就消失了。
我在 GitHub 上报告了这个问题。查看有关您情况的链接或评论。