react-native/local-cli/server/util
Patricio Beltran d1690a8f9e Support vscode as a React Editor
Summary:
When opening a text editor from react native there are a list of editors being supported. This PR adds `VSCode` to that.

As a difference with the current supported editors, `VSCode` has a notion of `workspace` (a directory that contains all of the project's files). The `workspace` can be passed to `VSCode` as a parameter so that if the workspace is already open we don't get new instances of `VSCode` every time a new file is open. The `workspace` is gotten by comparing the file location with the different `project roots`.

This code relies on `VSCode`'s `code` command, which it's documentation can be found at: https://code.visualstudio.com/Docs/editor/codebasics#_launching-from-the-command-line
Closes https://github.com/facebook/react-native/pull/7757

Differential Revision: D3463761

fbshipit-source-id: ee9ec999747ad6d16d95ec8317f551f3535286c9
2016-06-21 11:09:24 -07:00
..
attachHMRServer.js Pass transformOptions to getShallowDependencies. 2016-04-06 11:38:27 -07:00
debugger.html RN: Clear Debug Console on Reload JS 2016-06-08 19:13:25 -07:00
debuggerWorker.js Don't send bogus values to the app 2016-03-11 04:35:24 -08:00
launchEditor.js Support vscode as a React Editor 2016-06-21 11:09:24 -07: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