Skip to content

Commit b77b95a

Browse files
author
Tsvetan Raikov
committed
Added syncAllFiles option
1 parent d0a8e2a commit b77b95a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@
113113
"sourceMaps": true,
114114
"diagnosticLogging": false,
115115
"emulator": false,
116-
"rebuild": false
116+
"rebuild": false,
117+
"syncAllFiles": false
117118
},
118119
{
119120
"name": "Launch on iOS",
@@ -223,6 +224,11 @@
223224
"type": "boolean",
224225
"description": "Whether the app should be rebuild before start.",
225226
"default": true
227+
},
228+
"syncAllFiles": {
229+
"type": "boolean",
230+
"description": "Whether to sync files from node_modules folder.",
231+
"default": false
226232
}
227233
}
228234
},

src/debug-adapter/webKitAdapterInterfaces.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export interface ILaunchRequestArgs extends DebugProtocol.LaunchRequestArguments
1313
tnsArgs?: string[];
1414
tnsOutput?: string;
1515
rebuild?: boolean;
16+
syncAllFiles?: boolean;
1617
}
1718

1819
export interface IAttachRequestArgs extends DebugProtocol.AttachRequestArguments {

src/services/NsCliService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export class IosProject extends NSProject {
146146
.appendParamIf("--start", args.request === "attach")
147147
.appendParamIf("--debug-brk", args.request === "launch")
148148
.appendParamIf("--no-rebuild", !rebuild)
149+
.appendParamIf("--syncAllFiles", args.request === "launch" && !rebuild && (args as ILaunchRequestArgs).syncAllFiles)
149150
.appendParam("--no-client")
150151
.appendParams(args.tnsArgs)
151152
.build();

0 commit comments

Comments
 (0)