@theia/scm 1.45.1 → 1.46.0-next.72
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 +31 -31
- package/lib/browser/decorations/scm-decorations-service.d.ts +14 -14
- package/lib/browser/decorations/scm-decorations-service.js +101 -101
- package/lib/browser/decorations/scm-navigator-decorator.d.ts +25 -25
- package/lib/browser/decorations/scm-navigator-decorator.js +132 -132
- package/lib/browser/decorations/scm-tab-bar-decorator.d.ts +17 -17
- package/lib/browser/decorations/scm-tab-bar-decorator.js +93 -93
- package/lib/browser/dirty-diff/content-lines.d.ts +12 -12
- package/lib/browser/dirty-diff/content-lines.js +106 -106
- package/lib/browser/dirty-diff/content-lines.spec.d.ts +1 -1
- package/lib/browser/dirty-diff/content-lines.spec.js +39 -39
- package/lib/browser/dirty-diff/diff-computer.d.ts +29 -29
- package/lib/browser/dirty-diff/diff-computer.js +102 -102
- package/lib/browser/dirty-diff/diff-computer.spec.d.ts +1 -1
- package/lib/browser/dirty-diff/diff-computer.spec.js +315 -315
- package/lib/browser/dirty-diff/dirty-diff-decorator.d.ts +14 -14
- package/lib/browser/dirty-diff/dirty-diff-decorator.js +98 -98
- package/lib/browser/dirty-diff/dirty-diff-module.d.ts +3 -3
- package/lib/browser/dirty-diff/dirty-diff-module.js +24 -24
- package/lib/browser/scm-amend-component.d.ts +123 -123
- package/lib/browser/scm-amend-component.js +463 -463
- package/lib/browser/scm-amend-widget.d.ts +20 -20
- package/lib/browser/scm-amend-widget.js +101 -101
- package/lib/browser/scm-avatar-service.d.ts +3 -3
- package/lib/browser/scm-avatar-service.js +36 -36
- package/lib/browser/scm-commit-widget.d.ts +52 -52
- package/lib/browser/scm-commit-widget.js +199 -199
- package/lib/browser/scm-context-key-service.d.ts +10 -10
- package/lib/browser/scm-context-key-service.js +58 -58
- package/lib/browser/scm-contribution.d.ts +83 -83
- package/lib/browser/scm-contribution.js +356 -356
- package/lib/browser/scm-frontend-module.d.ts +6 -6
- package/lib/browser/scm-frontend-module.js +130 -130
- package/lib/browser/scm-groups-tree-model.d.ts +14 -14
- package/lib/browser/scm-groups-tree-model.js +97 -97
- package/lib/browser/scm-input.d.ts +53 -53
- package/lib/browser/scm-input.js +127 -127
- package/lib/browser/scm-layout-migrations.d.ts +9 -9
- package/lib/browser/scm-layout-migrations.js +79 -79
- package/lib/browser/scm-no-repository-widget.d.ts +8 -8
- package/lib/browser/scm-no-repository-widget.js +49 -49
- package/lib/browser/scm-preferences.d.ts +11 -11
- package/lib/browser/scm-preferences.js +51 -51
- package/lib/browser/scm-provider.d.ts +58 -58
- package/lib/browser/scm-provider.js +19 -19
- package/lib/browser/scm-quick-open-service.d.ts +11 -11
- package/lib/browser/scm-quick-open-service.js +73 -73
- package/lib/browser/scm-repository.d.ts +17 -17
- package/lib/browser/scm-repository.js +41 -41
- package/lib/browser/scm-service.d.ts +26 -26
- package/lib/browser/scm-service.js +108 -108
- package/lib/browser/scm-tree-label-provider.d.ts +7 -7
- package/lib/browser/scm-tree-label-provider.js +57 -57
- package/lib/browser/scm-tree-model.d.ts +74 -74
- package/lib/browser/scm-tree-model.js +351 -351
- package/lib/browser/scm-tree-widget.d.ts +208 -208
- package/lib/browser/scm-tree-widget.js +703 -703
- package/lib/browser/scm-widget.d.ts +40 -40
- package/lib/browser/scm-widget.js +218 -218
- package/package.json +6 -6
- package/src/browser/decorations/scm-decorations-service.ts +78 -78
- package/src/browser/decorations/scm-navigator-decorator.ts +121 -121
- package/src/browser/decorations/scm-tab-bar-decorator.ts +83 -83
- package/src/browser/dirty-diff/content-lines.spec.ts +42 -42
- package/src/browser/dirty-diff/content-lines.ts +112 -112
- package/src/browser/dirty-diff/diff-computer.spec.ts +387 -387
- package/src/browser/dirty-diff/diff-computer.ts +129 -129
- package/src/browser/dirty-diff/dirty-diff-decorator.ts +107 -107
- package/src/browser/dirty-diff/dirty-diff-module.ts +24 -24
- package/src/browser/scm-amend-component.tsx +600 -600
- package/src/browser/scm-amend-widget.tsx +77 -77
- package/src/browser/scm-avatar-service.ts +27 -27
- package/src/browser/scm-commit-widget.tsx +215 -215
- package/src/browser/scm-context-key-service.ts +46 -46
- package/src/browser/scm-contribution.ts +361 -361
- package/src/browser/scm-frontend-module.ts +149 -149
- package/src/browser/scm-groups-tree-model.ts +78 -78
- package/src/browser/scm-input.ts +164 -164
- package/src/browser/scm-layout-migrations.ts +64 -64
- package/src/browser/scm-no-repository-widget.tsx +41 -41
- package/src/browser/scm-preferences.ts +63 -63
- package/src/browser/scm-provider.ts +91 -91
- package/src/browser/scm-quick-open-service.ts +48 -48
- package/src/browser/scm-repository.ts +52 -52
- package/src/browser/scm-service.ts +108 -108
- package/src/browser/scm-tree-label-provider.ts +44 -44
- package/src/browser/scm-tree-model.ts +405 -405
- package/src/browser/scm-tree-widget.tsx +838 -838
- package/src/browser/scm-widget.tsx +204 -204
- package/src/browser/style/dirty-diff-decorator.css +52 -52
- package/src/browser/style/dirty-diff.css +50 -50
- package/src/browser/style/index.css +271 -271
- package/src/browser/style/scm-amend-component.css +94 -94
- package/src/browser/style/scm.svg +4 -4
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { AbstractViewContribution, FrontendApplicationContribution, LabelProvider, StatusBar, StatusBarEntry, KeybindingRegistry, ViewContainerTitleOptions, StylingParticipant, ColorTheme, CssStyleCollector } from '@theia/core/lib/browser';
|
|
2
|
-
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
3
|
-
import { CommandRegistry, DisposableCollection, CommandService } from '@theia/core/lib/common';
|
|
4
|
-
import { ContextKeyService, ContextKey } from '@theia/core/lib/browser/context-key-service';
|
|
5
|
-
import { ScmService } from './scm-service';
|
|
6
|
-
import { ScmWidget } from '../browser/scm-widget';
|
|
7
|
-
import { ScmQuickOpenService } from './scm-quick-open-service';
|
|
8
|
-
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
|
|
9
|
-
import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
|
|
10
|
-
import { ScmCommand } from './scm-provider';
|
|
11
|
-
import { ScmDecorationsService } from '../browser/decorations/scm-decorations-service';
|
|
12
|
-
export declare const SCM_WIDGET_FACTORY_ID: string;
|
|
13
|
-
export declare const SCM_VIEW_CONTAINER_ID = "scm-view-container";
|
|
14
|
-
export declare const SCM_VIEW_CONTAINER_TITLE_OPTIONS: ViewContainerTitleOptions;
|
|
15
|
-
export declare namespace SCM_COMMANDS {
|
|
16
|
-
const CHANGE_REPOSITORY: {
|
|
17
|
-
id: string;
|
|
18
|
-
category: string;
|
|
19
|
-
originalCategory: string;
|
|
20
|
-
label: string;
|
|
21
|
-
originalLabel: string;
|
|
22
|
-
};
|
|
23
|
-
const ACCEPT_INPUT: {
|
|
24
|
-
id: string;
|
|
25
|
-
};
|
|
26
|
-
const TREE_VIEW_MODE: {
|
|
27
|
-
id: string;
|
|
28
|
-
tooltip: string;
|
|
29
|
-
iconClass: string;
|
|
30
|
-
originalLabel: string;
|
|
31
|
-
label: string;
|
|
32
|
-
};
|
|
33
|
-
const LIST_VIEW_MODE: {
|
|
34
|
-
id: string;
|
|
35
|
-
tooltip: string;
|
|
36
|
-
iconClass: string;
|
|
37
|
-
originalLabel: string;
|
|
38
|
-
label: string;
|
|
39
|
-
};
|
|
40
|
-
const COLLAPSE_ALL: {
|
|
41
|
-
id: string;
|
|
42
|
-
category: string;
|
|
43
|
-
originalCategory: string;
|
|
44
|
-
tooltip: string;
|
|
45
|
-
iconClass: string;
|
|
46
|
-
label: string;
|
|
47
|
-
originalLabel: string;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export declare namespace ScmColors {
|
|
51
|
-
const editorGutterModifiedBackground = "editorGutter.modifiedBackground";
|
|
52
|
-
const editorGutterAddedBackground = "editorGutter.addedBackground";
|
|
53
|
-
const editorGutterDeletedBackground = "editorGutter.deletedBackground";
|
|
54
|
-
}
|
|
55
|
-
export declare class ScmContribution extends AbstractViewContribution<ScmWidget> implements FrontendApplicationContribution, TabBarToolbarContribution, ColorContribution, StylingParticipant {
|
|
56
|
-
protected readonly statusBar: StatusBar;
|
|
57
|
-
protected readonly scmService: ScmService;
|
|
58
|
-
protected readonly scmQuickOpenService: ScmQuickOpenService;
|
|
59
|
-
protected readonly labelProvider: LabelProvider;
|
|
60
|
-
protected readonly commands: CommandService;
|
|
61
|
-
protected readonly commandRegistry: CommandRegistry;
|
|
62
|
-
protected readonly contextKeys: ContextKeyService;
|
|
63
|
-
protected readonly scmDecorationsService: ScmDecorationsService;
|
|
64
|
-
protected scmFocus: ContextKey<boolean>;
|
|
65
|
-
constructor();
|
|
66
|
-
protected init(): void;
|
|
67
|
-
initializeLayout(): Promise<void>;
|
|
68
|
-
onStart(): void;
|
|
69
|
-
protected updateContextKeys(): void;
|
|
70
|
-
registerCommands(commandRegistry: CommandRegistry): void;
|
|
71
|
-
registerToolbarItems(registry: TabBarToolbarRegistry): void;
|
|
72
|
-
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
73
|
-
protected acceptInput(): Promise<void>;
|
|
74
|
-
protected acceptInputCommand(): ScmCommand | undefined;
|
|
75
|
-
protected readonly statusBarDisposable: DisposableCollection;
|
|
76
|
-
protected updateStatusBar(): void;
|
|
77
|
-
protected setStatusBarEntry(id: string, entry: StatusBarEntry): void;
|
|
78
|
-
/**
|
|
79
|
-
* It should be aligned with https://github.com/microsoft/vscode/blob/0dfa355b3ad185a6289ba28a99c141ab9e72d2be/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts#L808
|
|
80
|
-
*/
|
|
81
|
-
registerColors(colors: ColorRegistry): void;
|
|
82
|
-
registerThemeStyle(theme: ColorTheme, collector: CssStyleCollector): void;
|
|
83
|
-
}
|
|
1
|
+
import { AbstractViewContribution, FrontendApplicationContribution, LabelProvider, StatusBar, StatusBarEntry, KeybindingRegistry, ViewContainerTitleOptions, StylingParticipant, ColorTheme, CssStyleCollector } from '@theia/core/lib/browser';
|
|
2
|
+
import { TabBarToolbarContribution, TabBarToolbarRegistry } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
|
|
3
|
+
import { CommandRegistry, DisposableCollection, CommandService } from '@theia/core/lib/common';
|
|
4
|
+
import { ContextKeyService, ContextKey } from '@theia/core/lib/browser/context-key-service';
|
|
5
|
+
import { ScmService } from './scm-service';
|
|
6
|
+
import { ScmWidget } from '../browser/scm-widget';
|
|
7
|
+
import { ScmQuickOpenService } from './scm-quick-open-service';
|
|
8
|
+
import { ColorContribution } from '@theia/core/lib/browser/color-application-contribution';
|
|
9
|
+
import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
|
|
10
|
+
import { ScmCommand } from './scm-provider';
|
|
11
|
+
import { ScmDecorationsService } from '../browser/decorations/scm-decorations-service';
|
|
12
|
+
export declare const SCM_WIDGET_FACTORY_ID: string;
|
|
13
|
+
export declare const SCM_VIEW_CONTAINER_ID = "scm-view-container";
|
|
14
|
+
export declare const SCM_VIEW_CONTAINER_TITLE_OPTIONS: ViewContainerTitleOptions;
|
|
15
|
+
export declare namespace SCM_COMMANDS {
|
|
16
|
+
const CHANGE_REPOSITORY: {
|
|
17
|
+
id: string;
|
|
18
|
+
category: string;
|
|
19
|
+
originalCategory: string;
|
|
20
|
+
label: string;
|
|
21
|
+
originalLabel: string;
|
|
22
|
+
};
|
|
23
|
+
const ACCEPT_INPUT: {
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
const TREE_VIEW_MODE: {
|
|
27
|
+
id: string;
|
|
28
|
+
tooltip: string;
|
|
29
|
+
iconClass: string;
|
|
30
|
+
originalLabel: string;
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
const LIST_VIEW_MODE: {
|
|
34
|
+
id: string;
|
|
35
|
+
tooltip: string;
|
|
36
|
+
iconClass: string;
|
|
37
|
+
originalLabel: string;
|
|
38
|
+
label: string;
|
|
39
|
+
};
|
|
40
|
+
const COLLAPSE_ALL: {
|
|
41
|
+
id: string;
|
|
42
|
+
category: string;
|
|
43
|
+
originalCategory: string;
|
|
44
|
+
tooltip: string;
|
|
45
|
+
iconClass: string;
|
|
46
|
+
label: string;
|
|
47
|
+
originalLabel: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export declare namespace ScmColors {
|
|
51
|
+
const editorGutterModifiedBackground = "editorGutter.modifiedBackground";
|
|
52
|
+
const editorGutterAddedBackground = "editorGutter.addedBackground";
|
|
53
|
+
const editorGutterDeletedBackground = "editorGutter.deletedBackground";
|
|
54
|
+
}
|
|
55
|
+
export declare class ScmContribution extends AbstractViewContribution<ScmWidget> implements FrontendApplicationContribution, TabBarToolbarContribution, ColorContribution, StylingParticipant {
|
|
56
|
+
protected readonly statusBar: StatusBar;
|
|
57
|
+
protected readonly scmService: ScmService;
|
|
58
|
+
protected readonly scmQuickOpenService: ScmQuickOpenService;
|
|
59
|
+
protected readonly labelProvider: LabelProvider;
|
|
60
|
+
protected readonly commands: CommandService;
|
|
61
|
+
protected readonly commandRegistry: CommandRegistry;
|
|
62
|
+
protected readonly contextKeys: ContextKeyService;
|
|
63
|
+
protected readonly scmDecorationsService: ScmDecorationsService;
|
|
64
|
+
protected scmFocus: ContextKey<boolean>;
|
|
65
|
+
constructor();
|
|
66
|
+
protected init(): void;
|
|
67
|
+
initializeLayout(): Promise<void>;
|
|
68
|
+
onStart(): void;
|
|
69
|
+
protected updateContextKeys(): void;
|
|
70
|
+
registerCommands(commandRegistry: CommandRegistry): void;
|
|
71
|
+
registerToolbarItems(registry: TabBarToolbarRegistry): void;
|
|
72
|
+
registerKeybindings(keybindings: KeybindingRegistry): void;
|
|
73
|
+
protected acceptInput(): Promise<void>;
|
|
74
|
+
protected acceptInputCommand(): ScmCommand | undefined;
|
|
75
|
+
protected readonly statusBarDisposable: DisposableCollection;
|
|
76
|
+
protected updateStatusBar(): void;
|
|
77
|
+
protected setStatusBarEntry(id: string, entry: StatusBarEntry): void;
|
|
78
|
+
/**
|
|
79
|
+
* It should be aligned with https://github.com/microsoft/vscode/blob/0dfa355b3ad185a6289ba28a99c141ab9e72d2be/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.ts#L808
|
|
80
|
+
*/
|
|
81
|
+
registerColors(colors: ColorRegistry): void;
|
|
82
|
+
registerThemeStyle(theme: ColorTheme, collector: CssStyleCollector): void;
|
|
83
|
+
}
|
|
84
84
|
//# sourceMappingURL=scm-contribution.d.ts.map
|