@theia/scm 1.53.0-next.5 → 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.
Files changed (41) hide show
  1. package/README.md +31 -31
  2. package/lib/browser/scm-commit-widget.js +1 -1
  3. package/lib/browser/scm-contribution.js +5 -5
  4. package/package.json +7 -7
  5. package/src/browser/decorations/scm-decorations-service.ts +102 -102
  6. package/src/browser/decorations/scm-navigator-decorator.ts +121 -121
  7. package/src/browser/decorations/scm-tab-bar-decorator.ts +83 -83
  8. package/src/browser/dirty-diff/content-lines.spec.ts +42 -42
  9. package/src/browser/dirty-diff/content-lines.ts +121 -121
  10. package/src/browser/dirty-diff/diff-computer.spec.ts +455 -455
  11. package/src/browser/dirty-diff/diff-computer.ts +177 -177
  12. package/src/browser/dirty-diff/dirty-diff-decorator.ts +114 -114
  13. package/src/browser/dirty-diff/dirty-diff-module.ts +33 -33
  14. package/src/browser/dirty-diff/dirty-diff-navigator.ts +288 -288
  15. package/src/browser/dirty-diff/dirty-diff-widget.ts +364 -364
  16. package/src/browser/scm-amend-component.tsx +600 -600
  17. package/src/browser/scm-amend-widget.tsx +77 -77
  18. package/src/browser/scm-avatar-service.ts +27 -27
  19. package/src/browser/scm-colors.ts +21 -21
  20. package/src/browser/scm-commit-widget.tsx +215 -215
  21. package/src/browser/scm-context-key-service.ts +46 -46
  22. package/src/browser/scm-contribution.ts +452 -452
  23. package/src/browser/scm-frontend-module.ts +149 -149
  24. package/src/browser/scm-groups-tree-model.ts +78 -78
  25. package/src/browser/scm-input.ts +164 -164
  26. package/src/browser/scm-layout-migrations.ts +64 -64
  27. package/src/browser/scm-no-repository-widget.tsx +41 -41
  28. package/src/browser/scm-preferences.ts +63 -63
  29. package/src/browser/scm-provider.ts +91 -91
  30. package/src/browser/scm-quick-open-service.ts +48 -48
  31. package/src/browser/scm-repository.ts +52 -52
  32. package/src/browser/scm-service.ts +108 -108
  33. package/src/browser/scm-tree-label-provider.ts +44 -44
  34. package/src/browser/scm-tree-model.ts +405 -405
  35. package/src/browser/scm-tree-widget.tsx +838 -838
  36. package/src/browser/scm-widget.tsx +204 -204
  37. package/src/browser/style/dirty-diff-decorator.css +53 -53
  38. package/src/browser/style/dirty-diff.css +50 -50
  39. package/src/browser/style/index.css +271 -271
  40. package/src/browser/style/scm-amend-component.css +94 -94
  41. package/src/browser/style/scm.svg +4 -4
