vscode typescript module import intellisense not working

Viewed 1507

I am facing this weird problem and I'm trying to fix it.

Say I have a typescript file foo.ts.

In this file I start writing a (es6) import statement:

import {  } from 'react-bootstrap';

If I bring the cursor inside the brackets and I type Ctrl+Space-bar, I get a dropdown list of suggested classes and types from the module I am important.

This is functionality is broken and I don't know why. Instead I get an irrelevant list of suggestions with all the types in my project:

enter image description here

I could not find anything useful online. Intellisense in general works. Only the intellisense related to the import statement is broken.

How can I fix that? What could be the cause of this problem?

Visual Code: version 1.12.2 Typescript 2.3.2 (I am using the local typescript, the one installed in my node_modules folder)

0 Answers
Related