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