1 write to _workspacePath
Microsoft.VisualStudioCode.Razor.IntegrationTests (1)
Services\WorkspaceService.cs (1)
30
_workspacePath
= Path.Combine(Path.GetTempPath(), $"vscode-razor-test-{Guid.NewGuid():N}");
9 references to _workspacePath
Microsoft.VisualStudioCode.Razor.IntegrationTests (9)
Services\WorkspaceService.cs (9)
18
public string WorkspacePath =>
_workspacePath
?? throw new InvalidOperationException("Workspace not created. Call CreateAsync first.");
23
public string Name => Path.GetFileName(
_workspacePath
) ?? throw new InvalidOperationException("Workspace not created.");
31
Directory.CreateDirectory(
_workspacePath
);
33
TestServices.Logger.Log($"Creating test workspace at: {
_workspacePath
}");
42
WorkingDirectory =
_workspacePath
,
72
WorkingDirectory =
_workspacePath
,
100
if (
_workspacePath
!= null && Directory.Exists(
_workspacePath
))
104
Directory.Delete(
_workspacePath
, recursive: true);