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: range create error #584

Draft
wants to merge 3 commits into
base: development
Choose a base branch
from
Draft

Conversation

kanej
Copy link
Member

@kanej kanej commented Jul 9, 2024

If the import completion is triggered by deleting a quote on an existing import and readding it then, the position is the start of the import but we delete the entire length of the import line which creates a negative position triggering the bug.

Instead, we short circuit. If the import is already the suggestion we don't suggest it again.

Fixes #150.

OmarTawfik and others added 3 commits June 28, 2024 13:04
After the https://github.com/NomicFoundation/hardhat-vscode/releases/tag/v0.8.4 release with the latest Slang fixes, we can now bump up the release flags to 20%.
If the import completion is triggered by deleting a quote on an existing
import and readding it then, the position is the start of the import but
we delete the entire length of the import line which creates a negative
position triggering the bug.

Instead, we short circuit. If the import is already the suggestion we
don't suggest it again.

Fixes #150.
@github-actions github-actions bot added the status:ready This issue is ready to be worked on label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Range exceptioning on bad inputs
2 participants