-
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
do not duplicate attributes on include suggestion #620
Comments
We should not use a regular expression. Instead, we should use Asciidoctor.js to parse the AsciiDoc document using the |
It might be because
We should probably remove const globalVariableDefinitions = documentText.match(/:\S+:.*/g). I think we should revise our completion item providers to make sure that we don't return the same items more than once. |
That's the case. The duplicate comes from AttributeReferenceProvider. |
It should be better in the latest version. Feel free to open a new issue if we can improve it further. |
In asciidoc.provider.ts
const globalVariableDefinitions = documentText.match(/:\S+:.*/g)
leads to duplicate entries in the suggestions when i define an attribute in the same file.
and further down it appears again (coming from a different provider)
The text was updated successfully, but these errors were encountered: