Skip to content

Commit

Permalink
- F added CodiumReporter
Browse files Browse the repository at this point in the history
See #173 for orginal contribution

Co-Authored-By: Clare Macrae <[email protected]>
Co-Authored-By: Steven <[email protected]>
  • Loading branch information
3 people committed May 7, 2024
1 parent 7e8bc0d commit 62c8cab
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions lib/Reporting/Reporters/codiumReporter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import GenericDiffReporterBase from "../GenericDiffReporterBase";
import {platform} from "../../osTools";
import {searchForExecutable} from "../../AUtils";

export default class CodiumReporter extends GenericDiffReporterBase {
constructor() {
super("codium");

if (platform.isWindows) {
this.exePath = searchForExecutable("codium.cmd");
} else {
this.exePath = searchForExecutable("codium");
}
}

report(approved, received, options) {
autils.createEmptyFileIfNotExists(approved);

options.cmdArgs = ["-n", "--diff", received, approved];
options.cmdOptionOverrides = {
detached: true,
};

return super.report(approved, received, options);
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Any of the following reporter may suite your needs. Some support images, some on
| `vimdiff` | | &#10003; | &#10003; | |
| `visualstudio` | [Visual Studio Diff tool](http://msdn.microsoft.com/en-us/library/bb385990.aspx) | &#10003; | |
| `vscode` | [Visual Studio Code Diff tool](https://code.visualstudio.com/) | &#10003; | &#10003; |
| `vscodium` | [VSCodium Diff tool](https://vscodium.com/) | &#10003; | &#10003; |
### Custom Reporter
Expand Down

0 comments on commit 62c8cab

Please sign in to comment.