首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >OmniSharp in VSCode非常慢

OmniSharp in VSCode非常慢
EN

Stack Overflow用户
提问于 2018-01-07 14:46:24
回答 1查看 2.6K关注 0票数 14

我不知道发生了什么,但是突然之间,OmniSharp在VSCode中变得非常慢。

有时,自动完成会立即工作,有时需要几分钟时间,跳到定义之类的地方也是一样。

如果我在局部变量上再次禁用OmniSharp自动完成,有时OmniSharp会给我一个函数列表,这些函数将完成我正在输入的内容,但不会自动选择我已经写了一半的函数。

有什么方法可以调试它并找出原因吗?

EN

回答 1

Stack Overflow用户

发布于 2022-10-19 06:33:58

如果您的问题是确定原因,请检查Outuput窗口中的"Omnisharp日志“:

在那里看到一些警告甚至错误是正常的,但是不应该有太多的错误。

您还可以尝试增加日志级别以查看更多信息。

如果需要临时解除,还可以尝试以下设置:

代码语言:javascript
复制
    "omnisharp.analyzeOpenDocumentsOnly": true,
    // Flip this on/off and feel the difference
    "omnisharp.enableAsyncCompletion": false,
    // Flip this on/off and feel the difference
    "omnisharp.enableMsBuildLoadProjectsOnDemand": false,
    // Maybe more cost up front helps later
    "omnisharp.projectLoadTimeout": 300,
    // Only if using .NET6+, 
    // If not, read about the setting, or make sure you set it to false
    "omnisharp.useModernNet": true,
    // This slows down start normally, 
    // but see if it makes a difference after that
    "omnisharp.path": "latest",
    // Only set this to false to experiment
    // If it improves things, then some analyzer NuGet is the cause
    "omnisharp.enableRoslynAnalyzers": false,
    // Also check "omnisharp." and "csharp." settings for any
    // setting that has the word "suppress" and remove them
    // so you can see all errors and warnings from omnisharp
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48138280

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档