microsoft/vscode-react-native

Public

mirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
eec73ab534b61f89f3c9749f131ba6a28af5cdc0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/atom

19lines · modecode

1#!/bin/sh
2
3# This script is called 'atom' to surpass the react-native
4# editor selection. It has nothing to do with the atom editor.
5# It can be safetly removed when the PR to support vscode in
6# react native gets accepted:
7# https://github.com/facebook/react-native/pull/7757
8#
9# Usage:
10# ../path/atom filename:filenumber
11
12# Unix
13if [[ -z "$1" ]] ; then
14 echo "Missing filename."
15 exit 1
16fi
17
18parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
19node "$parent_path/../out/extension/openFileAtLocation.js" "$1"
20