PHPStorm showing completions from other (same-named) JS class that is not in scope

Hi,

I'm not sure if this is something that can be solved, or not.

 

I have a custom JS class in my application called ArrayMap. I import it explicitly at the top of my file.

However, in my autocomplete list, PS is showing additional completions from a same-named Webpack class:

As you can see above, the methods get, remove and add are part of the class, but clone and values are from the other class.

Is this something PHPStorm can cope with, or do I just need to live with it?

Cheers,

Dave

1 comment
Comment actions Permalink

For now I can only suggest excluding the folder where Webpack class definition is stored from indexing (Mark directory as/Excluded), as Webpack is only needed for auxiliary purposes, and you don't need getting completion for its functions

0

Please sign in to leave a comment.