File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,20 +28,21 @@ public NodePlugin(string filename)
28
28
29
29
protected override Task < Stream > RequestAsync ( JsonRPCRequestModel request , CancellationToken token = default )
30
30
{
31
- _startInfo . ArgumentList [ 1 ] = JsonSerializer . Serialize ( request ) ;
31
+ _startInfo . ArgumentList [ 1 ] = JsonSerializer . Serialize ( request , RequestSerializeOption ) ;
32
32
return ExecuteAsync ( _startInfo , token ) ;
33
33
}
34
34
35
35
protected override string Request ( JsonRPCRequestModel rpcRequest , CancellationToken token = default )
36
36
{
37
37
// since this is not static, request strings will build up in ArgumentList if index is not specified
38
- _startInfo . ArgumentList [ 1 ] = JsonSerializer . Serialize ( rpcRequest ) ;
38
+ _startInfo . ArgumentList [ 1 ] = JsonSerializer . Serialize ( rpcRequest , RequestSerializeOption ) ;
39
39
return Execute ( _startInfo ) ;
40
40
}
41
41
42
42
public override async Task InitAsync ( PluginInitContext context )
43
43
{
44
44
_startInfo . ArgumentList . Add ( context . CurrentPluginMetadata . ExecuteFilePath ) ;
45
+ _startInfo . ArgumentList . Add ( string . Empty ) ;
45
46
_startInfo . WorkingDirectory = context . CurrentPluginMetadata . PluginDirectory ;
46
47
await base . InitAsync ( context ) ;
47
48
}
You can’t perform that action at this time.
0 commit comments