react-native/local-cli/server
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
..
middleware ignore heap captures 2016-12-02 08:28:32 -08:00
util Fixes launching Visual Studio Code due to args being a nested array. 2016-12-16 10:28:35 -08:00
checkNodeVersion.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
findSymlinksPaths.js Support symlinks-to-symlinks 2016-09-15 05:28:34 -07:00
formatBanner.js fix banner for old node version 2016-06-22 03:43:33 -07:00
runServer.js Allow custom platforms for the RN Packager on a per-project basis 2016-12-02 09:43:31 -08:00
server.js Allow custom platforms for the RN Packager on a per-project basis 2016-12-02 09:43:31 -08:00