react-native/local-cli/server/util
Steve Kellock f49093f397 Fixes launching Visual Studio Code due to args being a nested array.
Summary:
**Motivation**

Visual Studio Code appears to have been accidentally borked in RN 38 & 39.

[Here you see](a643784144 (diff-9ad1aafc931637a94d74b60c06b46871R153)) args become an array to support the new `shell-quote` support.

Problem is, `getArgumentsForLineNumber` also returns an array.

[And because we](a643784144 (diff-9ad1aafc931637a94d74b60c06b46871R161)) `push` instead of `concat`, we get hawt array-on-array action.

Surprisingly Atom works.  But Code doesn't like this at all.

**Test plan (required)**

On RN 0.38 and 0.39, what's happening when I click on the simulator stack frame, Code opens with the array as a string...

![image](https://cloud.githubusercontent.com/assets/68273/20971724/83a3d7c4-bc60-11e6-8170-a1c2a4adee60.png)

I've tested Vim, Code and Atom (all on 10.11.6) as well as all combinations of `REACT_EDITOR` both set
Closes https://github.com/facebook/react-native/pull/11345

Differential Revision: D4339963

Pulled By: lacker

fbshipit-source-id: 030cb9e3d84fd6861f28e3652bebfe2eef28dd62
2016-12-16 10:28:35 -08:00
..
attachHMRServer.js Kill fastfs 2016-11-30 04:28:32 -08:00
copyToClipBoard.js Add Copy and Dismiss Button in RN Android Red Box 2016-06-30 08:13:22 -07:00
debugger.html RN: Show Warning for Background Remote Debuggers 2016-10-31 11:29:57 -07:00
debuggerWorker.js RN: Show Warning for Background Remote Debuggers 2016-10-31 11:29:57 -07:00
inspectorProxy.js Add fbjs definitions to flow config 2016-12-08 02:43:25 -08:00
launchChrome.js Allow launching inspector from dev menu 2016-11-15 08:59:02 -08:00
launchEditor.js Fixes launching Visual Studio Code due to args being a nested array. 2016-12-16 10:28:35 -08:00
messageSocket.js Use messageSocket to broadcast reload command on global shortcut 2016-06-20 10:58:32 -07:00
webSocketProxy.js Improve Chrome debugger 2016-02-05 15:17:33 -08:00