You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As title says, even if a function has a single throw statement that is properly catched, the plugin underlines both the throw statement and the function. Calls to such function results in hints provided by the plugin too.
This can lead a lot of verbose LSP hints even in a relatively small codebase.
The text was updated successfully, but these errors were encountered:
thedevbirb
changed the title
Functions and throw statements are underlined even if catched
Functions and throw statements are underlined even if caught
Dec 14, 2023
Description of the issue
As title says, even if a function has a single
throw
statement that is properly catched, the plugin underlines both thethrow
statement and the function. Calls to such function results in hints provided by the plugin too.This can lead a lot of verbose LSP hints even in a relatively small codebase.
Example of the issue
Consider this simple code snippet:
Here is how the LSP handles such code:
Expected/Desired behaviour
Given that the function
A
in the example does not have uncaught errors, I'd expect to not receive any LSP hint at all.System information
If needed, here are my machine specs:
The text was updated successfully, but these errors were encountered: