Skip to content

No autocomplete for native JavaScript props and methods #11012

@waderyan

Description

@waderyan

From @fronteed on September 17, 2016 10:16

  • VSCode Version: 1.5.1
  • OS Version: OS X El Capitan

Autocomplete for native methods and properties in JavaScript doesn't work inside IIFE (Immediately-Invoked Function Expression).

Steps to Reproduce:

  1. Type document.get at the top of JS file - you will get 'getElementById` autocomplete suggestion.

2016-09-17-0dyeh

  1. Type document.get inside IIFE construction - you'll get no autocomplete suggestion for getElementById.
(function (window, document) {
  document.get| // no autocomplete
})(window, document)

2016-09-17-gtm7q

This looks like an issue, I hope this will be fixed in the next release.

Copied from original issue: microsoft/vscode#12186

Metadata

Metadata

Assignees

Labels

FixedA PR has been merged for this issueVS Code TrackedThere is a VS Code equivalent to this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions