Ask questionsJS autocomplete recommends and inserts out-of-context symbols

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ --> <!-- Please read our Rules of Conduct: --> <!-- Please search existing issues to avoid creating duplicates. --> <!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: -->

<!-- Use Help > Report Issue to prefill these. -->

  • VSCode Version: 1.43.2
  • OS Version: Win 10 Enterprise v1909; build 18363.836

Steps to Reproduce:

  1. Create a brand new JS file with the following contents:
const o = {
  f: function() {},

  1. 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:


<!-- Launch with code --disable-extensions to check. --> Does this issue occur when all extensions are disabled?: Yes


Answer questions mjbvz

Thanks. Opened to track upstream


Related questions

the terminal process terminated with exit code #259 hot 6
The terminal shell CWD &#34;/c:/User...&#34; does not exist - vscode hot 4
Bad message: Cannot launch program 'c:\...'; setting the 'outFiles' attribute might help. hot 3
Show offending file path, when "Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`." hot 3
format code alt + shift + f hot 2
Corrupt ZIP: end of central directory record signature not found hot 2
"Initializing JS/TS Language Features" appears every time I open a JS file hot 2
Logitech MX Master: Horizontal scrolling via scroll wheel doesn't work hot 2
VS Code doesn't read Git packed-refs hot 2
Is it possible to use wsl bash php for php.validate.executablePath hot 2
Virtual Space is not implemented. hot 2
EISDIR: illegal operation on a directory, read error when trying to REMOTE-SSH hot 2
Failed to save ...: The content of the file is newer. Please compare your version with the file contents. hot 2
Insiders - We cannot connect to the Extensions Marketplace hot 2
error on trying to open terminal hot 2
Github User Rank List