-
Notifications
You must be signed in to change notification settings - Fork 56
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
Toggle comment doesn't toggle back off comments but keeps adding comm… #447
Conversation
...iguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/utils/TextUtils.java
Outdated
Show resolved
Hide resolved
...iguration/src/main/java/org/eclipse/tm4e/languageconfiguration/internal/utils/TextUtils.java
Outdated
Show resolved
Hide resolved
1bee731
to
8287b0f
Compare
@mickaelistria PR looks good to me. can you verify that it solves the issue for you? |
It does fix the issue I currently face, but I noticed 2 pitfalls (that we may cover in other PRs if that's preferred):
|
.. and this is exactly the same algorithm was applied previously on Toggle Single-Line comment before I changed the behavior. The only difference I see (from Java case) is that for xml-based text we don't have a single-line comment template - there is only a multi-line comments, while in Java we have both - single-line and multi-line comments. So a solution I see is:
WDYT? |
…ents chars eclipse-tm4e#445 Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
8287b0f
to
72d6d13
Compare
This looks good to me. Any reason why it's still a draft? Anything left to do before we can merge? |
The selection is still messed up if a line has a block comment inside the text or more than one block comment. So I'm working on make it to be similar to what we have for Java editor (regarding the block comments) including the selection change. |
Couldn't we merge this increment, that I believe does cover very well the vast majority of cases, and track that other issue in a separate ticket/PR? |
I think yes, this PR can be merged. |
Thanks! |
…ents chars #445
Signed-off-by: Victor Rubezhny vrubezhny@redhat.com