- VSCode Version: 1.43.2
- OS Version: Win 10 Enterprise v1909; build 18363.836
Steps to Reproduce:
- Create a brand new JS file with the following contents:
const o = {
f: function() {},
};
- Attempt to type in
...args within the f function's parentheses.
Notice how .apply (this is just because apply is the first recommendation) is automatically inserted for each dot that is typed. This can also be reproduced in TS files. The odd part is that .apply doesn't even belong in the argument list. Also, I've noticed that this does not happen with free functions, only ones that are defined within an object.
Reproduction GIF:

Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
...argswithin the f function's parentheses.Notice how
.apply(this is just because apply is the first recommendation) is automatically inserted for each dot that is typed. This can also be reproduced in TS files. The odd part is that.applydoesn't even belong in the argument list. Also, I've noticed that this does not happen with free functions, only ones that are defined within an object.Reproduction GIF:
Does this issue occur when all extensions are disabled?: Yes