Skip to content

Commit

Permalink
Format code using prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
FractalBoy committed Jun 6, 2024
1 parent 205f977 commit ab5ec22
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
14 changes: 12 additions & 2 deletions src/commands/openConflict.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ export class OpenConflict extends Command {
this.runByRepository(selection[0].resourceUri, async (repo, result) => {
const info = await repo.repository.getInfo(result.fsPath);

if (!info.conflict || !info.conflict.curBaseFile || !info.conflict.prevWcFile || !info.conflict.prevBaseFile) {
if (
!info.conflict ||
!info.conflict.curBaseFile ||
!info.conflict.prevWcFile ||
!info.conflict.prevBaseFile
) {
return;
}

Expand All @@ -27,7 +32,12 @@ export class OpenConflict extends Command {
// TODO: _open.mergeEditor is not currently exposed to non-builtin VSCode extensions.
// Update the command when there is an externally facing API.
// See https://github.com/microsoft/vscode/tree/15bdea120dc16143a6ec01ad5f12bc273632a483/extensions/git/src/commands.ts#L748 for example usage.
await commands.executeCommand("_open.mergeEditor", { base, input1, input2, output: result });
await commands.executeCommand("_open.mergeEditor", {
base,
input1,
input2,
output: result
});
});
}
}
16 changes: 9 additions & 7 deletions src/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ export interface ISvnInfo {
conflict?: {
operation: string;
type: string;
version: [{
kind: string;
pathInRepos: string;
reposUrl: string;
revision: string;
side: string;
}];
version: [
{
kind: string;
pathInRepos: string;
reposUrl: string;
revision: string;
side: string;
}
];
prevBaseFile?: string;
prevWcFile?: string;
curBaseFile?: string;
Expand Down
2 changes: 1 addition & 1 deletion src/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Resource implements SourceControlResourceState {
private _renameResourceUri?: Uri,
private _props?: string,
private _remote: boolean = false
) { }
) {}

@memoize
get resourceUri(): Uri {
Expand Down

0 comments on commit ab5ec22

Please sign in to comment.