Open NotMyself opened 3 years ago
@lostintangent take a look at this method of detecting duplicate inserts. I think it works as expected. But I am unsure if pulling the entire contents of the doc to do a comparison is the best approach.
Looking forward to this functionality!
Would love to see this functionality integrated into the plugin
Fixes #196 Fixes #187
This PR fixes a couple of issues we were running into this week.
To fix these things, the following updates were made.
codetour.adjustOnInsertCodeSnippet
.codetour.insertCodeSnippet
checks setting prior to doing any adjustments.codetour.insertCodeSnippet
checks the line of text at the insert location to see if the code block already contains that line. If so, it early outs due to the code already being inserted prior.