hardhat-vscode
hardhat-vscode copied to clipboard
fix: range create error
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.