brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Inconsistent JS hints depending on whitespace #12387

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by dangoor Thursday Sep 19, 2013 at 15:54 GMT Originally opened as https://github.com/adobe/brackets/issues/5263


Steps to reproduce:

  1. Open Document.js (in Brackets source)
  2. Go to the end of the line before the last line in the Document constructor
  3. Set indentation to 2 spaces
  4. Press enter
  5. The cursor will be on the next line, two characters to the left of where this.refreshText appears on the line above
  6. Type this.

The code hints are displayed as if there is no known context. If you line up the new line with the line above, the correct hints (for Document) are given.

Low priority, to me (calling this low priority because most people don't use inconsistent indentation).

core-ai-bot commented 3 years ago

Comment by dangoor Thursday Sep 19, 2013 at 15:57 GMT


I can reproduce this in the Tern demo.

core-ai-bot commented 3 years ago

Comment by dangoor Thursday Sep 19, 2013 at 16:01 GMT


Filed with Tern: https://github.com/marijnh/tern/issues/241