-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Removal of error reporting markers from parameter types #1310
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.
I don't know the specifics of the TS code generation, but simply using the type id does not seem like the right solution to me. What if the type is time
? Or time[]
? It seems that getTargetType()
does not do exactly what is needed for TS here.
I agree. @Wonseo-C, how about debugging to figure out why |
@cmnrd @hokeun |
@petervdonovan could you have a look at this? Is it save to just use |
I changed |
Sorry for missing @cmnrd's comment. Since I don't know the full motivation behind this change, it is difficult for me to comment on whether it is necessary. It can cause slight regressions in the error reporting functionality of the language server, which needs these tags in order to report errors on the correct lines in VS Code. A possible alternative would be to strip the |
@petervdonovan: the problem is that the type of the parameter instead of returning something like Are you suggesting that we replace the line that says |
@lhstrh Does this mean that we'll use And sorry for the bad readability. I added the code link in the main comment..! |
Sorry for the late response...
That is not quite what I meant. If we did that, it would be equivalent to just using I cannot suggest a change in the
I'm not sure why this would be the case. The philosophy behind my liberal use of these tags is that the primary purpose of the functions that convert That said, this has been a lot of discussion over a relatively harmless change. I am happy to see this PR get merged if that's necessary in order to make progress. |
I guess the real issue is that the markers should associate not with a parameter type but with a declaration that uses it... I agree that it would be reasonable to merge this in order to make progress... This can always be revised at a later time. |
The string returned by
getTargetType
included error reporting markers, which it shouldn't.Before this change:
After this change: