TysonAndre / vscode-php-phan

Phan - PHP Static Analysis for VS Code
Other
24 stars 4 forks source link

Can only see phan issues one file at the time in the PROBLEMS tab #75

Open rogermartensson opened 4 years ago

rogermartensson commented 4 years ago

I have two files in the same directory that is containing issues found by Phan.

When opening the first file the issues is show in the PROBLEMS tab at the bottom. Great!

I now open up the second file (two files opened at the same time). Now the issues from the first file is removed from the tab and replaced with the issues from the now opened file.

TysonAndre commented 4 years ago

I'm able to reproduce this.

Phan is also emitting textDocument/publishDiagnostics for every tab that got opened, but it's an empty list, whether or not the file was saved, and whether or not the last action taken in the current file was an edit or a hover action.

This also occurs with split windows.

So it looks like Phan is aware that the file is open in the editor, but isn't analyzing that file. (E.g. phan has logic to filter out diagnostics from files that aren't open in the editor, and it may be a bug in that check)