Skip to content

Commit 4e201d6

Browse files
committed
Format code using prettier
1 parent 898d86b commit 4e201d6

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

src/commands/openConflict.ts

+12-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ export class OpenConflict extends Command {
1616
this.runByRepository(selection[0].resourceUri, async (repo, result) => {
1717
const info = await repo.repository.getInfo(result.fsPath);
1818

19-
if (!info.conflict || !info.conflict.curBaseFile || !info.conflict.prevWcFile || !info.conflict.prevBaseFile) {
19+
if (
20+
!info.conflict ||
21+
!info.conflict.curBaseFile ||
22+
!info.conflict.prevWcFile ||
23+
!info.conflict.prevBaseFile
24+
) {
2025
return;
2126
}
2227

@@ -27,7 +32,12 @@ export class OpenConflict extends Command {
2732
// TODO: _open.mergeEditor is not currently exposed to non-builtin VSCode extensions.
2833
// Update the command when there is an externally facing API.
2934
// See https://github.com/microsoft/vscode/tree/15bdea120dc16143a6ec01ad5f12bc273632a483/extensions/git/src/commands.ts#L748 for example usage.
30-
await commands.executeCommand("_open.mergeEditor", { base, input1, input2, output: result });
35+
await commands.executeCommand("_open.mergeEditor", {
36+
base,
37+
input1,
38+
input2,
39+
output: result
40+
});
3141
});
3242
}
3343
}

src/common/types.ts

+9-7
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ export interface ISvnInfo {
4747
conflict?: {
4848
operation: string;
4949
type: string;
50-
version: [{
51-
kind: string;
52-
pathInRepos: string;
53-
reposUrl: string;
54-
revision: string;
55-
side: string;
56-
}];
50+
version: [
51+
{
52+
kind: string;
53+
pathInRepos: string;
54+
reposUrl: string;
55+
revision: string;
56+
side: string;
57+
}
58+
];
5759
prevBaseFile?: string;
5860
prevWcFile?: string;
5961
curBaseFile?: string;

src/resource.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class Resource implements SourceControlResourceState {
4949
private _renameResourceUri?: Uri,
5050
private _props?: string,
5151
private _remote: boolean = false
52-
) { }
52+
) {}
5353

5454
@memoize
5555
get resourceUri(): Uri {

0 commit comments

Comments
 (0)