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

JavaScript IntelliSense doesn't recognize "this" inside the functions of literal objects #28071

Closed
n-peugnet opened this issue Jun 5, 2017 · 1 comment
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@n-peugnet
Copy link

  • VSCode Version: Code 1.12.2 (19222cd, 2017-05-10T13:20:36.315Z)
  • OS Version: Windows_NT ia32 10.0.15063
  • Extensions:
Extension Author Version
theme-monokai-light anoff 1.0.3
path-intellisense christian-kohler 1.4.2
vscode-npm-script eg2 0.2.0
ejs-language-support QassimFarid 0.0.1
seti-icons qinjia 0.1.3
ActiveFileInStatusBar RoscoP 1.0.2
theme-setimonokai SmukkeKim 0.0.1
language-pde Tobiah 0.1.21

var test = {
	truc: 'bidule',
	methode() {
		return this.truc;
	}
}

in this example, "this" is not referenced as the current object ("test") but as "any" in IntelliSense

@mjbvz mjbvz self-assigned this Jun 5, 2017
@mjbvz mjbvz added *duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Jun 5, 2017
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 5, 2017

Thanks. This is a duplicate of microsoft/TypeScript#16184

closing as upstream

@mjbvz mjbvz closed this as completed Jun 5, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants