No completion for inline contract member lookup
llllvvuu opened this issue · comments
L commented
To reproduce:
IERC20(tokenAddr). // no completion
IERC20 token = IERC20(tokenAddr);
token. // has completion
Completion looks like this:
which I assume is the `getDefaultCompletions` branch?hardhat-vscode/server/src/services/completion/onCompletion.ts
Lines 176 to 178 in 6c7d5b6
Randomly tried in VSCode on solmate WETH:
Kind of interesting failure mode where this particular string works the first time but fails subsequent times:
Screen.Recording.2023-07-31.at.9.17.29.PM.mov
Also I think the function signature help is wrong because I didn't put the new
keyword.
John Kane commented
Thanks for the videos and details they really help to reproduce the issue.
I think there are two issues to investigate here:
- What type and completion information are we tagging to inline usages of the contract
- Why does the completion show different result at different times (as per the video)