diff --git a/src/Tool/src/Boost.Core/Workspace/WorkspaceService.cs b/src/Tool/src/Boost.Core/Workspace/WorkspaceService.cs index 07e35a3..b992397 100644 --- a/src/Tool/src/Boost.Core/Workspace/WorkspaceService.cs +++ b/src/Tool/src/Boost.Core/Workspace/WorkspaceService.cs @@ -93,7 +93,7 @@ public async Task GetFileAsync( public async Task ExecuteFileActionAsync(string fileName, string action) { - FileInfo? file = new FileInfo(fileName); + FileInfo file = new(fileName); switch (action) { @@ -256,7 +256,7 @@ public Task OpenFile(string fileName) public Task OpenInExplorer(string directory) { - IWebShell shell = _webShellFactory.CreateShell("pwsh"); + IWebShell shell = _webShellFactory.CreateShell(); var cmd = new ShellCommand("ii") { Arguments = ".", @@ -268,7 +268,7 @@ public Task OpenInExplorer(string directory) public Task OpenInTerminal(string directory) { - IWebShell shell = _webShellFactory.CreateShell("pwsh"); + IWebShell shell = _webShellFactory.CreateShell(); var cmd = new ShellCommand("wt.exe") { Arguments = $"-w 0 nt -d {directory}",