From 5a3a5359809151d8b18aba132d5a4341de35c566 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 17 Mar 2025 09:57:06 -0700 Subject: [PATCH] more search output updates --- extensions/vscode/src/VsCodeIde.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/vscode/src/VsCodeIde.ts b/extensions/vscode/src/VsCodeIde.ts index 9d194f22a..6972ad9ff 100644 --- a/extensions/vscode/src/VsCodeIde.ts +++ b/extensions/vscode/src/VsCodeIde.ts @@ -584,13 +584,13 @@ class VsCodeIde implements IDE { return line?.match(/^ */)?.[0].length ?? 0; } - function formatLine(line: string, sectionIndent: number): string { - return line.replace(new RegExp(`^[ ]{0,${n}}`), ""); - } + // function formatLine(line: string, sectionIndent: number): string { + // return line.replace(new RegExp(`^[ ]{0,${sectionIndent}}`), ""); + // } let leading = false; let sectionIndent = 0; - let sectionTrim = 0; + // let sectionTrim = 0; for (const line of dirResults.split("\n").filter((l) => !!l)) { if (line.startsWith("./") || line === "--") { leading = true; @@ -604,7 +604,7 @@ class VsCodeIde implements IDE { // Record spacing at first non-single char line leading = false; sectionIndent = countLeadingSpaces(line); - keepLines.push(formatLine(line, sectionTrim)); + keepLines.push(line); } continue; } @@ -615,7 +615,7 @@ class VsCodeIde implements IDE { // relevantThing // if (countLeadingSpaces(line) >= sectionIndent) { - keepLines.push(formatLine(line, sectionIndent)); + keepLines.push(line); } } results.push(keepLines.join("\n"));