bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.6k stars 93 forks source link

Allow running diagnostics on open #1466

Open johnbillion opened 3 years ago

johnbillion commented 3 years ago

Feature description or problem with existing feature

In order to reduce noise while typing, I have set intelephense.diagnostics.run to onsave. However I would also like to be able to run diagnostics when I first open a file without having to trigger a save.

Describe the solution you'd like

I'd like an option which allows me to instruct Intelephense to run diagnostics when opening a file. This would be separate to the intelephense.diagnostics.run setting, possibly a boolean value, so it can be used regardless of whether diagnostics are being run on type or on save.

johnbillion commented 3 years ago

I just realised that with ontype in use, diagnostics are run when the file is opened. Maybe then this is a case of just running the diagnostics when a file is opened, regardless of this setting.