Skip to content

Code completion proposes ___foo although symbol is __foo #8778

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

Closed
dbaeumer opened this issue May 24, 2016 · 1 comment
Closed

Code completion proposes ___foo although symbol is __foo #8778

dbaeumer opened this issue May 24, 2016 · 1 comment
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@dbaeumer
Copy link
Member

TypeScript Version: 1.8.10
VS Code version: alpha

  • create js file with content
__foo;

<cursor>
  • request code complete
  • observe: the first entry returned from code complete tsserver request is:
    {
        "name": "___foo",
        "kind": "warning",
        "kindModifiers": "",
        "sortText": "1"
    }

where foo has 3 _ in front although the foo in the file has only two __ in front.

@dbaeumer dbaeumer changed the title Code completion proposes ___foo although symbol is __for Code completion proposes ___foo although symbol is __foo May 24, 2016
@DanielRosenwasser DanielRosenwasser added the Bug A bug in TypeScript label May 24, 2016
@DanielRosenwasser
Copy link
Member

Identifier escaping strikes again.

@mhegazy mhegazy assigned ghost Jun 7, 2016
@mhegazy mhegazy added this to the TypeScript 2.1 milestone Jun 7, 2016
@ghost ghost mentioned this issue Jun 14, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jun 14, 2016
@ghost ghost closed this as completed in #9159 Jun 14, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

3 participants