@codingame/monaco-vscode-scm-service-override 38.0.1 → 38.0.3
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/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-scm-service-override",
|
|
3
|
-
"version": "38.0.
|
|
3
|
+
"version": "38.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - scm service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "38.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "38.0.3"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -243,7 +243,7 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
243
243
|
}
|
|
244
244
|
renderTitle() {
|
|
245
245
|
const providerChanges = this.model.quickDiffChanges.get(this._providerId);
|
|
246
|
-
const providerIndex = providerChanges.indexOf(this._index);
|
|
246
|
+
const providerIndex = ( providerChanges.indexOf(this._index));
|
|
247
247
|
let detail;
|
|
248
248
|
if (!this.shouldUseDropdown()) {
|
|
249
249
|
const label = this.model.quickDiffs.find(quickDiff => quickDiff.id === this._providerId)?.label ?? "";
|
|
@@ -646,7 +646,7 @@ let QuickDiffEditorController = class QuickDiffEditorController extends Disposab
|
|
|
646
646
|
if (!e.target.element) {
|
|
647
647
|
return;
|
|
648
648
|
}
|
|
649
|
-
if (e.target.element.className.indexOf("dirty-diff-glyph") < 0) {
|
|
649
|
+
if (( e.target.element.className.indexOf("dirty-diff-glyph")) < 0) {
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
652
|
const data = e.target.detail;
|
|
@@ -272,7 +272,7 @@ let RepositoryTreeDataSource = class RepositoryTreeDataSource extends Disposable
|
|
|
272
272
|
if (childRepositories.length === 0) {
|
|
273
273
|
continue;
|
|
274
274
|
}
|
|
275
|
-
const repositoryIndex = repositories.indexOf(repository);
|
|
275
|
+
const repositoryIndex = ( repositories.indexOf(repository));
|
|
276
276
|
repositories.splice(repositoryIndex + 1, 0, ...childRepositories);
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -492,7 +492,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
492
492
|
return true;
|
|
493
493
|
}
|
|
494
494
|
if (viewState?.expanded && (isSCMRepository(e) || isSCMArtifactGroupTreeElement(e) || isSCMArtifactTreeElement(e))) {
|
|
495
|
-
return viewState.expanded.indexOf(this.treeIdentityProvider.getId(e)) === -1;
|
|
495
|
+
return ( viewState.expanded.indexOf(this.treeIdentityProvider.getId(e))) === -1;
|
|
496
496
|
} else if (isSCMArtifactNode(e)) {
|
|
497
497
|
return !(e.childrenCount === 1 && Iterable.first(e.children)?.element === undefined);
|
|
498
498
|
} else {
|
|
@@ -1842,7 +1842,7 @@ let SCMViewPane = class SCMViewPane extends ViewPane {
|
|
|
1842
1842
|
return;
|
|
1843
1843
|
}
|
|
1844
1844
|
if (repositories.length > 1 && this.inputRenderer.getRenderedInputWidget(input)?.hasFocus() === true) {
|
|
1845
|
-
const focusedRepositoryIndex = repositories.indexOf(this.scmViewService.focusedRepository);
|
|
1845
|
+
const focusedRepositoryIndex = ( repositories.indexOf(this.scmViewService.focusedRepository));
|
|
1846
1846
|
const newFocusedRepositoryIndex = rot(focusedRepositoryIndex + delta, repositories.length);
|
|
1847
1847
|
input = repositories[newFocusedRepositoryIndex].input;
|
|
1848
1848
|
}
|
|
@@ -1863,7 +1863,7 @@ let SCMViewPane = class SCMViewPane extends ViewPane {
|
|
|
1863
1863
|
const treeHasDomFocus = isActiveElement(this.tree.getHTMLElement());
|
|
1864
1864
|
const resourceGroups = this.scmViewService.focusedRepository.provider.groups;
|
|
1865
1865
|
const focusedResourceGroup = this.tree.getFocus().find(e => isSCMResourceGroup(e));
|
|
1866
|
-
const focusedResourceGroupIndex = treeHasDomFocus && focusedResourceGroup ? resourceGroups.indexOf(focusedResourceGroup) : -1;
|
|
1866
|
+
const focusedResourceGroupIndex = treeHasDomFocus && focusedResourceGroup ? ( resourceGroups.indexOf(focusedResourceGroup)) : -1;
|
|
1867
1867
|
let resourceGroupNext;
|
|
1868
1868
|
if (focusedResourceGroupIndex === -1) {
|
|
1869
1869
|
for (const resourceGroup of resourceGroups) {
|
|
@@ -112,7 +112,7 @@ let SCMViewService = class SCMViewService {
|
|
|
112
112
|
if (repositoryView.selectionIndex === -1) {
|
|
113
113
|
added.add(repositoryView.repository);
|
|
114
114
|
}
|
|
115
|
-
repositoryView.selectionIndex = visibleRepositories.indexOf(repositoryView.repository);
|
|
115
|
+
repositoryView.selectionIndex = ( visibleRepositories.indexOf(repositoryView.repository));
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
if (added.size === 0 && removed.size === 0) {
|
|
@@ -274,7 +274,7 @@ let SCMViewService = class SCMViewService {
|
|
|
274
274
|
};
|
|
275
275
|
let removed = Iterable.empty();
|
|
276
276
|
if (this.previousState && !this.didFinishLoadingRepositories.get()) {
|
|
277
|
-
const index = this.previousState.all.indexOf(getProviderStorageKey(repository.provider));
|
|
277
|
+
const index = ( this.previousState.all.indexOf(getProviderStorageKey(repository.provider)));
|
|
278
278
|
if (index === -1) {
|
|
279
279
|
const added = [];
|
|
280
280
|
this.insertRepositoryView(this._repositories, repositoryView);
|
|
@@ -293,7 +293,7 @@ let SCMViewService = class SCMViewService {
|
|
|
293
293
|
this.didSelectRepository = false;
|
|
294
294
|
return;
|
|
295
295
|
}
|
|
296
|
-
if (this.previousState.visible.indexOf(index) === -1) {
|
|
296
|
+
if (( this.previousState.visible.indexOf(index)) === -1) {
|
|
297
297
|
if (this.didSelectRepository) {
|
|
298
298
|
this.insertRepositoryView(this._repositories, repositoryView);
|
|
299
299
|
this._onDidChangeRepositories.fire({
|
|
@@ -378,7 +378,7 @@ let SCMViewService = class SCMViewService {
|
|
|
378
378
|
this.visibleRepositories = [...this.visibleRepositories, repository];
|
|
379
379
|
}
|
|
380
380
|
} else {
|
|
381
|
-
const index = this.visibleRepositories.indexOf(repository);
|
|
381
|
+
const index = ( this.visibleRepositories.indexOf(repository));
|
|
382
382
|
if (index > -1) {
|
|
383
383
|
this.visibleRepositories = [
|
|
384
384
|
...this.visibleRepositories.slice(0, index),
|
|
@@ -457,7 +457,7 @@ let SCMViewService = class SCMViewService {
|
|
|
457
457
|
return;
|
|
458
458
|
}
|
|
459
459
|
const all = this.repositories.map(r => getProviderStorageKey(r.provider));
|
|
460
|
-
const visible = this.visibleRepositories.map(r => all.indexOf(getProviderStorageKey(r.provider)));
|
|
460
|
+
const visible = this.visibleRepositories.map(r => ( all.indexOf(getProviderStorageKey(r.provider))));
|
|
461
461
|
this.previousState = {
|
|
462
462
|
all,
|
|
463
463
|
visible,
|