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

Unexpected suggestions on an array - it suggests the indices of contained elements #11197

Closed
stevencl opened this issue Aug 30, 2016 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Milestone

Comments

@stevencl
Copy link
Member

  • VSCode Version: 1.5.0-insiders
  • OS Version: Windows 10

Steps to Reproduce:

  1. With this code:
    var _ = require('lodash');

var hello = _.capitalize('hello world');

var users = [
  { 'user': 'barney', 'age': 36, 'active': false },
  { 'user': 'fred',   'age': 40, 'active': true }
];

_.reject(users, function(o) { return !o.active; });

// ➜ objects for ['fred']

// The _.matches iteratee shorthand.
_.reject(users, { 'age': 40, 'active': true });
// ➜ objects for ['barney']

// The _.matchesProperty iteratee shorthand.
_.reject(users, ['active', false]);
// ➜ objects for ['fred']

  1. Break in the debugger and type users. in the debug.console. I see suggestions labeled 0 and 1. Choosing either of these results in an invalid expression.
@stevencl
Copy link
Member Author

Found while testing #10997

@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Aug 30, 2016
@isidorn isidorn assigned weinand and unassigned isidorn Aug 30, 2016
@weinand weinand added the bug Issue identified by VS Code Team member as probable bug label Aug 30, 2016
@weinand weinand added this to the August 2016 milestone Aug 30, 2016
@weinand
Copy link
Contributor

weinand commented Aug 31, 2016

duplicate of #11191

@weinand weinand closed this as completed Aug 31, 2016
@weinand weinand added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 31, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug debug Debug viewlet, configurations, breakpoints, adapter issues *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants