-
Notifications
You must be signed in to change notification settings - Fork 13
feat(QueryEditor): add error highlighting #1833
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
src/utils/monaco/highlightErrors.ts
Outdated
disableErrorsHighlighting(); | ||
|
||
clearTimeout(errorsHighlightingTimeoutId); | ||
errorsHighlightingTimeoutId = setTimeout(() => highlightErrors(), 500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it highlight incorrect errors if I change editor within 500 ms?
2caf2d8
to
3f22c2f
Compare
src/utils/monaco/highlightErrors.ts
Outdated
|
||
const owner = 'ydb'; | ||
|
||
export function useUpdateErrorsHighlighting() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets try debounce approach - if its appliable here
33c068b
to
525357c
Compare
|
||
const owner = 'ydb'; | ||
|
||
const debouncedHighlightErrors = debounce(highlightErrors, 500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should cancel it on useEffect return
closes #1796
Stand
CI Results
Test Status: β FAILED
π Full Report
π No changes in tests. π
Bundle Size: πΊ
Current: 80.05 MB | Main: 79.96 MB
Diff: +0.09 MB (0.11%)
βΉοΈ CI Information