question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intellisense is extremely slow to load

See original GitHub issue

From @klong15 on April 25, 2016 19:16

  • VSCode Version: 1.0.0
  • OS Version: OSX Yosemite 10.10.5
  • Unity Version: 4.6.9f1
  • VSCode Unity Plugin: 2.50-RELEASE

I set up VSCode with Unity by following the guide here: https://code.visualstudio.com/docs/runtimes/unity

When using VSCode everything works great, the only problem is that intellisense takes many minutes to load when ever I do a single line of change. Reference counts go away. Autocomplete stops working. Jumping to declarations don’t do anything, then it will jump to the declaration about 5 minutes after I clicked the action. Just hitting enter to start typing on a new line messes everything up.

How can I speed up load times for this? Did I set something up wrong?

Mono should be up to date. I updated dnvm stuff suggested by some stackoverflow post. When I do ‘dnvm list’ on terminal, I get this:

Active Version              Runtime Architecture OperatingSystem Alias
------ -------              ------- ------------ --------------- -----
       1.0.0-rc1-update2    coreclr x64          darwin          
  *    1.0.0-rc1-update2    mono                 linux/osx       default

I don’t get any actual errors. I will get a message when ever I make a change saying, “Some projects had trouble loading. Please review the output for more details.” The omnisharp log for this is:

[INFO] Starting OmniSharp at 'PROJECTPATH/client-csharp.sln'...
[INFO] Started OmniSharp from '/Users/KingKlong/.vscode/extensions/ms-vscode.csharp-0.3.7/bin/omnisharp' with process id 91421...
[INFORMATION:OmniSharp.Startup] Omnisharp server running using stdio at location 'PROJECTPATH' on host 90813.
[INFORMATION:OmniSharp.Dnx.DnxPaths] Using runtime '/Users/KingKlong/.dnx/runtimes/dnx-mono.1.0.0-rc1-update2'.
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] Scanning 'PROJECTPATH' for DNX projects
[INFORMATION:OmniSharp.Dnx.DnxProjectSystem] No project.json based projects found
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Detecting projects in 'PROJECTPATH/client-csharp.sln'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-firstpass-vs.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-vs.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-Editor-firstpass-vs.csproj'.
[INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] Loading project from 'PROJECTPATH/Assembly-CSharp-Editor-vs.csproj'.
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in 'PROJECTPATH'.
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Could not find any CSX files
[INFORMATION:OmniSharp.Startup] Solution has finished loading

Also, the flame icon on the bottom right corner says “0 projects”. When I click on it, it lists two .sln files. One is client.sln . The other is client-csharp.sln. When I click either of them, they seem to work the same. The flame icon will still say “0 projects” after I click either of them. The guide says to click the -csharp one, but other stackoverflow posts say to choose the other. Which one should I be clicking?

Copied from original issue: Microsoft/vscode#5776

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thexddcommented, May 11, 2017

Having similar issues with the latest version of vscode. Apart from using significant energy on mac, intellisense does work extremely slow.

0reactions
DustinCampbellcommented, Nov 14, 2016

That is wonderful to hear @klong15 – thanks very much for confirming!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code Intellisense is very slow - Stack Overflow
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...
Read more >
Intellisense too slow - bad auto completion results
I am connected via VPN and Remote Desktop. So, I don't know how general this problem is. In any case, I find myself...
Read more >
Very slow intellisense #129099 - microsoft/vscode - GitHub
My insight is that this issue has something to do with Styled Components or kind of load(even though my file is not that...
Read more >
TIP: If your VS IntelliSense is slow disable 'Show items from ...
After updating to latest version (16.5.4) I've had a lot of lag with IntelliSense where it would cause noticeable pauses while editing text....
Read more >
Improve performance if Visual Studio is slow | Microsoft Learn
Solutions load much faster than in earlier versions, with performance improvements in other areas too. You can install Visual Studio on a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found