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

Inconsistent JS hints depending on whitespace #12387

Open
core-ai-bot opened this issue Aug 31, 2021 · 2 comments
Open

Inconsistent JS hints depending on whitespace #12387

core-ai-bot opened this issue Aug 31, 2021 · 2 comments

Comments

@core-ai-bot
Copy link
Member

Issue by dangoor
Thursday Sep 19, 2013 at 15:54 GMT
Originally opened as adobe/brackets#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
Copy link
Member Author

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


I can reproduce this in the Tern demo.

@core-ai-bot
Copy link
Member Author

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


Filed with Tern: ternjs/tern#241

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

No branches or pull requests

1 participant