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: diagnostics wrong position on unicode characters (#248) #253

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

antico5
Copy link
Collaborator

@antico5 antico5 commented Sep 8, 2022

Closes #248

@antico5 antico5 requested a review from kanej September 8, 2022 13:07
@antico5 antico5 force-pushed the diagnostics-encoding-length-248 branch from 8bf3dd6 to bf8ae16 Compare September 8, 2022 16:09
@antico5 antico5 force-pushed the diagnostics-encoding-length-248 branch 3 times, most recently from 525e527 to 8d265e0 Compare September 9, 2022 16:17
continue;
}

const normalizeOffset = (text: string, offset: number) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move this function out and declare it in the top level file?

@antico5 antico5 force-pushed the diagnostics-encoding-length-248 branch from 8d265e0 to cd0e1a0 Compare September 14, 2022 11:48
@antico5 antico5 force-pushed the diagnostics-encoding-length-248 branch from cd0e1a0 to f1fa33a Compare September 20, 2022 12:39
Copy link
Member

@kanej kanej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@antico5 antico5 merged commit 40967d0 into development Sep 20, 2022
@antico5 antico5 deleted the diagnostics-encoding-length-248 branch September 20, 2022 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect range on diagnostic on contracts with non-ascii characters
3 participants