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

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

问题描述

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

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

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

解决方案

也许是

又名 python.languageServer.

Pylance 是微软自己的新语言服务器.我刚试过,这一切似乎有点快.截至今天,这被标记为预览.所以未来可能会有改进.

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

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.

解决方案

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... :/

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

aka python.languageServer.

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天全站免登陆