We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e8277 commit e7076f9Copy full SHA for e7076f9
extensions/ql-vscode/src/variant-analysis/view-autofixes.ts
@@ -662,3 +662,14 @@ function execAutofix(
662
}
663
});
664
665
+
666
+/**
667
+ * Creates a new file path by appending the given suffix.
668
+ * @param filePath The original file path.
669
+ * @param suffix The suffix to append to the file name (before the extension).
670
+ * @returns The new file path with the suffix appended.
671
+ */
672
+function appendSuffixToFilePath(filePath: string, suffix: string): string {
673
+ const { dir, name, ext } = parse(filePath);
674
+ return join(dir, `${name}-${suffix}${ext}`);
675
+}
0 commit comments