microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
src/extension/launchArgs.ts
36lines · 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 | |
| 4 | /** |
| 5 | * Defines the supported launch arguments. |
| 6 | * Add more arguments here as needed. |
| 7 | */ |
| 8 | export interface ILaunchArgs { |
| 9 | platform: string; |
| 10 | workspaceRoot: string; |
| 11 | projectRoot: string; |
| 12 | target?: "simulator" | "device"; |
| 13 | debugAdapterPort?: number; |
| 14 | logCatArguments?: any; |
| 15 | packagerPort?: any; |
| 16 | runArguments?: string[]; |
| 17 | env?: any; |
| 18 | envFile?: string; |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | * Defines the options needed to start debugging a project. |
| 23 | */ |
| 24 | |
| 25 | export interface IAndroidRunOptions extends ILaunchArgs { |
| 26 | variant?: string; |
| 27 | } |
| 28 | |
| 29 | export interface IIOSRunOptions extends ILaunchArgs { |
| 30 | scheme?: string; |
| 31 | iosRelativeProjectPath?: string; // TODO Remove deprecated |
| 32 | } |
| 33 | |
| 34 | export interface IRunOptions extends IAndroidRunOptions, IIOSRunOptions { |
| 35 | |
| 36 | } |
| 37 | |