question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offer an auto-import for unresolved shorthand-named object literal properties

See original GitHub issue

suppose 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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jdalleycommented, Feb 7, 2021

Is this something you folks might consider adding at some point? I definitely run into this quite a bit.

0reactions
PetrBrabeccommented, Aug 22, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found