-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide the ability to turn off live error reporting in the new language server #2270
Comments
@jiagengliu no setting, but we will think about adding this as a feature enhancement. |
And another option is to put a timer on the trigger so that it only happens if you haven't typed in e.g. 5 seconds. |
Generally this is normal behavior, happens in VS and other products as well as I type. We can throttle diagnostic output a bit and maybe add a setting for the delay. The parser and code analysis is live and runs as you type. There is no option to get run just sometimes. |
I'd say that's what we should do, would also save CPU cycles. I also feel 5secs is too long for reporting of syntax errors. Feels like forever, especially for novice developers using vscode to learn python. |
Is there an option to turn it off completely? |
@jiagengliu - no. Will add settings to VS Code then |
Probably won't have much CPU since throttling is just delaying of the notification from LS to VSC. so if pending errors get cleared, they will never get reported. Some traffic save I guess. |
Typically in VS we don't start processing text until you've stopped typing for 0.5-1s or you press Enter (and errors show up shortly afterwards). Not sure if we can do the same thing in Code... |
Setting added via microsoft/PTVS#4612 |
Thank you so much! @MikhailArkhipov |
Environment data
Actual behavior
After updating to 1.25.1, there are frequent messages (per second) of [Python (parser)] errors as I type a line. Is there a way to tell the Python parser to only parse upon save? I can't find the settings for parser in Settings.
Expected behavior
Only parse on save.
Steps to reproduce:
test.py
a =
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)The text was updated successfully, but these errors were encountered: