hardhat-vscode icon indicating copy to clipboard operation
hardhat-vscode copied to clipboard

fix: range create error

Open kanej opened this issue 1 year ago • 0 comments

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.

kanej avatar Jul 09 '24 17:07 kanej