'Unresolved variable' about some variable used just one line above (PHPStorm 2018.2.5)
up vote
1
down vote
favorite
I'm struggling with my IDE with a simple code. I'm running under Angular 1.4, ES 5.1. function myFunction() { var vm = this; vm.listResults = null; SomeService.someFunction() .then(function (result) { vm.listResults = result; if (vm.listResults.length > 0) { vm.selectCity(vm.listResults[0]); } }); } vm.selectCity = function (city) {}; The last if statement throws a warning and declares the vm.listResults variable unresolved. Same for the call to selectCity and its parameter. I can't CTRL+CLICK on those three and I don't really understand why. What do I have to enabled in order to link this properly ? Under Languages & Frameworks > Javascript > Libraries I have angular-De