vscode-comment-anchors icon indicating copy to clipboard operation
vscode-comment-anchors copied to clipboard

Bug: custom tag shows double ahcnor icon in gutter

Open lonix1 opened this issue 6 years ago • 5 comments

steps

  • in config: ensure gutter icons are shown
  • in config: add a custom tag, e.g. "TEST"
  • in code: add a comment anchor, e.g. //TEST test this new stuff

results

  • anchor is shown on a line (OK)
  • same anchor also shown on the line below it (BUG)

Note that the bug occurs only when there is no space at the end of the comment, so:

  • ok: "//TEST test this new stuff " <--- note the trailing space
  • bug: "//TEST test this new stuff"

lonix1 avatar Jan 31 '19 17:01 lonix1

Hi there!

I'm unable to reproduce this issue. Could you please include a screenshot/snippet of this bug in action?

Thanks!

macjuul avatar Feb 03 '19 01:02 macjuul

screenshot

lonix1 avatar Feb 03 '19 04:02 lonix1

Hi Ionix1, Its not related to this issue but how did you add a custom tag. Which settings file did you edit for that? or can you paste the code for your custom tag. I tried but couldnt add one.

ahmednrana avatar Feb 16 '19 21:02 ahmednrana

@ahmednrana The answer is here. Just add the custom tags to your workspace settings. Open the json file (not the UI) and you'll see examples of how to add new tags.

Please open another issue for that if you get stuck.

lonix1 avatar Feb 17 '19 06:02 lonix1

@macjuul Did you manage to repro the issue? Maybe my idea that it has something to do with trailing spaces is incorrect, but the issue it still there. Not sure what it could be.

lonix1 avatar Feb 17 '19 06:02 lonix1

I made a custom tag to try and reproduce this issue and while it does appear to create a phantom anchor after going to a new line, this seems to only be the case for a very short period of time before it corrects itself.

Code_wAEwpx0aGo

Given that this issue has been unable to be reproduced, I will close this. If you or anyone else is able to reproduce it, feel free to re-open.

Thank you for using Comment Anchors!

JordanDi123 avatar Mar 08 '23 03:03 JordanDi123