@theia/scm-extra 1.53.0-next.4 → 1.53.0-next.55
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/README.md +32 -32
- package/package.json +8 -8
- package/src/browser/history/index.ts +21 -21
- package/src/browser/history/scm-history-constants.ts +69 -69
- package/src/browser/history/scm-history-contribution.ts +90 -90
- package/src/browser/history/scm-history-frontend-module.ts +36 -36
- package/src/browser/history/scm-history-provider.ts +27 -27
- package/src/browser/history/scm-history-widget.tsx +571 -571
- package/src/browser/scm-extra-contribution.ts +18 -18
- package/src/browser/scm-extra-frontend-module.ts +27 -27
- package/src/browser/scm-extra-layout-migrations.ts +32 -32
- package/src/browser/scm-file-change-label-provider.ts +73 -73
- package/src/browser/scm-file-change-node.ts +45 -45
- package/src/browser/scm-navigable-list-widget.tsx +197 -197
- package/src/browser/style/history.css +164 -164
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2019 Arm and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
import { EDITOR_CONTEXT_MENU } from '@theia/editor/lib/browser';
|
|
17
|
-
|
|
18
|
-
export const EDITOR_CONTEXT_MENU_SCM = [...EDITOR_CONTEXT_MENU, '3_scm'];
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 Arm and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
import { EDITOR_CONTEXT_MENU } from '@theia/editor/lib/browser';
|
|
17
|
+
|
|
18
|
+
export const EDITOR_CONTEXT_MENU_SCM = [...EDITOR_CONTEXT_MENU, '3_scm'];
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2019 Arm and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
-
import { bindScmHistoryModule } from './history/scm-history-frontend-module';
|
|
19
|
-
import { ScmFileChangeLabelProvider } from './scm-file-change-label-provider';
|
|
20
|
-
import { LabelProviderContribution } from '@theia/core/lib/browser';
|
|
21
|
-
|
|
22
|
-
export default new ContainerModule(bind => {
|
|
23
|
-
bindScmHistoryModule(bind);
|
|
24
|
-
|
|
25
|
-
bind(ScmFileChangeLabelProvider).toSelf().inSingletonScope();
|
|
26
|
-
bind(LabelProviderContribution).toService(ScmFileChangeLabelProvider);
|
|
27
|
-
});
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 Arm and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { ContainerModule } from '@theia/core/shared/inversify';
|
|
18
|
+
import { bindScmHistoryModule } from './history/scm-history-frontend-module';
|
|
19
|
+
import { ScmFileChangeLabelProvider } from './scm-file-change-label-provider';
|
|
20
|
+
import { LabelProviderContribution } from '@theia/core/lib/browser';
|
|
21
|
+
|
|
22
|
+
export default new ContainerModule(bind => {
|
|
23
|
+
bindScmHistoryModule(bind);
|
|
24
|
+
|
|
25
|
+
bind(ScmFileChangeLabelProvider).toSelf().inSingletonScope();
|
|
26
|
+
bind(LabelProviderContribution).toService(ScmFileChangeLabelProvider);
|
|
27
|
+
});
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2020 Arm and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { ApplicationShellLayoutMigration, WidgetDescription, ApplicationShellLayoutMigrationContext } from '@theia/core/lib/browser/shell/shell-layout-restorer';
|
|
19
|
-
import { SCM_HISTORY_ID } from './history/scm-history-contribution';
|
|
20
|
-
|
|
21
|
-
@injectable()
|
|
22
|
-
export class ScmExtraLayoutVersion4Migration implements ApplicationShellLayoutMigration {
|
|
23
|
-
readonly layoutVersion = 4.0;
|
|
24
|
-
onWillInflateWidget(desc: WidgetDescription, { parent }: ApplicationShellLayoutMigrationContext): WidgetDescription | undefined {
|
|
25
|
-
if (desc.constructionOptions.factoryId === 'git-history') {
|
|
26
|
-
desc.constructionOptions.factoryId = SCM_HISTORY_ID;
|
|
27
|
-
return desc;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return undefined;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2020 Arm and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
+
import { ApplicationShellLayoutMigration, WidgetDescription, ApplicationShellLayoutMigrationContext } from '@theia/core/lib/browser/shell/shell-layout-restorer';
|
|
19
|
+
import { SCM_HISTORY_ID } from './history/scm-history-contribution';
|
|
20
|
+
|
|
21
|
+
@injectable()
|
|
22
|
+
export class ScmExtraLayoutVersion4Migration implements ApplicationShellLayoutMigration {
|
|
23
|
+
readonly layoutVersion = 4.0;
|
|
24
|
+
onWillInflateWidget(desc: WidgetDescription, { parent }: ApplicationShellLayoutMigrationContext): WidgetDescription | undefined {
|
|
25
|
+
if (desc.constructionOptions.factoryId === 'git-history') {
|
|
26
|
+
desc.constructionOptions.factoryId = SCM_HISTORY_ID;
|
|
27
|
+
return desc;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2019 TypeFox and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
|
-
import { LabelProviderContribution, DidChangeLabelEvent, LabelProvider } from '@theia/core/lib/browser/label-provider';
|
|
19
|
-
import { ScmFileChangeNode } from './scm-file-change-node';
|
|
20
|
-
import URI from '@theia/core/lib/common/uri';
|
|
21
|
-
import { ScmService } from '@theia/scm/lib/browser/scm-service';
|
|
22
|
-
|
|
23
|
-
@injectable()
|
|
24
|
-
export class ScmFileChangeLabelProvider implements LabelProviderContribution {
|
|
25
|
-
|
|
26
|
-
@inject(LabelProvider)
|
|
27
|
-
protected readonly labelProvider: LabelProvider;
|
|
28
|
-
|
|
29
|
-
@inject(ScmService)
|
|
30
|
-
protected readonly scmService: ScmService;
|
|
31
|
-
|
|
32
|
-
canHandle(element: object): number {
|
|
33
|
-
return ScmFileChangeNode.is(element) ? 100 : 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
getIcon(node: ScmFileChangeNode): string {
|
|
37
|
-
return this.labelProvider.getIcon(new URI(node.fileChange.uri));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
getName(node: ScmFileChangeNode): string {
|
|
41
|
-
return this.labelProvider.getName(new URI(node.fileChange.uri));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
getDescription(node: ScmFileChangeNode): string {
|
|
45
|
-
return this.relativePath(new URI(node.fileChange.uri).parent);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
affects(node: ScmFileChangeNode, event: DidChangeLabelEvent): boolean {
|
|
49
|
-
return event.affects(new URI(node.fileChange.uri));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
getCaption(node: ScmFileChangeNode): string {
|
|
53
|
-
return node.fileChange.getCaption();
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
relativePath(uri: URI | string): string {
|
|
57
|
-
const parsedUri = typeof uri === 'string' ? new URI(uri) : uri;
|
|
58
|
-
const repo = this.scmService.findRepository(parsedUri);
|
|
59
|
-
if (repo) {
|
|
60
|
-
const repositoryUri = new URI(repo.provider.rootUri);
|
|
61
|
-
const relativePath = repositoryUri.relative(parsedUri);
|
|
62
|
-
if (relativePath) {
|
|
63
|
-
return relativePath.toString();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return this.labelProvider.getLongName(parsedUri);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
getStatusCaption(node: ScmFileChangeNode): string {
|
|
70
|
-
return node.fileChange.getStatusCaption();
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2019 TypeFox and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
|
+
import { LabelProviderContribution, DidChangeLabelEvent, LabelProvider } from '@theia/core/lib/browser/label-provider';
|
|
19
|
+
import { ScmFileChangeNode } from './scm-file-change-node';
|
|
20
|
+
import URI from '@theia/core/lib/common/uri';
|
|
21
|
+
import { ScmService } from '@theia/scm/lib/browser/scm-service';
|
|
22
|
+
|
|
23
|
+
@injectable()
|
|
24
|
+
export class ScmFileChangeLabelProvider implements LabelProviderContribution {
|
|
25
|
+
|
|
26
|
+
@inject(LabelProvider)
|
|
27
|
+
protected readonly labelProvider: LabelProvider;
|
|
28
|
+
|
|
29
|
+
@inject(ScmService)
|
|
30
|
+
protected readonly scmService: ScmService;
|
|
31
|
+
|
|
32
|
+
canHandle(element: object): number {
|
|
33
|
+
return ScmFileChangeNode.is(element) ? 100 : 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
getIcon(node: ScmFileChangeNode): string {
|
|
37
|
+
return this.labelProvider.getIcon(new URI(node.fileChange.uri));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
getName(node: ScmFileChangeNode): string {
|
|
41
|
+
return this.labelProvider.getName(new URI(node.fileChange.uri));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
getDescription(node: ScmFileChangeNode): string {
|
|
45
|
+
return this.relativePath(new URI(node.fileChange.uri).parent);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
affects(node: ScmFileChangeNode, event: DidChangeLabelEvent): boolean {
|
|
49
|
+
return event.affects(new URI(node.fileChange.uri));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
getCaption(node: ScmFileChangeNode): string {
|
|
53
|
+
return node.fileChange.getCaption();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
relativePath(uri: URI | string): string {
|
|
57
|
+
const parsedUri = typeof uri === 'string' ? new URI(uri) : uri;
|
|
58
|
+
const repo = this.scmService.findRepository(parsedUri);
|
|
59
|
+
if (repo) {
|
|
60
|
+
const repositoryUri = new URI(repo.provider.rootUri);
|
|
61
|
+
const relativePath = repositoryUri.relative(parsedUri);
|
|
62
|
+
if (relativePath) {
|
|
63
|
+
return relativePath.toString();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return this.labelProvider.getLongName(parsedUri);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
getStatusCaption(node: ScmFileChangeNode): string {
|
|
70
|
+
return node.fileChange.getStatusCaption();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
// *****************************************************************************
|
|
2
|
-
// Copyright (C) 2018 Ericsson and others.
|
|
3
|
-
//
|
|
4
|
-
// This program and the accompanying materials are made available under the
|
|
5
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
-
//
|
|
8
|
-
// This Source Code may also be made available under the following Secondary
|
|
9
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
-
// with the GNU Classpath Exception which is available at
|
|
12
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
-
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
-
// *****************************************************************************
|
|
16
|
-
|
|
17
|
-
import { ScmCommit } from '@theia/scm/lib/browser/scm-provider';
|
|
18
|
-
import URI from '@theia/core/lib/common/uri';
|
|
19
|
-
import { isObject } from '@theia/core/lib/common';
|
|
20
|
-
|
|
21
|
-
export interface ScmFileChangeNode {
|
|
22
|
-
readonly fileChange: ScmFileChange;
|
|
23
|
-
readonly commitId: string;
|
|
24
|
-
selected?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export namespace ScmFileChangeNode {
|
|
27
|
-
export function is(node: unknown): node is ScmFileChangeNode {
|
|
28
|
-
return isObject(node) && 'fileChange' in node && 'commitId' in node;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface ScmHistoryCommit extends ScmCommit {
|
|
33
|
-
readonly commitDetailUri: URI;
|
|
34
|
-
readonly fileChanges: ScmFileChange[];
|
|
35
|
-
readonly commitDetailOptions: {};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface ScmFileChange {
|
|
39
|
-
readonly uri: string;
|
|
40
|
-
getCaption(): string;
|
|
41
|
-
getStatusCaption(): string;
|
|
42
|
-
getStatusAbbreviation(): string;
|
|
43
|
-
getClassNameForStatus(): string;
|
|
44
|
-
getUriToOpen(): URI;
|
|
45
|
-
}
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2018 Ericsson and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
import { ScmCommit } from '@theia/scm/lib/browser/scm-provider';
|
|
18
|
+
import URI from '@theia/core/lib/common/uri';
|
|
19
|
+
import { isObject } from '@theia/core/lib/common';
|
|
20
|
+
|
|
21
|
+
export interface ScmFileChangeNode {
|
|
22
|
+
readonly fileChange: ScmFileChange;
|
|
23
|
+
readonly commitId: string;
|
|
24
|
+
selected?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export namespace ScmFileChangeNode {
|
|
27
|
+
export function is(node: unknown): node is ScmFileChangeNode {
|
|
28
|
+
return isObject(node) && 'fileChange' in node && 'commitId' in node;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface ScmHistoryCommit extends ScmCommit {
|
|
33
|
+
readonly commitDetailUri: URI;
|
|
34
|
+
readonly fileChanges: ScmFileChange[];
|
|
35
|
+
readonly commitDetailOptions: {};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface ScmFileChange {
|
|
39
|
+
readonly uri: string;
|
|
40
|
+
getCaption(): string;
|
|
41
|
+
getStatusCaption(): string;
|
|
42
|
+
getStatusAbbreviation(): string;
|
|
43
|
+
getClassNameForStatus(): string;
|
|
44
|
+
getUriToOpen(): URI;
|
|
45
|
+
}
|