We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b824f1 commit a4bade2Copy full SHA for a4bade2
src/PowerShellEditorServices.Hosting/Commands/StartEditorServicesCommand.cs
@@ -301,13 +301,10 @@ private string GetLogDirPath()
301
string logDir = Path.GetDirectoryName(LogPath);
302
if (string.IsNullOrEmpty(logDir))
303
{
304
- logDir = Directory.GetCurrentDirectory();
305
- // Path.GetDirectoryName(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
+ logDir = Path.Combine(Path.GetTempPath(), "PowerShellEditorServices");
306
}
307
308
- // Ensure logDir exists
309
Directory.CreateDirectory(logDir);
310
-
311
return logDir;
312
313
0 commit comments