Skip to content
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 line offset mismatch between diagnostic line and expanded document #150

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

davelopez
Copy link
Collaborator

Fixes #149

In addition to the missing offset correction in the location range due to the diagnostics requiring the first line starting at 0, the internal expanded document format was not matching the actual expanded document, so additional empty lines were present in the internal expanded document (the one that gets validated) in comparison with the visible expanded document (which was pretty-printed).

In addition to the missing -1 correction in the location range, the internal expanded document format was not matching the actual expanded document
@davelopez davelopez added bug Something isn't working language server Related to the language server labels Jun 6, 2021
@davelopez davelopez added this to the v0.5.2 milestone Jun 6, 2021
@davelopez davelopez merged commit dd6ee7f into master Jun 7, 2021
@davelopez davelopez deleted the fix_offset_expanded_doc_diagnostics branch June 7, 2021 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working language server Related to the language server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Line offset mismatch in diagnostics involving macros
1 participant