@trim21/personal-pi-extensions 0.0.140 → 0.0.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/workspace-guard.ts +2 -2
package/package.json
CHANGED
package/src/workspace-guard.ts
CHANGED
|
@@ -157,7 +157,7 @@ export async function buildDiffPreview(
|
|
|
157
157
|
const newContent = replace(normalized, pair.oldString, pair.newString, pair.replaceAll);
|
|
158
158
|
// The full path is shown in the dialog title, so the patch header only
|
|
159
159
|
// carries the file name.
|
|
160
|
-
return wrapDiff(generateUnifiedPatch(basename(resolvedPath), normalized, newContent));
|
|
160
|
+
return wrapDiff(generateUnifiedPatch(basename(resolvedPath), normalized, newContent, 2));
|
|
161
161
|
} catch {
|
|
162
162
|
const removed = pair.oldString.split("\n").map((line) => `-${line}`);
|
|
163
163
|
const added = pair.newString.split("\n").map((line) => `+${line}`);
|
|
@@ -168,7 +168,7 @@ export async function buildDiffPreview(
|
|
|
168
168
|
const newContent = applyChange(toolName, input, oldContent);
|
|
169
169
|
if (newContent === undefined) return undefined;
|
|
170
170
|
|
|
171
|
-
return wrapDiff(generateUnifiedPatch(basename(resolvedPath), oldContent, newContent));
|
|
171
|
+
return wrapDiff(generateUnifiedPatch(basename(resolvedPath), oldContent, newContent, 2));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
export default function (pi: ExtensionAPI) {
|