-
Notifications
You must be signed in to change notification settings - Fork 132
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
fix(lsp): ignore diagnostic check within code blocks #399
Conversation
awesome! Thank you! I'll have a look at this tomorrow (or latest day after) |
@Rahlir
These are getting missed for some reason. Will keep inspecting, but just wanted to chime in as I go. Thanks again for this! I do however think we can be clearer with the function and variable naming though. I would suggest simply |
Thanks for the feedback! Hmm, weird that the first string is being missed, that's probably some oversight with 0 index, will fix that asap. Thanks for catching that. Regarding the function names: I am not entirely sure what you mean. The function |
Found it :) It's because when the link is the first string in the line, the backtick == 0. So Regarding the naming, that was my confusion! I thought the function was being used for code blocks as well. Perhaps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great! Thanks for getting these changes back so quickly.
I'm going to give it a second pass with a fresh mind this morning, just to double check myself.
@Rahlir I pushed the 'fixes' from my comments, so you can just pull to check them out if you like. If my comments/changes are misguided, let me know and I'll revert! |
I think moving the check is fine and you are right that it might shave some execution time off. Hardcoding |
ahhh yep, awesome, thanks for taking the time to explain to me 👌 |
No problem 🙂. All looks good to me now. |
resolves: #194.
resolves: zk-org/zk-nvim#161
I tried to be as thorough as possible, let me know if I missed any other markdown ways to denote code blocks. I am also including here two files I have used to test this fix:
empty-note.md
test-note.md