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)
2828
2929 protected override Task < Stream > RequestAsync ( JsonRPCRequestModel request , CancellationToken token = default )
3030 {
31- _startInfo . ArgumentList [ 1 ] = JsonSerializer . Serialize ( request ) ;
31+ _startInfo . ArgumentList [ 1 ] = JsonSerializer . Serialize ( request , RequestSerializeOption ) ;
3232 return ExecuteAsync ( _startInfo , token ) ;
3333 }
3434
3535 protected override string Request ( JsonRPCRequestModel rpcRequest , CancellationToken token = default )
3636 {
3737 // 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 ) ;
3939 return Execute ( _startInfo ) ;
4040 }
4141
4242 public override async Task InitAsync ( PluginInitContext context )
4343 {
4444 _startInfo . ArgumentList . Add ( context . CurrentPluginMetadata . ExecuteFilePath ) ;
45+ _startInfo . ArgumentList . Add ( string . Empty ) ;
4546 _startInfo . WorkingDirectory = context . CurrentPluginMetadata . PluginDirectory ;
4647 await base . InitAsync ( context ) ;
4748 }
You can’t perform that action at this time.
0 commit comments