-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Salsa - Recognize dynamically added object properties #10868
Comments
We have been thinking about this scenario lately. we are experimenting with "evolving" types with assignments. |
yes. the proposal so far applies to: var x = {};
x.a = 0;
var y = [];
y.push(1);
var z = null;
z = {a: 0};
var w;
w = [1,2]; you can read more about this in #10566 |
Just checking in, but has any work or additional discussion happened regarding this issue recently? |
This one is huge for me, and the only alternative I can think of is to download the Visual Studio Community edition, but that is a huge installation for my laptop. It would be incredibly useful to have this functionality. |
SublimeText3 does this really well but I think it uses some kind of search to find definitions. |
@barisusakli I have to be honest with you, WebStorm is so far the best editor I worked with. It's fully customizable and its intelli sense is great. For javascript and typescript. However it is a paid option (50 per yer), it saves lots of time :) |
It's affect me too in VSCode, I hope that there some chances to fix this :) |
I'm having the exact same issue. I have already lost several hours of my time trying to make it work. I can't understand how can Atom and Sublime Text do this but VS Code doesn't. |
Same applies for the following I believe: var a = {
c: 2,
b() {
return this.c;
}
} |
Any update on this one? I run into this a fair bit. |
Yes I'd also like an update about this please. |
looks like this specific feature has been asked for in several places for years... still not done? It exists in Eclipse... file1.js file2.js file3.js those foo and bar references in file3.js are both navigable as references to the definitions in file1&2 |
I have what I assume is the same issue, I am using backbonejs so there are a lot of object expressions. It does not recognize any of the functions/variables. For example,
|
This comment has been minimized.
This comment has been minimized.
it Support??
|
Salsa now supports the most common patterns of dynamically adding properties, as explained on the wiki, so I will close this issue. Please open new issues for specific patterns that are still not supported. |
I'd like to switch to VS Code (from Webstorm) for my Node.js app, but this might be a deal breaker. I need to be able to type F12 (or "Go to Definition") for functions from imported modules. Update: du.myFunc() { ... } works, except from within the same module. Ah, and if I put this line at the end of file, it seems to work everywhere!?? I don't understand how Microsoft could mess up such an essential and honestly quite basic functionality (I remember using it a lot in 2000 in Visual Studio.Net already). |
@nicothed Can you open a new issue for the bug you found? I'd like to track each issue separately, and yours looks different from the specifics of the original bug. You can also try |
I'd just like to chime in that I too wish this basic functionality worked better. My use case is like this:
} |
Seems like a pretty basic use case and I was surprised that the functionality is missing. Really a pain if you prefer factory functions instead of classes. |
Will this be added, like, ever? It was first asked 5 years ago. This is basic functionality and without it makes VSCode unusable. |
I have been trying to use Visual Studio Code as my primary editor, and one thing I've noticed as far as the JS intellisense goes, is that intellisense is provided for object properties that are statically defined when an object is declared, but it is not for properties dynamically added to the object after it has been declared. Are there currently any plans to support this feature?
Example:
Thanks!
The text was updated successfully, but these errors were encountered: