Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Inconsistent JS hints depending on whitespace #5263

Open
dangoor opened this issue Sep 19, 2013 · 2 comments
Open

Inconsistent JS hints depending on whitespace #5263

dangoor opened this issue Sep 19, 2013 · 2 comments

Comments

@dangoor
Copy link
Contributor

dangoor commented Sep 19, 2013

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).

@ghost ghost assigned dangoor Sep 19, 2013
@dangoor
Copy link
Contributor Author

dangoor commented Sep 19, 2013

I can reproduce this in the Tern demo.

@dangoor
Copy link
Contributor Author

dangoor commented Sep 19, 2013

Filed with Tern: ternjs/tern#241

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant