我在 Emacs、Sublime Text 和 VSCode 都配置了 Pyright。补全正常,但补全项的文档出了点问题。前两者的补全项文档都正常显示,唯独 VSCode 只显示了类型签名:
VSCode 安装 Pyright 之后需要什么额外的设置吗?
我当前的配置:
{
"workbench.colorTheme": "Brackets Light Pro",
"editor.tabSize": 8,
"editor.cursorStyle": "line",
"editor.insertSpaces": false,
"editor.lineNumbers": "on",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"editor.wordWrap": "off",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"breadcrumbs.enabled": false,
"editor.minimap.enabled": false,
"python.pythonPath": "~/.pyenv/shims/ython",
"python.analysis.logLevel": "Trace"
}
- macOS 10.13.6
- Python 3.7.0
- Pyright 1.1.275
- Emacs 28.2/29.0
- lsp-bridge 2022-10-21
- Sublime Text 4126
- LSP-Pyright 1.1.194
- VSCode 1.72.2
- Pyright (ms-pyright.pyright) 1.1.275
(我为啥不用 Pylance?我想保持三个编辑器一致,有问题好排查。)