When I search this topic from Google, I always get results with 'How to write C# program in VS Code'.

But what I was working on is an editor, which allows the user to open VS Code to edit a folder.

My UI is like this:

So what should I do to open the folder in VSCode?

Code is below:

            Process.Start(new ProcessStartInfo 
            {
                UseShellExecute = true,  // IMPORTANT: This makes it work
                WindowStyle = ProcessWindowStyle.Hidden, // Hide the console.
                FileName = "code",
                Arguments = this.EditorContext.EditingPath,
                WorkingDirectory = this.EditorContext.EditingPath
            });