Add new Xtext editor quickfixes on *.xtext files #1448
Comments
@miklossy I would like to work on this issue. Kindly let me know if that is ok. |
@nbhusare Would be awesome if you could take care of this issue. Thanks a lot in advance! |
Thanks for your reply @loradd . I would sugges that @nbhusare will take care of this issue, for you @loradd I created a similar one to the Xtend repository: eclipse/xtext-xtend#1060 . Please comment on that issue if you could take care of that one. Thanks! |
@szarnekow @miklossy @cdietrich please review |
@szarnekow - The method Comment from history - Use textual modification instead of semantic modification for new parser rules as serialization / comment location preserving is to fragile for invalid models |
It's a bug. It should probably get a container of type AbstractRule in line 144. |
@szarnekow I have replaced the existing PR's with new ones. I have addressed the review comments in the same. Kindly have a look. |
@miklossy We have merged the PR's. Could you please close this issue. Tx |
Thanks for your contibution @nbhusare ! I would like to try out the new quickfixes before closing this issue. |
@nbhusare I took a look at the current state of the fix and found the following shortcomings:
|
@miklossy Let me take a look at the above. |
@miklossy I have raised a PR (xtext-eclipse/pull/1492) to address the first issue you reported above. For the second one, to show the two quick-fixes proposals (Create terminal..., Create terminal fragment...), I added the annotation |
@nbhusare why are there 3 quickfixed created at all? |
Thanks @cdietrich for jumping in and taking over! |
@cdietrich Sorry, by 3 quick-fixes do you mean the "Change to 'PQR'" ones, or the Create XX ones? |
if you call createLinkingIssueResolutions three times and dont filter the typo fixes then of course you get 3 fixes |
@cdietrich Tx for the tip. Let me take a look. |
@cdietrich @szarnekow I came across the following issues while working on this task. Please have a look.
Now, if I choose the proposal "Remove hidden token definition", all the tokens get removed. Proposal "Change to B" works, but it doesn't make sense since B is a terminal fragment. "Convert terminal Fragment to terminal rule" does not make sense either.
|
ping @szarnekow |
|
Directly to the 2020-09-01-version-2.23.md file with a Pull Request |
@miklossy Kindly review - https://github.com/eclipse/xtext/pull/1823/files |
@miklossy what is the state of this issue? |
i assume this fixed. if there is anything left, please create a new issue |
The Xtext editor should provide the following quickfixes on
*.xtext
files:@loradd Would you like to take care of this issue?
The text was updated successfully, but these errors were encountered: