HvyIndustries / crane

PHP Intellisense/code-completion for VS Code
https://hvy.io/crane
Other
240 stars 25 forks source link

Autocomplete not working within a try/catch #356

Open MortimerCat opened 7 years ago

MortimerCat commented 7 years ago
$a = new Project();
$a->retrieveJobs();  //This autocompleted

try {
      $a->retrieveJobs();  //This autocompleted
} 

try {
   $b = new Project();
   $b->?????????   // Not working
}

When I create a new object within the try section, the auto complete does not work. Instead I get a large list of unconnected methods and commands, not including the ones from the Project class. Otherwise it works fine, I just get a list of methods within the Project class, nothing else.

Running latest version: Vscode V1.14.2 on Ubuntu, Intellisense v0.3.7