vscode-intelephense
vscode-intelephense copied to clipboard
Diagnostic for Uncaught Exception
Feature description or problem with existing feature
Right now we can generate doc for a function which correctly figures out what kind of exceptions would be thrown by a function. It would be great if we can get a diagnostic for it at the calling site.
Describe the solution you'd like
- Diagnostic that an exception might be thrown.
- Code action to add a try catch block
Nice idea. Which lines would get wrapped in try? Just the call that throws? The current cursor selection?
Nice idea. Which lines would get wrapped in try? Just the call that throws? The current cursor selection?
It would be best if done for the cursor selection. Even just having the diagnostic would be very effective.
Nice idea. Which lines would get wrapped in try? Just the call that throws? The current cursor selection?
Well I think it would save some time if only the @throws calls were grouped in the try
active in 2024? :(