microsoft/vscode-react-native

Public

mirrored from https://github.com/microsoft/vscode-react-nativeAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
8152571adb22d7628c545490a38bc85153249841

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/extension/launchArgs.ts

51lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT license. See LICENSE file in the project root for details.
3
4import {RNPackageVersions} from "../common/projectVersionHelper";
5
6/**
7 * Defines the supported launch arguments.
8 * Add more arguments here as needed.
9 */
10export interface ILaunchArgs {
11 platform: string;
12 workspaceRoot: string;
13 projectRoot: string;
14 reactNativeVersions: RNPackageVersions;
15 target?: "simulator" | "device";
16 debugAdapterPort?: number;
17 packagerPort?: any;
18 runArguments?: string[];
19 env?: any;
20 envFile?: string;
21 isDirect?: boolean;
22 enableDebug?: boolean;
23}
24
25/**
26 * Defines the options needed to start debugging a project.
27 */
28
29export interface IAndroidRunOptions extends ILaunchArgs {
30 variant?: string;
31 logCatArguments?: any;
32 debugLaunchActivity?: string;
33}
34
35export interface IIOSRunOptions extends ILaunchArgs {
36 scheme?: string;
37 iosRelativeProjectPath?: string; // TODO Remove deprecated
38 productName?: string;
39 configuration?: string;
40}
41
42export interface IExponentRunOptions extends IAndroidRunOptions, IIOSRunOptions {
43 expoHostType?: "tunnel" | "lan" | "local";
44}
45
46export interface IWindowsRunOptions extends ILaunchArgs {
47}
48
49export interface IRunOptions extends IAndroidRunOptions, IIOSRunOptions, IExponentRunOptions, IWindowsRunOptions {
50
51}
52