d1690a8f9e
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 |
||
---|---|---|
.. | ||
attachHMRServer.js | ||
debugger.html | ||
debuggerWorker.js | ||
launchEditor.js | ||
messageSocket.js | ||
webSocketProxy.js |