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
how to enable syntax error checking automatically? #1527
Comments
@datavisorfrankhe Maybe #1477 will help you. |
I checked 147, and I don't think the syntax error is automatically detected. when calling setModelMarkers, the data passed in contains the error display position and contents. Does this mean the syntax error can not be detected automatically by Monaco? |
@datavisorfrankhe Monaco is simply an editor. It is not an AST parser or syntax error checker. If you want to check for errors, you need to:
|
Thanks for your clarification, now I know how to do this.
…On Thu, Aug 1, 2019 at 2:17 AM Remy Suen ***@***.***> wrote:
@datavisorfrankhe <https://github.com/datavisorfrankhe> Monaco is simply
an editor. It is not an AST parser or syntax error checker. If you want to
check for errors, you need to:
1. Listen to changes in the backing model (the textual content of the
editor).
2. Identify relevant errors in the text.
3. Notify Monaco about such errors so it can render them to the user.
#1477 <#1477> showed
how to do this with hard-coded values but it is possible to do this
dynamically.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1527?email_source=notifications&email_token=AJKCEN5B2PRMSOZRPISMZQ3QCKS2XA5CNFSM4III4E62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3J553Y#issuecomment-517201647>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJKCEN7DGITRZ4SGFHVRZRDQCKS2XANCNFSM4III4E6Q>
.
|
Hello,
May I ask if monaco can automatically check the syntax error?
For example, I am using it to provide sql support, and if I typed in
wrong_select * form field
I want the wrong_select to be indicated as wrong. and if I mouse hovering, suggestion for fix will appear.
Can this feature be supported? and I believe it is there already, just can not find it.
Thanks for your help.
The text was updated successfully, but these errors were encountered: