-
Notifications
You must be signed in to change notification settings - Fork 97
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 completion after xref: for old double-square bracket notation #667
Fix completion after xref: for old double-square bracket notation #667
Conversation
part of asciidoctor#648 - it was broken during enforcing code style, the regular expression was not correctly converted asciidoctor@cd477c7 - added a test - The previous was not very nice in the sense that it is not inserting the file path but only the label, but maybe it is enough if there is the right include? Signed-off-by: Aurélien Pupier <[email protected]>
.map((result) => result.replace('[[', '').replace(']]', '')) | ||
) | ||
const matched = contentOfFilesConcatenated.match(regex) | ||
if (matched) { |
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.
checking for null, previously there was an exception caught by the VS Code framework.
We can use |
THANKS 🙌🏻 |
My question was if it is even valid to insert it this way currently. But I guess we can split it anyway. it is helping users anyway, and can insert in a second iteration. I mentioned it as a seprate task here #648 (comment) |
@Mogztter if fine for you, I think we can merge this Pull Request as-is and iterate to improve the mentioned points. |
@apupier And merged, thanks! You will need to rebase your other pull requests 😬 |
part of #648
cd477c7