microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/launchArgs.ts
42lines · modeblame
fb2bae06Daniel10 years ago | 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 | */ | |
acf08bc2dlebu10 years ago | 8 | export interface ILaunchArgs { |
5c8365a6Artem Egorov8 years ago | 9 | platform: string; |
2e432a9eArtem Egorov8 years ago | 10 | workspaceRoot: string; |
0db0be15Artem Egorov8 years ago | 11 | projectRoot: string; |
8022afdfVladimir Kotikov8 years ago | 12 | target?: "simulator" | "device"; |
5547a16fJimmy Thomson10 years ago | 13 | debugAdapterPort?: number; |
5e651f3edigeff10 years ago | 14 | packagerPort?: any; |
0db0be15Artem Egorov8 years ago | 15 | runArguments?: string[]; |
e26a1f43Artem Egorov8 years ago | 16 | env?: any; |
| 17 | envFile?: string; | |
27710197Vladimir Kotikov8 years ago | 18 | } |
| 19 | | |
| 20 | /** | |
| 21 | * Defines the options needed to start debugging a project. | |
| 22 | */ | |
0db0be15Artem Egorov8 years ago | 23 | |
| 24 | export interface IAndroidRunOptions extends ILaunchArgs { | |
27710197Vladimir Kotikov8 years ago | 25 | variant?: string; |
299883f9Artem Egorov8 years ago | 26 | logCatArguments?: any; |
78c2b4deRedMickey6 years ago | 27 | debugLaunchActivity?: string; |
0db0be15Artem Egorov8 years ago | 28 | } |
| 29 | | |
| 30 | export interface IIOSRunOptions extends ILaunchArgs { | |
27710197Vladimir Kotikov8 years ago | 31 | scheme?: string; |
0db0be15Artem Egorov8 years ago | 32 | iosRelativeProjectPath?: string; // TODO Remove deprecated |
db6fd42aRuslan Bikkinin7 years ago | 33 | productName?: string; |
| 34 | configuration?: string; | |
0db0be15Artem Egorov8 years ago | 35 | } |
| 36 | | |
299883f9Artem Egorov8 years ago | 37 | export interface IWindowsRunOptions extends ILaunchArgs { |
| 38 | } | |
| 39 | | |
| 40 | export interface IRunOptions extends IAndroidRunOptions, IIOSRunOptions, IWindowsRunOptions { | |
0db0be15Artem Egorov8 years ago | 41 | |
27710197Vladimir Kotikov8 years ago | 42 | } |