Allow throttling of pylance errors while typing #6787
Replies: 2 comments
-
@rchiodo @KacieKK can we have a configuration option for setting the delay/debounce for error reporting? It was previously a supported configuration at the old python-language-server. |
Beta Was this translation helpful? Give feedback.
-
I think this should be relatively easy to support. Analysis already has a throttle here: That shouldn't be too hard to throttle either. Transferring issue to enhancements for upvotes. |
Beta Was this translation helpful? Give feedback.
-
I don't know if something changed this past few months in this extension or VS Code in general (or if it's just me xD), but the error hints seem to somehow be getting more annoying.
Like, I still haven't finished typing a line of code but I will instantly get a red line hovering on anything while I'm still typing, not only annoying but also distracting. Example (notice the instant red underline):
It would be really good if there were some configuration options such as:
diagnosticReportDelay
: to set a custom delay/debounce timeout for diagnostic error reporting (i.e. how many ms after typing)dianosticReportOnlyOnSave
: to only show the error reporting when the file is saved.It seems that there was an option before for setting the delay in the old microsoft/pylance-release (namely
diagnosticPublishDelay
), but there's no option anywhere now.For comparison, if we look at this actual repo showcase GIF in readme from 3 years ago, you can notice that there is a bit longer delay before the warning underline report as you type.
Also, I just noticed that if I disable Pylance, and VS Code fallbacks to Jade, then there's a bit longer delay as well.
Beta Was this translation helpful? Give feedback.
All reactions