132 references to Log
Microsoft.VisualStudioCode.Razor.IntegrationTests (132)
Services\CompletionServices.cs (3)
105TestServices.Logger.Log($"Found {results.Count} completion items via JS"); 108TestServices.Logger.Log($"First few items: {string.Join(", ", results.Take(5))}"); 140TestServices.Logger.Log($"Suggest widget debug: {debugInfo}");
Services\DiagnosticsServices.cs (1)
110TestServices.Logger.Log($"Found {problems.Count} problems: {string.Join("; ", problems.Take(5))}");
Services\EditorService.cs (10)
26TestServices.Logger.Log("WaitForEditorTextChangeAsync: No file currently open"); 37TestServices.Logger.Log($"WaitForEditorTextChangeAsync: BEFORE contents ({originalContents.Length} chars):\n{originalContents}"); 41TestServices.Logger.Log($"WaitForEditorTextChangeAsync: Failed to read original file: {ex.Message}"); 68TestServices.Logger.Log($"WaitForEditorTextChangeAsync: AFTER contents ({currentContents.Length} chars):\n{currentContents}"); 74TestServices.Logger.Log($"WaitForEditorTextChangeAsync: Timeout waiting for contents change, returning current contents"); 84TestServices.Logger.Log($"WaitForEditorTextChangeAsync: AFTER contents (fallback, {currentContents.Length} chars):\n{currentContents}"); 263TestServices.Logger.Log("Saving document."); 288TestServices.Logger.Log("Dirty indicator: " + (isDirty ? "present" : "not present")); 393TestServices.Logger.Log($"Opening file: {relativePath}"); 435TestServices.Logger.Log($"File opened: {relativePath}");
Services\FormattingServices.cs (3)
18TestServices.Logger.Log("Formatting document via command palette..."); 20TestServices.Logger.Log("Format Document command executed"); 22TestServices.Logger.Log("Editor is dirty after formatting");
Services\PlaywrightService.cs (19)
35TestServices.Logger.Log("Cannot take screenshot - page not connected"); 42TestServices.Logger.Log("Cannot take screenshot - ScreenshotsDir not configured"); 62TestServices.Logger.Log($"Screenshot saved: {filepath}"); 67TestServices.Logger.Log($"Failed to take screenshot: {ex.Message}"); 78TestServices.Logger.Log("Ensuring Playwright browsers are installed..."); 96TestServices.Logger.Log($"Connecting to VS Code via CDP: {cdpUrl}"); 105TestServices.Logger.Log($"CDP connection attempt ({11 - retries}/10)..."); 119TestServices.Logger.Log("CDP connection established, looking for workspace page..."); 127TestServices.Logger.Log("Connected to VS Code workspace window successfully"); 134TestServices.Logger.Log("Connected to VS Code (fallback to first page)"); 139TestServices.Logger.Log($"Failed to connect (attempt {11 - retries}), retrying... ({ex.GetType().Name}: {ex.Message})"); 150TestServices.Logger.Log($"Looking for workspace page with folder: {workspaceName}"); 170TestServices.Logger.Log($"Found VS Code page with title: {title}"); 174TestServices.Logger.Log("Matched workspace by title"); 183TestServices.Logger.Log($"Explorer shows: {explorerText}"); 186TestServices.Logger.Log("Matched workspace by explorer"); 193TestServices.Logger.Log($"Error checking page: {ex.Message}"); 200TestServices.Logger.Log("Only one VS Code page found, using it"); 204TestServices.Logger.Log($"Found {pagesWithWorkbench.Count} VS Code pages, could not determine correct one");
Services\RazorService.cs (8)
20TestServices.Logger.Log("Waiting for Razor language server to be ready (checking semantic tokens)..."); 26TestServices.Logger.Log($"Razor ready check attempt {attempt}..."); 50TestServices.Logger.Log("Token inspector did not show razorComponentElement"); 68TestServices.Logger.Log($"Razor language server is ready - semantic tokens verified (attempt {attempt})"); 72TestServices.Logger.Log($"Razor tokens not yet available (attempt {attempt}), retrying..."); 80TestServices.Logger.Log($"Razor ready check attempt {attempt} failed: {ex.Message}"); 147TestServices.Logger.Log("Token inspector content not found or no razorComponentElement"); 151TestServices.Logger.Log($"Found razorComponentElement in token inspector");
Services\VSCodeIntegrationTestBase.cs (21)
42TestServices.Logger.Log($"Test '{testName}' failed: {ex.Message}"); 56TestServices.Logger.Log($"Environment: DISPLAY={Environment.GetEnvironmentVariable("DISPLAY") ?? "(not set)"}"); 57TestServices.Logger.Log($"OS: {Environment.OSVersion}"); 58TestServices.Logger.Log($"Initialization timeout: {settings.InitializationTimeout}"); 71TestServices.Logger.Log($"{currentStep}..."); 73TestServices.Logger.Log($"{currentStep} - Complete"); 77TestServices.Logger.Log($"{currentStep}..."); 79TestServices.Logger.Log($"{currentStep} - Complete"); 83TestServices.Logger.Log($"{currentStep}..."); 85TestServices.Logger.Log($"{currentStep} - Complete"); 89TestServices.Logger.Log($"{currentStep}..."); 91TestServices.Logger.Log($"{currentStep} - Complete"); 95TestServices.Logger.Log($"{currentStep}..."); 99TestServices.Logger.Log($"{currentStep} - Complete"); 103TestServices.Logger.Log($"{currentStep}..."); 105TestServices.Logger.Log($"{currentStep} - Complete"); 109TestServices.Logger.Log($"{currentStep}..."); 112TestServices.Logger.Log($"{currentStep} - Complete"); 114TestServices.Logger.Log("Test initialization completed successfully"); 119TestServices.Logger.Log($"FATAL: {message}"); 127TestServices.Logger.Log($"FATAL: Test initialization failed during {currentStep}: {ex.Message}");
Services\VSCodeService.cs (38)
71testServices.Logger.Log("C# extension already installed"); 83testServices.Logger.Log($"Workspace directory verified: {workspacePath}"); 84testServices.Logger.Log($"Workspace contents: {string.Join(", ", Directory.GetFileSystemEntries(workspacePath).Select(Path.GetFileName))}"); 97testServices.Logger.Log($"Launching VS Code: {cliPath} {processArgs}"); 113testServices.Logger.Log("Waiting for VS Code debugging port to open..."); 145testServices.Logger.Log("VS Code debugging port is ready"); 155testServices.Logger.Log($"VS Code CLI exited with code {process.ExitCode}"); 156testServices.Logger.Log($"stdout: {stdout}"); 157testServices.Logger.Log($"stderr: {stderr}"); 167testServices.Logger.Log("VS Code CLI exited successfully after spawning the application"); 180testServices.Logger.Log("Stopping VS Code process..."); 183testServices.Logger.Log("VS Code process stopped."); 204testServices.Logger.Log($"Clearing VS Code logs directory: {logsDir}"); 206testServices.Logger.Log("VS Code logs cleared."); 210testServices.Logger.Log($"Warning: Failed to clear logs directory: {ex.Message}"); 224testServices.Logger.Log("Cannot collect logs - FailureLogsDir not configured"); 231testServices.Logger.Log($"No VS Code logs found at: {logsDir ?? "(null)"}"); 242testServices.Logger.Log($"Collecting logs for failed test '{testName}' to: {testLogsDir}"); 248testServices.Logger.Log($"Collected {files.Length} log files for test '{testName}'"); 255testServices.Logger.Log($" C# Extension log: {Path.GetRelativePath(testLogsDir, file)}"); 261testServices.Logger.Log($"Warning: Failed to collect logs: {ex.Message}"); 377testServices.Logger.Log($"Configured user settings at: {settingsPath}"); 394testServices.Logger.Log("Cleared global storage"); 398testServices.Logger.Log($"Could not clear global storage: {ex.Message}"); 409testServices.Logger.Log("Cleared workspace storage"); 413testServices.Logger.Log($"Could not clear workspace storage: {ex.Message}"); 424testServices.Logger.Log("Cleared backups"); 428testServices.Logger.Log($"Could not clear backups: {ex.Message}"); 470testServices.Logger.Log("Waiting for VS Code workbench to load..."); 481testServices.Logger.Log("Workbench loaded, waiting for extensions..."); 496testServices.Logger.Log("Warning: Status bar not found, continuing..."); 507testServices.Logger.Log("Waiting for C# LSP to be ready..."); 520testServices.Logger.Log("C# status bar item found"); 525testServices.Logger.Log("C# status bar item not found, trying alternative detection..."); 547testServices.Logger.Log("Language mode indicator found"); 552testServices.Logger.Log("Language mode indicator not found"); 569testServices.Logger.Log("No loading indicators present"); 577testServices.Logger.Log("C# LSP ready check complete");
Services\VSCodeService.Installer.cs (22)
28testServices.Logger.Log($"VS Code already installed at: {vscodeDir}"); 37testServices.Logger.Log("VS Code installation appears corrupted, re-downloading..."); 44testServices.Logger.Log($"Warning: Failed to delete corrupted installation: {ex.Message}"); 48testServices.Logger.Log($"Downloading VS Code to: {vscodeDir}"); 58testServices.Logger.Log($"Downloading from: {downloadUrl}"); 66testServices.Logger.Log("Extracting VS Code..."); 78testServices.Logger.Log($"VS Code installed successfully: {executablePath}"); 91testServices.Logger.Log($"CLI not found at: {cliPath}"); 127testServices.Logger.Log($"VS Code version: {version.Trim()}"); 132testServices.Logger.Log($"VS Code validation failed (exit {process.ExitCode}): {stderr}"); 137testServices.Logger.Log($"VS Code validation error: {ex.Message}"); 147testServices.Logger.Log($"Installing extension: {extensionId}{(preRelease ? " (pre-release)" : "")}"); 166testServices.Logger.Log($"Using CLI: {cliPath}"); 167testServices.Logger.Log($"CLI exists: {File.Exists(cliPath)}"); 189testServices.Logger.Log($"Running: {startInfo.FileName} {startInfo.Arguments}"); 206testServices.Logger.Log($"Extension install exit code: {process.ExitCode}"); 210testServices.Logger.Log($"Extension install output: {output}"); 215testServices.Logger.Log($"Extension install stderr: {error}"); 223testServices.Logger.Log($"Extension {extensionId} installed successfully"); 279testServices.Logger.Log($"Checking extensions: {cliPath} {string.Join(" ", args)}"); 291testServices.Logger.Log($"Installed extensions: {output.Trim()}"); 302testServices.Logger.Log("Timeout checking extensions, assuming not installed");
Services\WorkspaceService.cs (7)
33TestServices.Logger.Log($"Creating test workspace at: {_workspacePath}"); 57TestServices.Logger.Log($"dotnet new output: {output}"); 58TestServices.Logger.Log($"dotnet new error: {error}"); 62TestServices.Logger.Log("Test workspace created successfully"); 65TestServices.Logger.Log("Restoring packages..."); 92TestServices.Logger.Log("Packages restored"); 105TestServices.Logger.Log("Workspace cleaned up");