mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-10-26 23:32:02 +03:00
Debugger accept array of sourcefiles (rather than string) (#2236)
Summary: Release Notes: Landed Nuclide change to pass sourcefiles as array instead of string. Updating receiving behavior here to match. Pull Request resolved: https://github.com/facebook/prepack/pull/2236 Differential Revision: D8837329 Pulled By: caiismyname fbshipit-source-id: 85fea894b5293746249f6feb5bbaa9e476736fc0
This commit is contained in:
parent
ba9b2281fd
commit
912384679b
@ -114,10 +114,9 @@ class PrepackDebugSession extends DebugSession {
|
|||||||
let adapterChannel = new AdapterChannel(inFilePath, outFilePath);
|
let adapterChannel = new AdapterChannel(inFilePath, outFilePath);
|
||||||
this._adapterChannel = adapterChannel;
|
this._adapterChannel = adapterChannel;
|
||||||
this._registerMessageCallbacks();
|
this._registerMessageCallbacks();
|
||||||
let separatedSourceFiles = args.sourceFile.trim().split(/\s+/g); // Split on all whitespace
|
|
||||||
let launchArgs: PrepackLaunchArguments = {
|
let launchArgs: PrepackLaunchArguments = {
|
||||||
kind: "launch",
|
kind: "launch",
|
||||||
sourceFiles: separatedSourceFiles,
|
sourceFiles: args.sourceFiles,
|
||||||
prepackRuntime: args.prepackRuntime,
|
prepackRuntime: args.prepackRuntime,
|
||||||
prepackArguments: args.prepackArguments,
|
prepackArguments: args.prepackArguments,
|
||||||
debugInFilePath: inFilePath,
|
debugInFilePath: inFilePath,
|
||||||
|
@ -162,7 +162,7 @@ export type EvaluateResult = {
|
|||||||
export type LaunchRequestArguments = {
|
export type LaunchRequestArguments = {
|
||||||
...DebugProtocol.LaunchRequestArguments,
|
...DebugProtocol.LaunchRequestArguments,
|
||||||
noDebug?: boolean,
|
noDebug?: boolean,
|
||||||
sourceFile: string,
|
sourceFiles: Array<string>,
|
||||||
prepackRuntime: string,
|
prepackRuntime: string,
|
||||||
prepackArguments: Array<string>,
|
prepackArguments: Array<string>,
|
||||||
};
|
};
|
||||||
|
@ -157,7 +157,7 @@ export class UISession {
|
|||||||
_processInitializeResponse(response: DebugProtocol.InitializeResponse) {
|
_processInitializeResponse(response: DebugProtocol.InitializeResponse) {
|
||||||
let launchArgs: LaunchRequestArguments = {
|
let launchArgs: LaunchRequestArguments = {
|
||||||
prepackRuntime: this._prepackRuntime,
|
prepackRuntime: this._prepackRuntime,
|
||||||
sourceFile: this._sourceFiles.join(" "),
|
sourceFiles: this._sourceFiles,
|
||||||
prepackArguments: this._prepackArguments,
|
prepackArguments: this._prepackArguments,
|
||||||
};
|
};
|
||||||
this._sendLaunchRequest(launchArgs);
|
this._sendLaunchRequest(launchArgs);
|
||||||
|
Loading…
Reference in New Issue
Block a user