Offer an auto-import for unresolved shorthand-named object literal properties
See original GitHub issuesuppose I have exported an object called Foo
in foo.js
, and in another file I want to use something like this:
export default configure({Foo})
autocomplete will not show Foo
and of course, will not auto import from that file.
to use auto import, I have to write the code like this:
export default configure({Foo:Foo})
actually autocomplete shows Foo
, But it doesn’t auto import. it has abc
icon.
could you support object shorthand in autocomplete?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Offer an auto-import for unresolved shorthand-named object ...
suppose I have exported an object called Foo in foo.js, and in another file I want to use something like this: export default ......
Read more >Unable to add new properties to an object literal using typescript
But my knowledge says that objects are mutable in ts . Then why I am getting this error. error TS2339: Property 'email' does...
Read more >Object initializer - JavaScript - MDN Web Docs - Mozilla
An object initializer is a comma-delimited list of zero or more pairs of property names and associated values of an object, ...
Read more >to quote/unquote object literal properties : WEB-9911 - YouTrack
New intention: to quote/unquote object literal properties. 1. Relates to 2 Duplicates 1. Relates to 2 issues (2 unresolved).
Read more >How To Add, Modify and Delete JavaScript Object Literal ...
JavaScript object is a collection of properties, and a property is an association between a name (or key) and a value. And we...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Is this something you folks might consider adding at some point? I definitely run into this quite a bit.
Hello, I use shorthand-named object properties very often. What if there won’t be any suggestions while typing property names, but you can hit
cmd+.
to see the suggestions? @mjbvz