Skip to content

Commit

Permalink
Merge pull request #14 from SwissLife-OSS/nidi/use-default-shell
Browse files Browse the repository at this point in the history
Nidi/use default shell
  • Loading branch information
dniggeler authored Jun 10, 2021
2 parents c0680b1 + 66fd61f commit 8de252a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tool/src/Boost.Core/Workspace/WorkspaceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public async Task<WorkspaceFile> GetFileAsync(

public async Task<int> ExecuteFileActionAsync(string fileName, string action)
{
FileInfo? file = new FileInfo(fileName);
FileInfo file = new(fileName);

switch (action)
{
Expand Down Expand Up @@ -256,7 +256,7 @@ public Task<int> OpenFile(string fileName)

public Task<int> OpenInExplorer(string directory)
{
IWebShell shell = _webShellFactory.CreateShell("pwsh");
IWebShell shell = _webShellFactory.CreateShell();
var cmd = new ShellCommand("ii")
{
Arguments = ".",
Expand All @@ -268,7 +268,7 @@ public Task<int> OpenInExplorer(string directory)

public Task<int> OpenInTerminal(string directory)
{
IWebShell shell = _webShellFactory.CreateShell("pwsh");
IWebShell shell = _webShellFactory.CreateShell();
var cmd = new ShellCommand("wt.exe")
{
Arguments = $"-w 0 nt -d {directory}",
Expand Down

0 comments on commit 8de252a

Please sign in to comment.