-
Notifications
You must be signed in to change notification settings - Fork 439
Add diagnostic message for identifier editor placeholder #1380
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
Add diagnostic message for identifier editor placeholder #1380
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.
This won’t work as-is because there are other places that also consume an identifier and would consume the editor placeholder as a normal identifier without emitting an error.
Instead, I think the error should be emitted by the Lever. You can take a look at Cursor.swift. There are a few cases that add a LexerDiagnostic
. We should do the same for editor placeholders.
e29a2f6
to
c892162
Compare
@swift-ci please test |
c892162
to
21a3c0e
Compare
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.
That’s exactly what I was thinking of 🤩
@swift-ci Please test |
6da1002
to
ef5965a
Compare
@swift-ci please test |
@swift-ci please test macOS |
ef5965a
to
6e50efb
Compare
@swift-ci please test |
6e50efb
to
c4e8030
Compare
@swift-ci please test |
f17ec89
to
5833797
Compare
5833797
to
0054642
Compare
@swift-ci please test |
@swift-ci please test |
…sage-for-identifier-editor-placeholder
…sage-for-identifier-editor-placeholder
…sage-for-identifier-editor-placeholder
Part of fixing an TODOs in here: #1373
I just wanna ask if I'm on the right path.