blakedietz/vscode-nested-tags

Duplicate Tags in Tag Tree

Closed this issue · 3 comments

For some files with tags they are producing duplicate categories in the Tag Tree, such that 1 or 2 files is separate from the other tag.

image

for example I have 2 files with the terraform tag each with the same exact line
<!--@nested-tags:terraform-->
but as you can see this is producing duplicate tags in the tag tree.

I tried copy/pasting the same line from one file to another and it made no difference. For other instances, it appears to be order based like <!--@nested-tags:writing,fiction,books,specific-name--> and <!--@nested-tags:writing,fiction,specific-name,books--> I had to re-arrange tags so that tags were in the same order on all files.

Running VScode 1.46.1, OS Win 10, Nested Tags v1.7.0

Doing more experiments and this might be a conflict between another extension, both fighting over the last line

Moving the <!--@nested-tags:terraform--> (and all other nested-tag lines) to the very first line fixed my problem.

it is not fixed:
image

The difference is:
in test.vcode-nested-tags.2.md it is not the last line of the document.
<!--@nested-tags:topic,here/is/a/nested/example-->

image

but in test08.md it is the last line
image

and here YAML syntax is used:
image