-1

I have a react project using JavaScript files in which the Intellisense code completion suggestions are extremely slow when using Visual Studio Code in Windows 10. It takes 7 seconds to get a code completion suggestion.

However, when I open the same project on a Windows 11 machine, the code completion happens immediately with no delay.

The same VS Code extensions are installed on both machines, and both machines have 16GB of RAM. These are the version information: (left side is on Windows 11 and it is fast, right side is on Windows 10 and is very slow)

enter image description here

Any suggestions on fixing this performance issue? I have tried disabling and re-enabling the "Typescript and JavaScript Language Features" extension but it did not resolve the issue.

AAV
  • 373
  • 1
  • 5
  • 17
  • All other installed extensions (ideally there are none) are identical? Wonder if `Sandboxed: Yes` is significant. – jarmod May 05 '23 at 17:15
  • @jarmod the installed extensions are identical. I am not sure about the Sandboxed, and I am not able to change that. – AAV May 05 '23 at 19:30
  • I have the same problem. Intellisense takes several seconds to show up and all code changes take a while to be processed. :( – Markstar Jun 28 '23 at 08:55
  • @Markstar See my answer below. Check that you have "Sandboxed: Yes", as shown in the screenshot above. – AAV Jun 28 '23 at 14:21

1 Answers1

-1

The problem resolved on it's own, after over a month. This was happening on my work PC. The support team must have pushed an update. The visual studio code version now has the "Sandboxed" setting set to "Yes". This seems to have fixed the issue.

To enable Sandbox mode, go to the vs code settings and search for "Sandbox", and enable it. It is an experimental feature as of now.

enter image description here

AAV
  • 373
  • 1
  • 5
  • 17
  • I don't have such a setting (v1.79.2, user setup). I wonder if the kind of installation makes difference. – Markstar Jun 29 '23 at 11:31
  • @Markstar I am not sure about this. I have updated the answer with a screenshot showing my version (1.78.0 user setup) and the setting. – AAV Jun 29 '23 at 15:01
  • Here are [my settings](https://imgur.com/gallery/dJrYslL). Note that you are using an older version of VS Code. Maybe that option has been removed since? – Markstar Jul 03 '23 at 06:06