Visual Studio Code Intellisense非常慢-我能做些什么吗? [英] Visual Studio Code Intellisense is very slow - Is there anything I can do?

查看:814
本文介绍了Visual Studio Code Intellisense非常慢-我能做些什么吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Pylance在这方面似乎要好得多,并且到目前为止已经解决了Microsoft以前的Python语言服务器的所有问题.

Pylance seems to be much better at this and has so far resolved all problems with the previous Python language server from Microsoft.

我正在使用VS Code,这是很不错的,除了代码完成之外,所有领域都如此,这通常太慢而无法使用.这个例子显示了智能感知花了多长时间来找到一个局部变量,这只是在我按ctrl + enter后被提示这样做的时候.

I'm using VS Code and it's wonderful is all areas but code completion, where it is usually just too slow to be of any use. This example shows how long intellisense took to to find a local variable, and this is only after it was prompted to do so after I hit ctrl+enter.

到目前为止,我还无法找到解决方案,所以我在这里问其他人是否也遇到过类似的问题,并询问他们是如何克服的.

I've not been able to find a solution to this as of yet, so I am here to ask if anyone else has had a similar issue and ask how they have overcome it.

推荐答案

也许是 Jedi .我的意思是它很棒,但是...我自己和Jedi一起修改了较大的代码基础,我可以确认有时它可能会比较慢,并且很难找出问题所在...:/

Maybe it's Jedi. I mean its awesome but ... Tinkering with Jedi myself on bigger code bases I can confirm that it might be uber slow at times and pretty hard to figure out what the problems are... :/

解决方案可能是切换到另一种语言服务器! VSCode Python扩展具有语言服务器"设置:

Solution might be to switch to another language server! The VSCode Python extension has a "Language Server"-setting:

aka python.languageServer.

Pylance 是MS自己的新语言服务器.我只是尝试了一下,这一切似乎有点敏捷.截止到今天,该标签被标记为预览.因此,可能会有改进的地方.

Pylance is MS own new language server. I just tried it and it all seems a little snappier. As of today this is tagged as Preview. So there might be improvements around the corner.

这篇关于Visual Studio Code Intellisense非常慢-我能做些什么吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