@@ -1,271 +1,271 @@
1
- /********************************************************************************
2
- * Copyright (C) 2019 Red Hat, Inc. 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
- .theia-scm-commit {
18
- overflow: hidden;
19
- font-size: var(--theia-ui-font-size1);
20
- max-height: calc(100% - var(--theia-border-width));
21
- position: relative;
22
- padding: 5px 5px 0px 19px;
23
- }
24
-
25
- .theia-scm {
26
- box-sizing: border-box;
27
- height: 100%;
28
- }
29
-
30
- .groups-outer-container:focus {
31
- outline: 0;
32
- box-shadow: none;
33
- border: none;
34
- }
35
-
36
- .theia-scm .noWrapInfo {
37
- width: 100%;
38
- align-items: center;
39
- }
40
-
41
- .theia-scm:focus,
42
- .theia-scm :focus {
43
- outline: 0;
44
- box-shadow: none;
45
- border: none;
46
- }
47
-
48
- .theia-scm .space-between {
49
- justify-content: space-between;
50
- }
51
-
52
- .theia-scm .changesHeader {
53
- font-weight: bold;
54
- }
55
-
56
- .theia-scm .theia-scm-amend {
57
- margin: 5px 0;
58
- }
59
-
60
- .theia-scm #messageInputContainer {
61
- position: relative;
62
- }
63
-
64
- .theia-scm #repositoryListContainer {
65
- display: flex;
66
- margin-bottom: 5px;
67
- flex: 1;
68
- }
69
-
70
- .theia-scm .groups-outer-container {
71
- overflow-y: auto;
72
- width: 100%;
73
- flex-grow: 1;
74
- }
75
-
76
- .theia-scm .warn {
77
- background-color: var(--theia-inputValidation-warningBackground) !important;
78
- }
79
-
80
- .theia-scm-main-container {
81
- display: flex;
82
- flex-direction: column;
83
- height: 100%;
84
- }
85
-
86
- .theia-scm-input-message-container {
87
- display: flex;
88
- flex-direction: column;
89
- margin: 0px 0px 7px 0px;
90
- max-height: 400px;
91
- }
92
-
93
- .theia-scm-input-message-container textarea {
94
- line-height: var(--theia-content-line-height);
95
- resize: none;
96
- box-sizing: border-box;
97
- min-height: 32px;
98
- padding: 4px;
99
- border: none;
100
- }
101
-
102
- .theia-scm-input-message-container textarea:placeholder-shown {
103
- overflow: hidden;
104
- text-overflow: ellipsis;
105
- white-space: nowrap;
106
- }
107
-
108
- .theia-scm-input-message-container textarea:focus {
109
- outline: var(--theia-border-width) solid var(--theia-focusBorder);
110
- }
111
-
112
- .theia-scm-input-message {
113
- width: 100%;
114
- }
115
-
116
- .theia-scm-input-message-idle:not(:focus) {
117
- border-color: var(--theia-input-border);
118
- }
119
-
120
- .theia-scm-input-message-info {
121
- border-color: var(--theia-inputValidation-infoBorder) !important;
122
- }
123
-
124
- .theia-scm-input-message-success {
125
- border-color: var(--theia-successBackground) !important;
126
- }
127
-
128
- .theia-scm-input-message-warning {
129
- border-color: var(--theia-inputValidation-warningBorder) !important;
130
- }
131
-
132
- .theia-scm-input-message-error {
133
- border-color: var(--theia-inputValidation-errorBorder) !important;
134
- }
135
-
136
- .theia-scm-message,
137
- .theia-scm-input-validation-message {
138
- padding: 4px 4px 4px 4px;
139
- }
140
-
141
- .theia-scm-validation-message-info {
142
- background-color: var(--theia-inputValidation-infoBackground) !important;
143
- color: var(--theia-inputValidation-infoForeground);
144
- border: var(--theia-border-width) solid
145
- var(--theia-inputValidation-infoBorder);
146
- border-top: none; /* remove top border since the input declares it already */
147
- }
148
-
149
- .theia-scm-validation-message-success {
150
- background-color: var(--theia-successBackground) !important;
151
- color: var(--theia-inputValidation-warningBackground);
152
- }
153
-
154
- .theia-scm-message-warning,
155
- .theia-scm-validation-message-warning {
156
- background-color: var(--theia-inputValidation-warningBackground) !important;
157
- color: var(--theia-inputValidation-warningForeground);
158
- border: var(--theia-border-width) solid
159
- var(--theia-inputValidation-warningBorder);
160
- border-top: none; /* remove top border since the input declares it already */
161
- }
162
-
163
- .theia-scm-validation-message-error {
164
- background-color: var(--theia-inputValidation-errorBackground) !important;
165
- color: var(--theia-inputValidation-errorForeground);
166
- border: var(--theia-border-width) solid
167
- var(--theia-inputValidation-errorBorder);
168
- border-top: none; /* remove top border since the input declares it already */
169
- }
170
-
171
- .no-select:focus {
172
- outline: none;
173
- }
174
-
175
- .theia-scm .scmItem {
176
- font-size: var(--theia-ui-font-size1);
177
- display: flex;
178
- align-items: center;
179
- justify-content: space-between;
180
- height: var(--theia-content-line-height);
181
- line-height: var(--theia-content-line-height);
182
- padding: 0px calc(var(--theia-ui-padding) / 2);
183
- }
184
-
185
- .theia-scm .scmItem:hover {
186
- cursor: pointer;
187
- }
188
-
189
- .theia-scm:focus-within .scmItem:focus {
190
- background: var(--theia-list-focusBackground);
191
- color: var(--theia-list-focusForeground);
192
- }
193
-
194
- .theia-scm:not(:focus-within) .scmItem:not(:focus) {
195
- background: var(--theia-list-inactiveFocusBackground);
196
- }
197
-
198
- .theia-scm:focus-within .scmItem.theia-mod-selected {
199
- background: var(--theia-list-activeSelectionBackground);
200
- color: var(--theia-list-activeSelectionForeground);
201
- }
202
-
203
- .theia-scm:not(:focus-within) .scmItem.theia-mod-selected {
204
- background: var(--theia-list-inactiveSelectionBackground);
205
- color: var(--theia-list-inactiveSelectionForeground);
206
- }
207
-
208
- .theia-scm .scmItem .path {
209
- font-size: var(--theia-ui-font-size0);
210
- margin-left: var(--theia-ui-padding);
211
- opacity: 0.7;
212
- }
213
-
214
- .theia-scm .scmItem .status {
215
- width: 16px;
216
- text-align: center;
217
- padding-top: 2px;
218
- padding-bottom: 2px;
219
- font-size: var(--theia-ui-font-size0);
220
- }
221
-
222
- .theia-scm .decoration-icon {
223
- margin: 2px 0px;
224
- }
225
-
226
- .scm-change-count {
227
- float: right;
228
- }
229
-
230
- .scm-theia-header {
231
- display: flex;
232
- align-items: center;
233
- }
234
-
235
- .scm-theia-header:hover {
236
- cursor: pointer;
237
- }
238
-
239
- .theia-scm-inline-actions-container {
240
- display: flex;
241
- justify-content: flex-end;
242
- margin-left: 3px;
243
- min-height: 16px;
244
- }
245
-
246
- .theia-scm-inline-actions {
247
- display: flex;
248
- margin: 0 3px;
249
- }
250
-
251
- .theia-scm-inline-actions a {
252
- color: var(--theia-icon-foreground);
253
- }
254
-
255
- .theia-scm-inline-action {
256
- font-size: var(--theia-ui-font-size1);
257
- margin: 0 2px;
258
- cursor: pointer;
259
- display: flex;
260
- align-items: center;
261
- }
262
-
263
- .theia-scm-inline-action .open-file {
264
- height: var(--theia-icon-size);
265
- width: 12px;
266
- background: var(--theia-icon-open-file) no-repeat center center;
267
- }
268
-
269
- .theia-scm-panel {
270
- overflow: visible;
271
- }
1
+ /********************************************************************************
2
+ * Copyright (C) 2019 Red Hat, Inc. 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
+ .theia-scm-commit {
18
+ overflow: hidden;
19
+ font-size: var(--theia-ui-font-size1);
20
+ max-height: calc(100% - var(--theia-border-width));
21
+ position: relative;
22
+ padding: 5px 5px 0px 19px;
23
+ }
24
+
25
+ .theia-scm {
26
+ box-sizing: border-box;
27
+ height: 100%;
28
+ }
29
+
30
+ .groups-outer-container:focus {
31
+ outline: 0;
32
+ box-shadow: none;
33
+ border: none;
34
+ }
35
+
36
+ .theia-scm .noWrapInfo {
37
+ width: 100%;
38
+ align-items: center;
39
+ }
40
+
41
+ .theia-scm:focus,
42
+ .theia-scm :focus {
43
+ outline: 0;
44
+ box-shadow: none;
45
+ border: none;
46
+ }
47
+
48
+ .theia-scm .space-between {
49
+ justify-content: space-between;
50
+ }
51
+
52
+ .theia-scm .changesHeader {
53
+ font-weight: bold;
54
+ }
55
+
56
+ .theia-scm .theia-scm-amend {
57
+ margin: 5px 0;
58
+ }
59
+
60
+ .theia-scm #messageInputContainer {
61
+ position: relative;
62
+ }
63
+
64
+ .theia-scm #repositoryListContainer {
65
+ display: flex;
66
+ margin-bottom: 5px;
67
+ flex: 1;
68
+ }
69
+
70
+ .theia-scm .groups-outer-container {
71
+ overflow-y: auto;
72
+ width: 100%;
73
+ flex-grow: 1;
74
+ }
75
+
76
+ .theia-scm .warn {
77
+ background-color: var(--theia-inputValidation-warningBackground) !important;
78
+ }
79
+
80
+ .theia-scm-main-container {
81
+ display: flex;
82
+ flex-direction: column;
83
+ height: 100%;
84
+ }
85
+
86
+ .theia-scm-input-message-container {
87
+ display: flex;
88
+ flex-direction: column;
89
+ margin: 0px 0px 7px 0px;
90
+ max-height: 400px;
91
+ }
92
+
93
+ .theia-scm-input-message-container textarea {
94
+ line-height: var(--theia-content-line-height);
95
+ resize: none;
96
+ box-sizing: border-box;
97
+ min-height: 32px;
98
+ padding: 4px;
99
+ border: none;
100
+ }
101
+
102
+ .theia-scm-input-message-container textarea:placeholder-shown {
103
+ overflow: hidden;
104
+ text-overflow: ellipsis;
105
+ white-space: nowrap;
106
+ }
107
+
108
+ .theia-scm-input-message-container textarea:focus {
109
+ outline: var(--theia-border-width) solid var(--theia-focusBorder);
110
+ }
111
+
112
+ .theia-scm-input-message {
113
+ width: 100%;
114
+ }
115
+
116
+ .theia-scm-input-message-idle:not(:focus) {
117
+ border-color: var(--theia-input-border);
118
+ }
119
+
120
+ .theia-scm-input-message-info {
121
+ border-color: var(--theia-inputValidation-infoBorder) !important;
122
+ }
123
+
124
+ .theia-scm-input-message-success {
125
+ border-color: var(--theia-successBackground) !important;
126
+ }
127
+
128
+ .theia-scm-input-message-warning {
129
+ border-color: var(--theia-inputValidation-warningBorder) !important;
130
+ }
131
+
132
+ .theia-scm-input-message-error {
133
+ border-color: var(--theia-inputValidation-errorBorder) !important;
134
+ }
135
+
136
+ .theia-scm-message,
137
+ .theia-scm-input-validation-message {
138
+ padding: 4px 4px 4px 4px;
139
+ }
140
+
141
+ .theia-scm-validation-message-info {
142
+ background-color: var(--theia-inputValidation-infoBackground) !important;
143
+ color: var(--theia-inputValidation-infoForeground);
144
+ border: var(--theia-border-width) solid
145
+ var(--theia-inputValidation-infoBorder);
146
+ border-top: none; /* remove top border since the input declares it already */
147
+ }
148
+
149
+ .theia-scm-validation-message-success {
150
+ background-color: var(--theia-successBackground) !important;
151
+ color: var(--theia-inputValidation-warningBackground);
152
+ }
153
+
154
+ .theia-scm-message-warning,
155
+ .theia-scm-validation-message-warning {
156
+ background-color: var(--theia-inputValidation-warningBackground) !important;
157
+ color: var(--theia-inputValidation-warningForeground);
158
+ border: var(--theia-border-width) solid
159
+ var(--theia-inputValidation-warningBorder);
160
+ border-top: none; /* remove top border since the input declares it already */
161
+ }
162
+
163
+ .theia-scm-validation-message-error {
164
+ background-color: var(--theia-inputValidation-errorBackground) !important;
165
+ color: var(--theia-inputValidation-errorForeground);
166
+ border: var(--theia-border-width) solid
167
+ var(--theia-inputValidation-errorBorder);
168
+ border-top: none; /* remove top border since the input declares it already */
169
+ }
170
+
171
+ .no-select:focus {
172
+ outline: none;
173
+ }
174
+
175
+ .theia-scm .scmItem {
176
+ font-size: var(--theia-ui-font-size1);
177
+ display: flex;
178
+ align-items: center;
179
+ justify-content: space-between;
180
+ height: var(--theia-content-line-height);
181
+ line-height: var(--theia-content-line-height);
182
+ padding: 0px calc(var(--theia-ui-padding) / 2);
183
+ }
184
+
185
+ .theia-scm .scmItem:hover {
186
+ cursor: pointer;
187
+ }
188
+
189
+ .theia-scm:focus-within .scmItem:focus {
190
+ background: var(--theia-list-focusBackground);
191
+ color: var(--theia-list-focusForeground);
192
+ }
193
+
194
+ .theia-scm:not(:focus-within) .scmItem:not(:focus) {
195
+ background: var(--theia-list-inactiveFocusBackground);
196
+ }
197
+
198
+ .theia-scm:focus-within .scmItem.theia-mod-selected {
199
+ background: var(--theia-list-activeSelectionBackground);
200
+ color: var(--theia-list-activeSelectionForeground);
201
+ }
202
+
203
+ .theia-scm:not(:focus-within) .scmItem.theia-mod-selected {
204
+ background: var(--theia-list-inactiveSelectionBackground);
205
+ color: var(--theia-list-inactiveSelectionForeground);
206
+ }
207
+
208
+ .theia-scm .scmItem .path {
209
+ font-size: var(--theia-ui-font-size0);
210
+ margin-left: var(--theia-ui-padding);
211
+ opacity: 0.7;
212
+ }
213
+
214
+ .theia-scm .scmItem .status {
215
+ width: 16px;
216
+ text-align: center;
217
+ padding-top: 2px;
218
+ padding-bottom: 2px;
219
+ font-size: var(--theia-ui-font-size0);
220
+ }
221
+
222
+ .theia-scm .decoration-icon {
223
+ margin: 2px 0px;
224
+ }
225
+
226
+ .scm-change-count {
227
+ float: right;
228
+ }
229
+
230
+ .scm-theia-header {
231
+ display: flex;
232
+ align-items: center;
233
+ }
234
+
235
+ .scm-theia-header:hover {
236
+ cursor: pointer;
237
+ }
238
+
239
+ .theia-scm-inline-actions-container {
240
+ display: flex;
241
+ justify-content: flex-end;
242
+ margin-left: 3px;
243
+ min-height: 16px;
244
+ }
245
+
246
+ .theia-scm-inline-actions {
247
+ display: flex;
248
+ margin: 0 3px;
249
+ }
250
+
251
+ .theia-scm-inline-actions a {
252
+ color: var(--theia-icon-foreground);
253
+ }
254
+
255
+ .theia-scm-inline-action {
256
+ font-size: var(--theia-ui-font-size1);
257
+ margin: 0 2px;
258
+ cursor: pointer;
259
+ display: flex;
260
+ align-items: center;
261
+ }
262
+
263
+ .theia-scm-inline-action .open-file {
264
+ height: var(--theia-icon-size);
265
+ width: 12px;
266
+ background: var(--theia-icon-open-file) no-repeat center center;
267
+ }
268
+
269
+ .theia-scm-panel {
270
+ overflow: visible;
271
+ }