Skip to content

Commit d68f268

Browse files
committed
attempt 4?
1 parent a9c281c commit d68f268

File tree

1 file changed

+31
-9
lines changed

1 file changed

+31
-9
lines changed

src/test/smoke/smartSend.smoke.test.ts

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,14 @@ suite('Smoke Test: Run Smart Selection and Advance Cursor', async () => {
6464
);
6565
vscode.window.activeTextEditor.selection = new vscode.Selection(fullRange.start, fullRange.end);
6666

67-
const selectedText = vscode.window.activeTextEditor.document.getText(vscode.window.activeTextEditor.selection);
68-
console.log(`[smartSend.smoke] Selected entire file (${selectedText.split('\\n').length} lines, ${selectedText.length} chars)`);
67+
const selectedText = vscode.window.activeTextEditor.document.getText(
68+
vscode.window.activeTextEditor.selection,
69+
);
70+
console.log(
71+
`[smartSend.smoke] Selected entire file (${selectedText.split('\\n').length} lines, ${
72+
selectedText.length
73+
} chars)`,
74+
);
6975

7076
// Wait a bit for the editor state to settle
7177
console.log(`[smartSend.smoke] Waiting 500ms for editor state to settle...`);
@@ -77,8 +83,12 @@ suite('Smoke Test: Run Smart Selection and Advance Cursor', async () => {
7783

7884
// Verify the active editor is correct before executing command
7985
if (vscode.window.activeTextEditor) {
80-
console.log(`[smartSend.smoke] Active editor before command: ${vscode.window.activeTextEditor.document.uri.fsPath}`);
81-
console.log(`[smartSend.smoke] Active editor language: ${vscode.window.activeTextEditor.document.languageId}`);
86+
console.log(
87+
`[smartSend.smoke] Active editor before command: ${vscode.window.activeTextEditor.document.uri.fsPath}`,
88+
);
89+
console.log(
90+
`[smartSend.smoke] Active editor language: ${vscode.window.activeTextEditor.document.languageId}`,
91+
);
8292
} else {
8393
console.error(`[smartSend.smoke] ERROR: No active text editor before command!`);
8494
}
@@ -100,9 +110,17 @@ suite('Smoke Test: Run Smart Selection and Advance Cursor', async () => {
100110
if (vscode.window.activeTextEditor) {
101111
const selectionAfterCmd = vscode.window.activeTextEditor.selection;
102112
const selectedText = vscode.window.activeTextEditor.document.getText(selectionAfterCmd);
103-
console.log(`[smartSend.smoke] Selection after command - start: (${selectionAfterCmd.start.line}, ${selectionAfterCmd.start.character}), end: (${selectionAfterCmd.end.line}, ${selectionAfterCmd.end.character})`);
104-
console.log(`[smartSend.smoke] Selected text after command (first 100 chars): "${selectedText.substring(0, 100).replace(/\n/g, '\\n')}"`);
105-
console.log(`[smartSend.smoke] Active editor document URI: ${vscode.window.activeTextEditor.document.uri.fsPath}`);
113+
console.log(
114+
`[smartSend.smoke] Selection after command - start: (${selectionAfterCmd.start.line}, ${selectionAfterCmd.start.character}), end: (${selectionAfterCmd.end.line}, ${selectionAfterCmd.end.character})`,
115+
);
116+
console.log(
117+
`[smartSend.smoke] Selected text after command (first 100 chars): "${selectedText
118+
.substring(0, 100)
119+
.replace(/\n/g, '\\n')}"`,
120+
);
121+
console.log(
122+
`[smartSend.smoke] Active editor document URI: ${vscode.window.activeTextEditor.document.uri.fsPath}`,
123+
);
106124
} else {
107125
console.error(`[smartSend.smoke] WARNING: No active text editor after command execution!`);
108126
}
@@ -151,9 +169,13 @@ suite('Smoke Test: Run Smart Selection and Advance Cursor', async () => {
151169

152170
// Check final editor state
153171
if (vscode.window.activeTextEditor) {
154-
console.error(`[smartSend.smoke] Final active editor: ${vscode.window.activeTextEditor.document.uri.fsPath}`);
172+
console.error(
173+
`[smartSend.smoke] Final active editor: ${vscode.window.activeTextEditor.document.uri.fsPath}`,
174+
);
155175
const finalSelection = vscode.window.activeTextEditor.selection;
156-
console.error(`[smartSend.smoke] Final selection - start: (${finalSelection.start.line}, ${finalSelection.start.character}), end: (${finalSelection.end.line}, ${finalSelection.end.character})`);
176+
console.error(
177+
`[smartSend.smoke] Final selection - start: (${finalSelection.start.line}, ${finalSelection.start.character}), end: (${finalSelection.end.line}, ${finalSelection.end.character})`,
178+
);
157179
}
158180

159181
// List directory contents

0 commit comments

Comments
 (0)