https://www.dendron.so/ logo
k

kevins8

03/12/2022, 3:35 PM
to confirm, we are talking about lines 11 and 15 onward?
m

mihaiconstantin

03/12/2022, 3:45 PM
Indeed, those are the problematic lines. I suspect it has to do with the textmate scopes? For instance, this is the scope for line 9:
And this is the scope for line 11:
Actually, that's definitely not the issue, my bad.
😅
k

kevins8

03/12/2022, 4:38 PM
can reproduce. will investigate. could you also file an issue on this?
s

SeriousBug

03/12/2022, 5:28 PM
I already have an issue for this actually: https://github.com/dendronhq/dendron/issues/1016
k

kevins8

03/12/2022, 6:43 PM
nice - i added some details based on checking the output of unified - looks like
[ ]
is being parsed as a [LinkReference](https://github.com/syntax-tree/mdast#linkreference)
f

foureyedsoul

03/12/2022, 9:19 PM
Not sure if this is related, but I've also noticed that an empty
[ ]
before a linked note will often be highlighted (or selected? I'm not sure of the difference) on a different line. The highlighting logic seems to be "where the cursor is, then skip a linked note"? Here are three screenshots that hopefully illustrate it. I put the relevant lines in the file names.
Oops, it looks like the file names aren't easy to see after they're uploaded. In the first image, it's lines 88 and 93. In the second image, it's lines 92 and 93 (with the cursor to the left of the linked note on line 92). In the third image, it's lines 92 and 94 (with the cursor to the right of the linked note on line 92).
s

SeriousBug

03/12/2022, 9:34 PM
I don't think Dendron does anything that would cause that. Is there any chance it could be another extension?
f

foureyedsoul

03/12/2022, 9:47 PM
Oh! You're right—it still happens with Dendron disabled. My mistake. I haven't figured out which extension it is, but I did confirm that for it's not Dendron or Markdown All-in-one!
Weird. I've turned off every extension and theme, and it's still happening. Maybe it's something about VS Code's own highlighting? Anyways, thank you for helping me realize it's not caused by Dendron!
4 Views