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
Avoid verifying the entire file when the only changes are inside a comment, or insignificant whitespace (outside a string literal)
Background and Motivation
Sometimes we type comments, and sometimes we also format our code's indentation. Those changes in the syntax have 0 effect on the semantics of the program, and the verifier should therefore never run. All the verification information may be safely carried over to the next iteration of the code (assuming the LSP runs). This can save a significant amount of resources.
Proposed Feature
This is going to affect the LSP, taking advantage of the difference of the previous and the current syntax trees. If the difference is only found to be inside the comments, or in insignificant whitespace, we omit verifying the entire program again, copying the results from the previous verification.
As a further expansion of this feature, we may optionally avoid terminating the previous verification process if we discover that the syntax tree difference is indeed non-semantic.
It's important to note that the locations of the symbols are correctly recalculated, if need be.
Alternatives
No response
The text was updated successfully, but these errors were encountered:
Summary
Avoid verifying the entire file when the only changes are inside a comment, or insignificant whitespace (outside a string literal)
Background and Motivation
Sometimes we type comments, and sometimes we also format our code's indentation. Those changes in the syntax have 0 effect on the semantics of the program, and the verifier should therefore never run. All the verification information may be safely carried over to the next iteration of the code (assuming the LSP runs). This can save a significant amount of resources.
Proposed Feature
This is going to affect the LSP, taking advantage of the difference of the previous and the current syntax trees. If the difference is only found to be inside the comments, or in insignificant whitespace, we omit verifying the entire program again, copying the results from the previous verification.
As a further expansion of this feature, we may optionally avoid terminating the previous verification process if we discover that the syntax tree difference is indeed non-semantic.
It's important to note that the locations of the symbols are correctly recalculated, if need be.
Alternatives
No response
The text was updated successfully, but these errors were encountered: