Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for...of autocomplete, variable declaration #631

merged 1 commit into from Sep 23, 2019


Copy link

fd-rey commented Nov 21, 2018


  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Following the for...of reference:

The variable declaration with "var" is missing and the autogenerated snippet produces a ReferenceError
if the variable used in the for is not declared previously in the code.

Alternate Designs


The forof autocomplete snippet can be used safely.

Possible Drawbacks

If the user wants to use an already declared variable, the declaration with "var" in the for has to be removed manually.

Applicable Issues


Following the for...of reference:
The variable declaration with "var" is missing.
@jasonrudolph jasonrudolph merged commit 19271dc into atom:master Sep 23, 2019
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed
@jasonrudolph jasonrudolph self-assigned this Sep 23, 2019

This comment has been minimized.

Copy link

jasonrudolph commented Sep 23, 2019

Thanks, @fd-rey. ⚡️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.