How To Fix Visual Studio Code IntelliSense Loading Infinitely
Tags: programming, intellisense, javascript, typescript
Published: 2022-10-09 09:14:17

---
title: How To Fix Visual Studio Code IntelliSense Loading Infinitely
published: true
date: 2022-10-09 08:57:31 UTC
tags: Programming,intellisense,javascript,typescript
canonical_url: https://www.codejourney.net/how-to-fix-visual-studio-code-intellisense-loading-infinitely/
---

Continuing with [weird errors you might encounter in JavaScript world](https://www.codejourney.net/how-to-fix-npm-err-enoent-enoent-no-such-file-or-directory-rename/), I have another one: **Visual Studio Code IntelliSense loading infinitely**😀Solution included, of course!

The symptoms of this issue are putting your mouse on something where you’d expect the IntelliSense guidelines, but instead you only see the “Loading…” text.

In this short article, I’m sharing the reason of this issue and my way of fixing it.

## How VS Code Infinite IntelliSense Loading Looks Like

This is what I struggled with:

![Visual Studio Code IntelliSense Loading Infinitely - a gif animation](https://i0.wp.com/www.codejourney.net/wp-content/uploads/2022/10/2_VSCodeLoadingIssue.gif?resize=497%2C907&ssl=1)

As you can see, I didn’t get any IntelliSense while hovering my mouse on various elements in the editor.

A similar thing happened when I tried to use `Go to References` (or `Shift` + `F12` on Windows) for any object:

![Visual Studio Code IntelliSense Loading Infinitely for Go to References - a gif animation](https://i0.wp.com/www.codejourney.net/wp-content/uploads/2022/10/3_VSCode_find_references_loading.gif?resize=509%2C907&ssl=1)

As you can see, the loading bar at the top of VS Code was showing progress infinitely.

Let’s now see how to fix this annoying issue 😉

## Fixing Visual Studio Code IntelliSense Loading Infinitely

After quite long investigation, I finally found the reason. It turned out that **[sometimes your Visual Studio Code might be using a different TypeScript version than your workspace uses](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions)**. In my case, it was exactly the cause of the infinite loading problem 🧐

In order to fix it, use `TypeScript: Select TypeScript Version...` command. You can access commands with `Ctrl + Shift + P` on Windows or `⇧⌘P` on Mac:

![Visual Studio Code: command palette view, "TypeScript: Select TypeScript Version" command](https://i0.wp.com/www.codejourney.net/wp-content/uploads/2022/10/5_SelectTypeScriptVersion.png?resize=600%2C262&ssl=1)

Select this command and tell Visual Studio Code to use the workspace version of TypeScript:

![Visual Studio Code: command palette view, "TypeScript: Select TypeScript Version" command, telling VS Code to use workspace version of TypeScript](https://i0.wp.com/www.codejourney.net/wp-content/uploads/2022/10/6_SelectTypeScriptVersion_UseWorkspaceVersion.png?resize=627%2C139&ssl=1)

As you can see on the screenshot above, in my case the VS Code’s TypeScript version was `4.8.2`, while the workspace version was `4.8.3`. Changing it to use the newer, workspace version solved the problem. Visual Studio Code IntelliSense loading infinitely issue was gone 🎉

If it doesn’t work straightaway, you might need restarting your VS Code editor.

I hope that worked for you and saved you some hours of debugging and exploring StackOverflow 🙂