@theia/scm-extra 1.67.0-next.3 → 1.67.0-next.56
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 +1 -1
- package/package.json +7 -7
- package/lib/browser/history/index.d.ts +0 -4
- package/lib/browser/history/index.d.ts.map +0 -1
- package/lib/browser/history/index.js +0 -23
- package/lib/browser/history/index.js.map +0 -1
- package/lib/browser/history/scm-history-constants.d.ts +0 -39
- package/lib/browser/history/scm-history-constants.d.ts.map +0 -1
- package/lib/browser/history/scm-history-constants.js +0 -42
- package/lib/browser/history/scm-history-constants.js.map +0 -1
- package/lib/browser/history/scm-history-contribution.d.ts +0 -19
- package/lib/browser/history/scm-history-contribution.d.ts.map +0 -1
- package/lib/browser/history/scm-history-contribution.js +0 -94
- package/lib/browser/history/scm-history-contribution.js.map +0 -1
- package/lib/browser/history/scm-history-frontend-module.d.ts +0 -4
- package/lib/browser/history/scm-history-frontend-module.d.ts.map +0 -1
- package/lib/browser/history/scm-history-frontend-module.js +0 -34
- package/lib/browser/history/scm-history-frontend-module.js.map +0 -1
- package/lib/browser/history/scm-history-provider.d.ts +0 -9
- package/lib/browser/history/scm-history-provider.d.ts.map +0 -1
- package/lib/browser/history/scm-history-provider.js +0 -26
- package/lib/browser/history/scm-history-provider.js.map +0 -1
- package/lib/browser/history/scm-history-widget.d.ts +0 -90
- package/lib/browser/history/scm-history-widget.d.ts.map +0 -1
- package/lib/browser/history/scm-history-widget.js +0 -480
- package/lib/browser/history/scm-history-widget.js.map +0 -1
- package/lib/browser/scm-extra-contribution.d.ts +0 -2
- package/lib/browser/scm-extra-contribution.d.ts.map +0 -1
- package/lib/browser/scm-extra-contribution.js +0 -21
- package/lib/browser/scm-extra-contribution.js.map +0 -1
- package/lib/browser/scm-extra-frontend-module.d.ts +0 -4
- package/lib/browser/scm-extra-frontend-module.d.ts.map +0 -1
- package/lib/browser/scm-extra-frontend-module.js +0 -27
- package/lib/browser/scm-extra-frontend-module.js.map +0 -1
- package/lib/browser/scm-extra-layout-migrations.d.ts +0 -6
- package/lib/browser/scm-extra-layout-migrations.d.ts.map +0 -1
- package/lib/browser/scm-extra-layout-migrations.js +0 -38
- package/lib/browser/scm-extra-layout-migrations.js.map +0 -1
- package/lib/browser/scm-file-change-label-provider.d.ts +0 -17
- package/lib/browser/scm-file-change-label-provider.d.ts.map +0 -1
- package/lib/browser/scm-file-change-label-provider.js +0 -72
- package/lib/browser/scm-file-change-label-provider.js.map +0 -1
- package/lib/browser/scm-file-change-node.d.ts +0 -24
- package/lib/browser/scm-file-change-node.d.ts.map +0 -1
- package/lib/browser/scm-file-change-node.js +0 -27
- package/lib/browser/scm-file-change-node.js.map +0 -1
- package/lib/browser/scm-navigable-list-widget.d.ts +0 -57
- package/lib/browser/scm-navigable-list-widget.d.ts.map +0 -1
- package/lib/browser/scm-navigable-list-widget.js +0 -172
- package/lib/browser/scm-navigable-list-widget.js.map +0 -1
|
@@ -1,480 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2018 TypeFox and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ScmHistoryList = exports.ScmHistoryWidget = exports.ScmHistorySupport = exports.ScmCommitNode = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const core_1 = require("@theia/core");
|
|
22
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
23
|
-
const cancellation_1 = require("@theia/core/lib/common/cancellation");
|
|
24
|
-
const react_virtuoso_1 = require("@theia/core/shared/react-virtuoso");
|
|
25
|
-
const uri_1 = require("@theia/core/lib/common/uri");
|
|
26
|
-
const scm_file_change_node_1 = require("../scm-file-change-node");
|
|
27
|
-
const scm_avatar_service_1 = require("@theia/scm/lib/browser/scm-avatar-service");
|
|
28
|
-
const scm_navigable_list_widget_1 = require("../scm-navigable-list-widget");
|
|
29
|
-
const React = require("@theia/core/shared/react");
|
|
30
|
-
const alert_message_1 = require("@theia/core/lib/browser/widgets/alert-message");
|
|
31
|
-
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
32
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
33
|
-
const scm_history_provider_1 = require("./scm-history-provider");
|
|
34
|
-
const throttle = require("@theia/core/shared/lodash.throttle");
|
|
35
|
-
const scm_history_constants_1 = require("./scm-history-constants");
|
|
36
|
-
Object.defineProperty(exports, "ScmCommitNode", { enumerable: true, get: function () { return scm_history_constants_1.ScmCommitNode; } });
|
|
37
|
-
Object.defineProperty(exports, "ScmHistorySupport", { enumerable: true, get: function () { return scm_history_constants_1.ScmHistorySupport; } });
|
|
38
|
-
let ScmHistoryWidget = class ScmHistoryWidget extends scm_navigable_list_widget_1.ScmNavigableListWidget {
|
|
39
|
-
constructor(openerService, shell, fileService, avatarService, widgetManager) {
|
|
40
|
-
super();
|
|
41
|
-
this.openerService = openerService;
|
|
42
|
-
this.shell = shell;
|
|
43
|
-
this.fileService = fileService;
|
|
44
|
-
this.avatarService = avatarService;
|
|
45
|
-
this.widgetManager = widgetManager;
|
|
46
|
-
this.toDisposeOnRepositoryChange = new core_1.DisposableCollection();
|
|
47
|
-
this.toDisposeOnRefresh = new core_1.DisposableCollection();
|
|
48
|
-
this.setContent = throttle((options) => this.doSetContent(options), 100);
|
|
49
|
-
this.loadMoreRows = (index) => this.doLoadMoreRows(index);
|
|
50
|
-
this.renderCommit = (commit) => this.doRenderCommit(commit);
|
|
51
|
-
this.renderFileChangeList = (fileChange) => this.doRenderFileChangeList(fileChange);
|
|
52
|
-
this.id = scm_history_constants_1.SCM_HISTORY_ID;
|
|
53
|
-
this.scrollContainer = 'scm-history-list-container';
|
|
54
|
-
this.title.label = scm_history_constants_1.SCM_HISTORY_LABEL;
|
|
55
|
-
this.title.caption = scm_history_constants_1.SCM_HISTORY_LABEL;
|
|
56
|
-
this.title.iconClass = (0, browser_1.codicon)('history');
|
|
57
|
-
this.title.closable = true;
|
|
58
|
-
this.addClass('theia-scm');
|
|
59
|
-
this.addClass('theia-scm-history');
|
|
60
|
-
this.status = { state: 'loading' };
|
|
61
|
-
this.resetState();
|
|
62
|
-
this.cancelIndicator = new cancellation_1.CancellationTokenSource();
|
|
63
|
-
}
|
|
64
|
-
init() {
|
|
65
|
-
this.refreshOnRepositoryChange();
|
|
66
|
-
this.toDispose.push(this.scmService.onDidChangeSelectedRepository(() => this.refreshOnRepositoryChange()));
|
|
67
|
-
this.toDispose.push(this.labelProvider.onDidChange(event => {
|
|
68
|
-
if (this.scmNodes.some(node => scm_file_change_node_1.ScmFileChangeNode.is(node) && event.affects(new uri_1.default(node.fileChange.uri)))) {
|
|
69
|
-
this.update();
|
|
70
|
-
}
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
|
-
refreshOnRepositoryChange() {
|
|
74
|
-
this.toDisposeOnRepositoryChange.dispose();
|
|
75
|
-
const repository = this.scmService.selectedRepository;
|
|
76
|
-
if (repository && scm_history_provider_1.ScmHistoryProvider.is(repository.provider)) {
|
|
77
|
-
this.historySupport = repository.provider.historySupport;
|
|
78
|
-
if (this.historySupport) {
|
|
79
|
-
this.toDisposeOnRepositoryChange.push(this.historySupport.onDidChangeHistory(() => this.setContent(this.options)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
this.historySupport = undefined;
|
|
84
|
-
}
|
|
85
|
-
this.setContent(this.options);
|
|
86
|
-
// If switching repository, discard options because they are specific to a repository
|
|
87
|
-
this.options = this.createHistoryOptions();
|
|
88
|
-
this.refresh();
|
|
89
|
-
}
|
|
90
|
-
createHistoryOptions() {
|
|
91
|
-
return {
|
|
92
|
-
maxCount: scm_history_constants_1.SCM_HISTORY_MAX_COUNT
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
refresh() {
|
|
96
|
-
this.toDisposeOnRefresh.dispose();
|
|
97
|
-
this.toDispose.push(this.toDisposeOnRefresh);
|
|
98
|
-
const repository = this.scmService.selectedRepository;
|
|
99
|
-
this.title.label = scm_history_constants_1.SCM_HISTORY_LABEL;
|
|
100
|
-
if (repository) {
|
|
101
|
-
this.title.label += ': ' + repository.provider.label;
|
|
102
|
-
}
|
|
103
|
-
const area = this.shell.getAreaFor(this);
|
|
104
|
-
if (area === 'left') {
|
|
105
|
-
this.shell.leftPanelHandler.refresh();
|
|
106
|
-
}
|
|
107
|
-
else if (area === 'right') {
|
|
108
|
-
this.shell.rightPanelHandler.refresh();
|
|
109
|
-
}
|
|
110
|
-
this.update();
|
|
111
|
-
if (repository) {
|
|
112
|
-
this.toDisposeOnRefresh.push(repository.onDidChange(() => this.update()));
|
|
113
|
-
// render synchronously to avoid cursor jumping
|
|
114
|
-
// see https://stackoverflow.com/questions/28922275/in-reactjs-why-does-setstate-behave-differently-when-called-synchronously/28922465#28922465
|
|
115
|
-
this.toDisposeOnRefresh.push(repository.input.onDidChange(() => this.setContent(this.options)));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
onAfterAttach(msg) {
|
|
119
|
-
super.onAfterAttach(msg);
|
|
120
|
-
this.addListNavigationKeyListeners(this.node);
|
|
121
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
122
|
-
this.addEventListener(this.node, 'ps-scroll-y', (e) => {
|
|
123
|
-
var _a;
|
|
124
|
-
if ((_a = this.listView) === null || _a === void 0 ? void 0 : _a.list) {
|
|
125
|
-
const { scrollTop } = e.target;
|
|
126
|
-
this.listView.list.scrollTo({
|
|
127
|
-
top: scrollTop
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
async doSetContent(options) {
|
|
133
|
-
this.resetState(options);
|
|
134
|
-
if (options && options.uri) {
|
|
135
|
-
try {
|
|
136
|
-
const fileStat = await this.fileService.resolve(new uri_1.default(options.uri));
|
|
137
|
-
this.singleFileMode = !fileStat.isDirectory;
|
|
138
|
-
}
|
|
139
|
-
catch {
|
|
140
|
-
this.singleFileMode = true;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
await this.addCommits(options);
|
|
144
|
-
this.onDataReady();
|
|
145
|
-
if (this.scmNodes.length > 0) {
|
|
146
|
-
this.selectNode(this.scmNodes[0]);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
resetState(options) {
|
|
150
|
-
this.options = options || this.createHistoryOptions();
|
|
151
|
-
this.hasMoreCommits = true;
|
|
152
|
-
this.allowScrollToSelected = true;
|
|
153
|
-
}
|
|
154
|
-
async addCommits(options) {
|
|
155
|
-
const repository = this.scmService.selectedRepository;
|
|
156
|
-
this.cancelIndicator.cancel();
|
|
157
|
-
this.cancelIndicator = new cancellation_1.CancellationTokenSource();
|
|
158
|
-
const token = this.cancelIndicator.token;
|
|
159
|
-
if (repository) {
|
|
160
|
-
if (this.historySupport) {
|
|
161
|
-
try {
|
|
162
|
-
const history = await this.historySupport.getCommitHistory(options);
|
|
163
|
-
if (token.isCancellationRequested || !this.hasMoreCommits) {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
if (options && (options.maxCount && history.length < options.maxCount)) {
|
|
167
|
-
this.hasMoreCommits = false;
|
|
168
|
-
}
|
|
169
|
-
const avatarCache = new Map();
|
|
170
|
-
const commits = [];
|
|
171
|
-
for (const commit of history) {
|
|
172
|
-
const fileChangeNodes = [];
|
|
173
|
-
await Promise.all(commit.fileChanges.map(async (fileChange) => {
|
|
174
|
-
fileChangeNodes.push({
|
|
175
|
-
fileChange, commitId: commit.id
|
|
176
|
-
});
|
|
177
|
-
}));
|
|
178
|
-
let avatarUrl = '';
|
|
179
|
-
if (avatarCache.has(commit.authorEmail)) {
|
|
180
|
-
avatarUrl = avatarCache.get(commit.authorEmail);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
avatarUrl = await this.avatarService.getAvatar(commit.authorEmail);
|
|
184
|
-
avatarCache.set(commit.authorEmail, avatarUrl);
|
|
185
|
-
}
|
|
186
|
-
commits.push({
|
|
187
|
-
commitDetails: commit,
|
|
188
|
-
authorAvatar: avatarUrl,
|
|
189
|
-
fileChangeNodes,
|
|
190
|
-
expanded: false,
|
|
191
|
-
selected: false
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
this.status = { state: 'ready', commits };
|
|
195
|
-
}
|
|
196
|
-
catch (error) {
|
|
197
|
-
if (options && options.uri && repository) {
|
|
198
|
-
this.hasMoreCommits = false;
|
|
199
|
-
}
|
|
200
|
-
this.status = { state: 'error', errorMessage: React.createElement(React.Fragment, null,
|
|
201
|
-
" ",
|
|
202
|
-
error.message,
|
|
203
|
-
" ") };
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
this.status = { state: 'error', errorMessage: React.createElement(React.Fragment, null,
|
|
208
|
-
"History is not supported for ",
|
|
209
|
-
repository.provider.label,
|
|
210
|
-
" source control.") };
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
this.status = {
|
|
215
|
-
state: 'error',
|
|
216
|
-
errorMessage: React.createElement(React.Fragment, null, nls_1.nls.localizeByDefault('No source control providers registered.'))
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
async addOrRemoveFileChangeNodes(commit) {
|
|
221
|
-
const id = this.scmNodes.findIndex(node => node === commit);
|
|
222
|
-
if (commit.expanded) {
|
|
223
|
-
this.removeFileChangeNodes(commit, id);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
await this.addFileChangeNodes(commit, id);
|
|
227
|
-
}
|
|
228
|
-
commit.expanded = !commit.expanded;
|
|
229
|
-
this.update();
|
|
230
|
-
}
|
|
231
|
-
async addFileChangeNodes(commit, scmNodesArrayIndex) {
|
|
232
|
-
if (commit.fileChangeNodes) {
|
|
233
|
-
this.scmNodes.splice(scmNodesArrayIndex + 1, 0, ...commit.fileChangeNodes.map(node => Object.assign(node, { commitSha: commit.commitDetails.id })));
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
removeFileChangeNodes(commit, scmNodesArrayIndex) {
|
|
237
|
-
if (commit.fileChangeNodes) {
|
|
238
|
-
this.scmNodes.splice(scmNodesArrayIndex + 1, commit.fileChangeNodes.length);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
storeState() {
|
|
242
|
-
const { options, singleFileMode } = this;
|
|
243
|
-
return {
|
|
244
|
-
options,
|
|
245
|
-
singleFileMode
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
249
|
-
restoreState(oldState) {
|
|
250
|
-
this.options = oldState['options'];
|
|
251
|
-
this.options.maxCount = scm_history_constants_1.SCM_HISTORY_MAX_COUNT;
|
|
252
|
-
this.singleFileMode = oldState['singleFileMode'];
|
|
253
|
-
this.setContent(this.options);
|
|
254
|
-
}
|
|
255
|
-
onDataReady() {
|
|
256
|
-
if (this.status.state === 'ready') {
|
|
257
|
-
this.scmNodes = this.status.commits;
|
|
258
|
-
}
|
|
259
|
-
this.update();
|
|
260
|
-
}
|
|
261
|
-
render() {
|
|
262
|
-
let content;
|
|
263
|
-
switch (this.status.state) {
|
|
264
|
-
case 'ready':
|
|
265
|
-
content = React.createElement(React.Fragment, null,
|
|
266
|
-
this.renderHistoryHeader(),
|
|
267
|
-
this.renderCommitList());
|
|
268
|
-
break;
|
|
269
|
-
case 'error':
|
|
270
|
-
const reason = this.status.errorMessage;
|
|
271
|
-
let path = '';
|
|
272
|
-
if (this.options.uri) {
|
|
273
|
-
const relPathEncoded = this.scmLabelProvider.relativePath(this.options.uri);
|
|
274
|
-
const relPath = relPathEncoded ? `${decodeURIComponent(relPathEncoded)}` : '';
|
|
275
|
-
const repo = this.scmService.findRepository(new uri_1.default(this.options.uri));
|
|
276
|
-
const repoName = repo ? `${this.labelProvider.getName(new uri_1.default(repo.provider.rootUri))}` : '';
|
|
277
|
-
const relPathAndRepo = [relPath, repoName].filter(Boolean).join(` ${nls_1.nls.localize('theia/git/prepositionIn', 'in')} `);
|
|
278
|
-
path = `${relPathAndRepo}`;
|
|
279
|
-
}
|
|
280
|
-
content = React.createElement(alert_message_1.AlertMessage, { type: 'WARNING', header: nls_1.nls.localize('theia/git/noHistoryForError', 'There is no history available for {0}', `${path}`) }, reason);
|
|
281
|
-
break;
|
|
282
|
-
case 'loading':
|
|
283
|
-
content = React.createElement("div", { className: 'spinnerContainer' },
|
|
284
|
-
React.createElement("span", { className: `${(0, browser_1.codicon)('loading')} theia-animation-spin large-spinner` }));
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
return React.createElement("div", { className: 'history-container' }, content);
|
|
288
|
-
}
|
|
289
|
-
renderHistoryHeader() {
|
|
290
|
-
if (this.options.uri) {
|
|
291
|
-
const path = this.scmLabelProvider.relativePath(this.options.uri);
|
|
292
|
-
const fileName = path.split('/').pop();
|
|
293
|
-
return React.createElement("div", { className: 'diff-header' },
|
|
294
|
-
this.renderHeaderRow({ name: 'repository', value: this.getRepositoryLabel(this.options.uri) }),
|
|
295
|
-
this.renderHeaderRow({ name: 'file', value: fileName, title: path }),
|
|
296
|
-
React.createElement("div", { className: 'theia-header' }, "Commits"));
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
renderCommitList() {
|
|
300
|
-
const list = React.createElement("div", { className: 'listContainer', id: this.scrollContainer },
|
|
301
|
-
React.createElement(ScmHistoryList, { ref: listView => this.listView = (listView || undefined), rows: this.scmNodes, hasMoreRows: this.hasMoreCommits, loadMoreRows: this.loadMoreRows, renderCommit: this.renderCommit, renderFileChangeList: this.renderFileChangeList }));
|
|
302
|
-
this.allowScrollToSelected = true;
|
|
303
|
-
return list;
|
|
304
|
-
}
|
|
305
|
-
doLoadMoreRows(index) {
|
|
306
|
-
let resolver;
|
|
307
|
-
const promise = new Promise(resolve => resolver = resolve);
|
|
308
|
-
const lastRow = this.scmNodes[index - 1];
|
|
309
|
-
if (scm_history_constants_1.ScmCommitNode.is(lastRow)) {
|
|
310
|
-
const toRevision = lastRow.commitDetails.id;
|
|
311
|
-
this.addCommits({
|
|
312
|
-
range: { toRevision },
|
|
313
|
-
maxCount: scm_history_constants_1.SCM_HISTORY_MAX_COUNT,
|
|
314
|
-
uri: this.options.uri
|
|
315
|
-
}).then(() => {
|
|
316
|
-
this.allowScrollToSelected = false;
|
|
317
|
-
this.onDataReady();
|
|
318
|
-
resolver();
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
return promise;
|
|
322
|
-
}
|
|
323
|
-
doRenderCommit(commit) {
|
|
324
|
-
let expansionToggleIcon = (0, browser_1.codicon)('chevron-right');
|
|
325
|
-
if (commit && commit.expanded) {
|
|
326
|
-
expansionToggleIcon = (0, browser_1.codicon)('chevron-down');
|
|
327
|
-
}
|
|
328
|
-
return React.createElement("div", { className: `containerHead${commit.selected ? ' ' + browser_1.SELECTED_CLASS : ''}`, onClick: e => {
|
|
329
|
-
if (commit.selected && !this.singleFileMode) {
|
|
330
|
-
this.addOrRemoveFileChangeNodes(commit);
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
this.selectNode(commit);
|
|
334
|
-
}
|
|
335
|
-
e.preventDefault();
|
|
336
|
-
}, onDoubleClick: e => {
|
|
337
|
-
if (this.singleFileMode && commit.fileChangeNodes.length > 0) {
|
|
338
|
-
this.openFile(commit.fileChangeNodes[0].fileChange);
|
|
339
|
-
}
|
|
340
|
-
e.preventDefault();
|
|
341
|
-
} },
|
|
342
|
-
React.createElement("div", { className: 'headContent' },
|
|
343
|
-
React.createElement("div", { className: 'image-container' },
|
|
344
|
-
React.createElement("img", { className: 'gravatar', src: commit.authorAvatar })),
|
|
345
|
-
React.createElement("div", { className: `headLabelContainer${this.singleFileMode ? ' singleFileMode' : ''}` },
|
|
346
|
-
React.createElement("div", { className: 'headLabel noWrapInfo noselect' }, commit.commitDetails.summary),
|
|
347
|
-
React.createElement("div", { className: 'commitTime noWrapInfo noselect' }, commit.commitDetails.authorDateRelative + ' by ' + commit.commitDetails.authorName)),
|
|
348
|
-
React.createElement("div", { className: `${(0, browser_1.codicon)('eye')} detailButton`, onClick: () => this.openDetailWidget(commit) }),
|
|
349
|
-
!this.singleFileMode && React.createElement("div", { className: 'expansionToggle noselect' },
|
|
350
|
-
React.createElement("div", { className: 'toggle' },
|
|
351
|
-
React.createElement("div", { className: 'number' }, commit.commitDetails.fileChanges.length.toString()),
|
|
352
|
-
React.createElement("div", { className: 'icon ' + expansionToggleIcon })))));
|
|
353
|
-
}
|
|
354
|
-
async openDetailWidget(commitNode) {
|
|
355
|
-
const options = {
|
|
356
|
-
...commitNode.commitDetails.commitDetailOptions,
|
|
357
|
-
mode: 'reveal'
|
|
358
|
-
};
|
|
359
|
-
(0, browser_1.open)(this.openerService, commitNode.commitDetails.commitDetailUri, options);
|
|
360
|
-
}
|
|
361
|
-
doRenderFileChangeList(fileChange) {
|
|
362
|
-
const fileChangeElement = this.renderScmItem(fileChange, fileChange.commitId);
|
|
363
|
-
return fileChangeElement;
|
|
364
|
-
}
|
|
365
|
-
renderScmItem(change, commitSha) {
|
|
366
|
-
return React.createElement(scm_navigable_list_widget_1.ScmItemComponent, { key: change.fileChange.uri.toString(), labelProvider: this.labelProvider,
|
|
367
|
-
scmLabelProvider: this.scmLabelProvider,
|
|
368
|
-
change,
|
|
369
|
-
revealChange: () => this.openFile(change.fileChange),
|
|
370
|
-
selectNode: () => this.selectNode(change) });
|
|
371
|
-
}
|
|
372
|
-
navigateLeft() {
|
|
373
|
-
const selected = this.getSelected();
|
|
374
|
-
if (selected && this.status.state === 'ready') {
|
|
375
|
-
if (scm_history_constants_1.ScmCommitNode.is(selected)) {
|
|
376
|
-
const idx = this.status.commits.findIndex(c => c.commitDetails.id === selected.commitDetails.id);
|
|
377
|
-
if (selected.expanded) {
|
|
378
|
-
this.addOrRemoveFileChangeNodes(selected);
|
|
379
|
-
}
|
|
380
|
-
else {
|
|
381
|
-
if (idx > 0) {
|
|
382
|
-
this.selectNode(this.status.commits[idx - 1]);
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
else if (scm_file_change_node_1.ScmFileChangeNode.is(selected)) {
|
|
387
|
-
const idx = this.status.commits.findIndex(c => c.commitDetails.id === selected.commitId);
|
|
388
|
-
this.selectNode(this.status.commits[idx]);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
this.update();
|
|
392
|
-
}
|
|
393
|
-
navigateRight() {
|
|
394
|
-
const selected = this.getSelected();
|
|
395
|
-
if (selected) {
|
|
396
|
-
if (scm_history_constants_1.ScmCommitNode.is(selected) && !selected.expanded && !this.singleFileMode) {
|
|
397
|
-
this.addOrRemoveFileChangeNodes(selected);
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
this.selectNextNode();
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
this.update();
|
|
404
|
-
}
|
|
405
|
-
handleListEnter() {
|
|
406
|
-
const selected = this.getSelected();
|
|
407
|
-
if (selected) {
|
|
408
|
-
if (scm_history_constants_1.ScmCommitNode.is(selected)) {
|
|
409
|
-
if (this.singleFileMode) {
|
|
410
|
-
this.openFile(selected.fileChangeNodes[0].fileChange);
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
this.openDetailWidget(selected);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
else if (scm_file_change_node_1.ScmFileChangeNode.is(selected)) {
|
|
417
|
-
this.openFile(selected.fileChange);
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
this.update();
|
|
421
|
-
}
|
|
422
|
-
openFile(change) {
|
|
423
|
-
const uriToOpen = change.getUriToOpen();
|
|
424
|
-
(0, browser_1.open)(this.openerService, uriToOpen, { mode: 'reveal' });
|
|
425
|
-
}
|
|
426
|
-
};
|
|
427
|
-
exports.ScmHistoryWidget = ScmHistoryWidget;
|
|
428
|
-
tslib_1.__decorate([
|
|
429
|
-
(0, inversify_1.postConstruct)(),
|
|
430
|
-
tslib_1.__metadata("design:type", Function),
|
|
431
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
432
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
433
|
-
], ScmHistoryWidget.prototype, "init", null);
|
|
434
|
-
exports.ScmHistoryWidget = ScmHistoryWidget = tslib_1.__decorate([
|
|
435
|
-
(0, inversify_1.injectable)(),
|
|
436
|
-
tslib_1.__param(0, (0, inversify_1.inject)(browser_1.OpenerService)),
|
|
437
|
-
tslib_1.__param(1, (0, inversify_1.inject)(browser_1.ApplicationShell)),
|
|
438
|
-
tslib_1.__param(2, (0, inversify_1.inject)(file_service_1.FileService)),
|
|
439
|
-
tslib_1.__param(3, (0, inversify_1.inject)(scm_avatar_service_1.ScmAvatarService)),
|
|
440
|
-
tslib_1.__param(4, (0, inversify_1.inject)(browser_1.WidgetManager)),
|
|
441
|
-
tslib_1.__metadata("design:paramtypes", [Object, browser_1.ApplicationShell,
|
|
442
|
-
file_service_1.FileService,
|
|
443
|
-
scm_avatar_service_1.ScmAvatarService,
|
|
444
|
-
browser_1.WidgetManager])
|
|
445
|
-
], ScmHistoryWidget);
|
|
446
|
-
class ScmHistoryList extends React.Component {
|
|
447
|
-
constructor() {
|
|
448
|
-
super(...arguments);
|
|
449
|
-
this.checkIfRowIsLoaded = (opts) => this.doCheckIfRowIsLoaded(opts);
|
|
450
|
-
}
|
|
451
|
-
doCheckIfRowIsLoaded(opts) {
|
|
452
|
-
const row = this.props.rows[opts.index];
|
|
453
|
-
return !!row;
|
|
454
|
-
}
|
|
455
|
-
render() {
|
|
456
|
-
const { hasMoreRows, loadMoreRows, rows } = this.props;
|
|
457
|
-
return React.createElement(react_virtuoso_1.Virtuoso, { ref: list => this.list = (list || undefined), data: rows, itemContent: index => this.renderRow(index), endReached: hasMoreRows ? loadMoreRows : undefined, overscan: 500, style: {
|
|
458
|
-
overflowX: 'hidden'
|
|
459
|
-
} });
|
|
460
|
-
}
|
|
461
|
-
renderRow(index) {
|
|
462
|
-
if (this.checkIfRowIsLoaded({ index })) {
|
|
463
|
-
const row = this.props.rows[index];
|
|
464
|
-
if (scm_history_constants_1.ScmCommitNode.is(row)) {
|
|
465
|
-
const head = this.props.renderCommit(row);
|
|
466
|
-
return React.createElement("div", { className: `commitListElement${index === 0 ? ' first' : ''}` }, head);
|
|
467
|
-
}
|
|
468
|
-
else if (scm_file_change_node_1.ScmFileChangeNode.is(row)) {
|
|
469
|
-
return React.createElement("div", { className: 'fileChangeListElement' }, this.props.renderFileChangeList(row));
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
return React.createElement("div", { className: `commitListElement${index === 0 ? ' first' : ''}` },
|
|
474
|
-
React.createElement("span", { className: `${(0, browser_1.codicon)('loading')} theia-animation-spin` }));
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
;
|
|
478
|
-
}
|
|
479
|
-
exports.ScmHistoryList = ScmHistoryList;
|
|
480
|
-
//# sourceMappingURL=scm-history-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scm-history-widget.js","sourceRoot":"","sources":["../../../src/browser/history/scm-history-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCA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B,UAAoC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EDITOR_CONTEXT_MENU_SCM = void 0;
|
|
4
|
-
// *****************************************************************************
|
|
5
|
-
// Copyright (C) 2019 Arm and others.
|
|
6
|
-
//
|
|
7
|
-
// This program and the accompanying materials are made available under the
|
|
8
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
-
//
|
|
11
|
-
// This Source Code may also be made available under the following Secondary
|
|
12
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
-
// with the GNU Classpath Exception which is available at
|
|
15
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
16
|
-
//
|
|
17
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
18
|
-
// *****************************************************************************
|
|
19
|
-
const browser_1 = require("@theia/editor/lib/browser");
|
|
20
|
-
exports.EDITOR_CONTEXT_MENU_SCM = [...browser_1.EDITOR_CONTEXT_MENU, '3_scm'];
|
|
21
|
-
//# sourceMappingURL=scm-extra-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scm-extra-contribution.js","sourceRoot":"","sources":["../../src/browser/scm-extra-contribution.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AAChF,qCAAqC;AACrC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,uDAAgE;AAEnD,QAAA,uBAAuB,GAAG,CAAC,GAAG,6BAAmB,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scm-extra-frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/scm-extra-frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAK/D,wBAKG"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2019 Arm and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
19
|
-
const scm_history_frontend_module_1 = require("./history/scm-history-frontend-module");
|
|
20
|
-
const scm_file_change_label_provider_1 = require("./scm-file-change-label-provider");
|
|
21
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
exports.default = new inversify_1.ContainerModule(bind => {
|
|
23
|
-
(0, scm_history_frontend_module_1.bindScmHistoryModule)(bind);
|
|
24
|
-
bind(scm_file_change_label_provider_1.ScmFileChangeLabelProvider).toSelf().inSingletonScope();
|
|
25
|
-
bind(browser_1.LabelProviderContribution).toService(scm_file_change_label_provider_1.ScmFileChangeLabelProvider);
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=scm-extra-frontend-module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scm-extra-frontend-module.js","sourceRoot":"","sources":["../../src/browser/scm-extra-frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qCAAqC;AACrC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,4DAA+D;AAC/D,uFAA6E;AAC7E,qFAA8E;AAC9E,qDAAoE;AAEpE,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAA,kDAAoB,EAAC,IAAI,CAAC,CAAC;IAE3B,IAAI,CAAC,2DAA0B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7D,IAAI,CAAC,mCAAyB,CAAC,CAAC,SAAS,CAAC,2DAA0B,CAAC,CAAC;AAC1E,CAAC,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ApplicationShellLayoutMigration, WidgetDescription, ApplicationShellLayoutMigrationContext } from '@theia/core/lib/browser/shell/shell-layout-restorer';
|
|
2
|
-
export declare class ScmExtraLayoutVersion4Migration implements ApplicationShellLayoutMigration {
|
|
3
|
-
readonly layoutVersion = 4;
|
|
4
|
-
onWillInflateWidget(desc: WidgetDescription, { parent }: ApplicationShellLayoutMigrationContext): WidgetDescription | undefined;
|
|
5
|
-
}
|
|
6
|
-
//# sourceMappingURL=scm-extra-layout-migrations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scm-extra-layout-migrations.d.ts","sourceRoot":"","sources":["../../src/browser/scm-extra-layout-migrations.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,+BAA+B,EAAE,iBAAiB,EAAE,sCAAsC,EAAE,MAAM,qDAAqD,CAAC;AAGjK,qBACa,+BAAgC,YAAW,+BAA+B;IACnF,QAAQ,CAAC,aAAa,KAAO;IAC7B,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,EAAE,MAAM,EAAE,EAAE,sCAAsC,GAAG,iBAAiB,GAAG,SAAS;CAQlI"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2020 Arm and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ScmExtraLayoutVersion4Migration = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const scm_history_contribution_1 = require("./history/scm-history-contribution");
|
|
22
|
-
let ScmExtraLayoutVersion4Migration = class ScmExtraLayoutVersion4Migration {
|
|
23
|
-
constructor() {
|
|
24
|
-
this.layoutVersion = 4.0;
|
|
25
|
-
}
|
|
26
|
-
onWillInflateWidget(desc, { parent }) {
|
|
27
|
-
if (desc.constructionOptions.factoryId === 'git-history') {
|
|
28
|
-
desc.constructionOptions.factoryId = scm_history_contribution_1.SCM_HISTORY_ID;
|
|
29
|
-
return desc;
|
|
30
|
-
}
|
|
31
|
-
return undefined;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
exports.ScmExtraLayoutVersion4Migration = ScmExtraLayoutVersion4Migration;
|
|
35
|
-
exports.ScmExtraLayoutVersion4Migration = ScmExtraLayoutVersion4Migration = tslib_1.__decorate([
|
|
36
|
-
(0, inversify_1.injectable)()
|
|
37
|
-
], ScmExtraLayoutVersion4Migration);
|
|
38
|
-
//# sourceMappingURL=scm-extra-layout-migrations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scm-extra-layout-migrations.js","sourceRoot":"","sources":["../../src/browser/scm-extra-layout-migrations.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,qCAAqC;AACrC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAA0D;AAE1D,iFAAoE;AAG7D,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IAArC;QACM,kBAAa,GAAG,GAAG,CAAC;IASjC,CAAC;IARG,mBAAmB,CAAC,IAAuB,EAAE,EAAE,MAAM,EAA0C;QAC3F,IAAI,IAAI,CAAC,mBAAmB,CAAC,SAAS,KAAK,aAAa,EAAE,CAAC;YACvD,IAAI,CAAC,mBAAmB,CAAC,SAAS,GAAG,yCAAc,CAAC;YACpD,OAAO,IAAI,CAAC;QAChB,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ,CAAA;AAVY,0EAA+B;0CAA/B,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAU3C"}
|