@codingame/monaco-vscode-workbench-service-override 38.0.2 → 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 +10 -10
- package/vscode/src/vs/sessions/browser/parts/chatCompositeBar.js +1 -1
- package/vscode/src/vs/sessions/browser/parts/chatGroupsView.js +5 -5
- package/vscode/src/vs/sessions/contrib/aquarium/browser/aquariumOverlay.js +1 -1
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionTaskRunner.js +1 -1
- package/vscode/src/vs/sessions/contrib/onboardingTours/browser/newSessionViewV3Prompt.js +2 -5
- package/vscode/src/vs/sessions/contrib/providers/remoteAgentHost/browser/connectionDiagnosticsLogs.js +1 -1
- package/vscode/src/vs/sessions/services/sessions/browser/sessionComparisonService.js +1 -1
- package/vscode/src/vs/sessions/services/sessions/browser/sessionSectionOrderService.js +2 -2
- package/vscode/src/vs/sessions/services/sessions/browser/visibleSessions.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workbench-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 - workbench service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "38.0.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "38.0.
|
|
20
|
-
"@codingame/monaco-vscode-katex-common": "38.0.
|
|
21
|
-
"@codingame/monaco-vscode-keybindings-service-override": "38.0.
|
|
22
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "38.0.
|
|
23
|
-
"@codingame/monaco-vscode-view-banner-service-override": "38.0.
|
|
24
|
-
"@codingame/monaco-vscode-view-common-service-override": "38.0.
|
|
25
|
-
"@codingame/monaco-vscode-view-status-bar-service-override": "38.0.
|
|
26
|
-
"@codingame/monaco-vscode-view-title-bar-service-override": "38.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "38.0.3",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "38.0.3",
|
|
20
|
+
"@codingame/monaco-vscode-katex-common": "38.0.3",
|
|
21
|
+
"@codingame/monaco-vscode-keybindings-service-override": "38.0.3",
|
|
22
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "38.0.3",
|
|
23
|
+
"@codingame/monaco-vscode-view-banner-service-override": "38.0.3",
|
|
24
|
+
"@codingame/monaco-vscode-view-common-service-override": "38.0.3",
|
|
25
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "38.0.3",
|
|
26
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "38.0.3"
|
|
27
27
|
},
|
|
28
28
|
"main": "index.js",
|
|
29
29
|
"module": "index.js",
|
|
@@ -388,7 +388,7 @@ let ChatCompositeBar = class ChatCompositeBar extends Disposable {
|
|
|
388
388
|
EventHelper.stop(e, true);
|
|
389
389
|
this._delegate?.openChat(chat.resource);
|
|
390
390
|
} else if (( [KeyCode.LeftArrow, KeyCode.RightArrow, KeyCode.Home, KeyCode.End].some(keyCode => event.equals(keyCode)))) {
|
|
391
|
-
let tabIndex = this._tabs.indexOf(chatTab);
|
|
391
|
+
let tabIndex = ( this._tabs.indexOf(chatTab));
|
|
392
392
|
if (event.equals(KeyCode.LeftArrow)) {
|
|
393
393
|
tabIndex--;
|
|
394
394
|
} else if (event.equals(KeyCode.RightArrow)) {
|
|
@@ -648,11 +648,11 @@ let ChatGroupsView = class ChatGroupsView extends Themable {
|
|
|
648
648
|
}
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
|
-
const referenceIndex = this._groups.indexOf(reference);
|
|
651
|
+
const referenceIndex = ( this._groups.indexOf(reference));
|
|
652
652
|
return this._groups[referenceIndex + 1] ?? this._groups[referenceIndex - 1];
|
|
653
653
|
}
|
|
654
654
|
_insertGroup(group, reference, zone) {
|
|
655
|
-
const referenceIndex = this._groups.indexOf(reference);
|
|
655
|
+
const referenceIndex = ( this._groups.indexOf(reference));
|
|
656
656
|
const insertBefore = zone === "left" || zone === "top";
|
|
657
657
|
this._groups.splice(referenceIndex + (insertBefore ? 0 : 1), 0, group);
|
|
658
658
|
}
|
|
@@ -828,7 +828,7 @@ let ChatGroupsView = class ChatGroupsView extends Themable {
|
|
|
828
828
|
}
|
|
829
829
|
}
|
|
830
830
|
focusAdjacentGroup(direction) {
|
|
831
|
-
const activeIndex = this._activeGroup ? this._groups.indexOf(this._activeGroup) : -1;
|
|
831
|
+
const activeIndex = this._activeGroup ? ( this._groups.indexOf(this._activeGroup)) : -1;
|
|
832
832
|
if (activeIndex < 0 || this._groups.length < 2) {
|
|
833
833
|
return;
|
|
834
834
|
}
|
|
@@ -846,7 +846,7 @@ let ChatGroupsView = class ChatGroupsView extends Themable {
|
|
|
846
846
|
}
|
|
847
847
|
moveActiveChatToAdjacentGroup(direction) {
|
|
848
848
|
const source = this._activeGroup;
|
|
849
|
-
const sourceIndex = source ? this._groups.indexOf(source) : -1;
|
|
849
|
+
const sourceIndex = source ? ( this._groups.indexOf(source)) : -1;
|
|
850
850
|
const resource = source?.activeResourceId.get();
|
|
851
851
|
if (!source || sourceIndex < 0 || !resource || this._groups.length < 2) {
|
|
852
852
|
return;
|
|
@@ -965,7 +965,7 @@ let ChatGroupsView = class ChatGroupsView extends Themable {
|
|
|
965
965
|
activeResourceId: group.activeResourceId.get(),
|
|
966
966
|
pinnedResourceId: group.pinnedResourceId.get()
|
|
967
967
|
})),
|
|
968
|
-
activeGroupIndex: Math.max(0, this._groups.indexOf(this._activeGroup))
|
|
968
|
+
activeGroupIndex: Math.max(0, ( this._groups.indexOf(this._activeGroup)))
|
|
969
969
|
};
|
|
970
970
|
this._saveStored(sessionId, layout);
|
|
971
971
|
}
|
|
@@ -457,7 +457,7 @@ function createActiveAquarium(mainContainer, layoutService, accessibilityService
|
|
|
457
457
|
}));
|
|
458
458
|
const food = [];
|
|
459
459
|
const removeFood = pellet => {
|
|
460
|
-
const idx = food.indexOf(pellet);
|
|
460
|
+
const idx = ( food.indexOf(pellet));
|
|
461
461
|
if (idx !== -1) {
|
|
462
462
|
food.splice(idx, 1);
|
|
463
463
|
pellet.element.remove();
|
|
@@ -8,7 +8,7 @@ class SessionTaskRunnerRegistry {
|
|
|
8
8
|
register(runner) {
|
|
9
9
|
this._runners.push(runner);
|
|
10
10
|
return toDisposable(() => {
|
|
11
|
-
const idx = this._runners.indexOf(runner);
|
|
11
|
+
const idx = ( this._runners.indexOf(runner));
|
|
12
12
|
if (idx >= 0) {
|
|
13
13
|
this._runners.splice(idx, 1);
|
|
14
14
|
}
|
|
@@ -81,7 +81,7 @@ class GitHubLookupDiagnostics {
|
|
|
81
81
|
}
|
|
82
82
|
this._durations.set(stage, Math.max(this._durations.get(stage) ?? 0, durationMs));
|
|
83
83
|
const previous = this._outcomes.get(stage) ?? "notRun";
|
|
84
|
-
if (LOOKUP_STAGE_OUTCOME_SEVERITY.indexOf(outcome) > LOOKUP_STAGE_OUTCOME_SEVERITY.indexOf(previous)) {
|
|
84
|
+
if (( LOOKUP_STAGE_OUTCOME_SEVERITY.indexOf(outcome)) > ( LOOKUP_STAGE_OUTCOME_SEVERITY.indexOf(previous))) {
|
|
85
85
|
this._outcomes.set(stage, outcome);
|
|
86
86
|
} else if (!( this._outcomes.has(stage))) {
|
|
87
87
|
this._outcomes.set(stage, previous);
|
|
@@ -483,10 +483,7 @@ class NewSessionViewV3PromptRunner {
|
|
|
483
483
|
})).filter(entry => entry.candidate !== undefined);
|
|
484
484
|
const secondDirectCandidateIndex = directCandidates[1]?.index ?? pullRequests.length;
|
|
485
485
|
const reviewPullRequests = pullRequests.slice(0, secondDirectCandidateIndex).filter(pullRequest => !toDirectPullRequestCandidate(pullRequest));
|
|
486
|
-
const stableCandidates = getCandidatesInPullRequestOrder(pullRequests.slice(
|
|
487
|
-
0,
|
|
488
|
-
reviewPullRequests[0] ? pullRequests.indexOf(reviewPullRequests[0]) : secondDirectCandidateIndex
|
|
489
|
-
), directCandidates.map(entry => entry.candidate)).slice(0, 2);
|
|
486
|
+
const stableCandidates = getCandidatesInPullRequestOrder(pullRequests.slice(0, reviewPullRequests[0] ? ( pullRequests.indexOf(reviewPullRequests[0])) : secondDirectCandidateIndex), directCandidates.map(entry => entry.candidate)).slice(0, 2);
|
|
490
487
|
if (stableCandidates.length > 0) {
|
|
491
488
|
reportCandidates(stableCandidates);
|
|
492
489
|
}
|
|
@@ -21,7 +21,7 @@ async function collectConnectionLogs(fileService, logFile) {
|
|
|
21
21
|
});
|
|
22
22
|
let text = ( result.value.toString());
|
|
23
23
|
if (position > 0) {
|
|
24
|
-
const newline = text.indexOf("\n");
|
|
24
|
+
const newline = ( text.indexOf("\n"));
|
|
25
25
|
text = newline === -1 ? "" : text.slice(newline + 1);
|
|
26
26
|
}
|
|
27
27
|
const lines = selectConnectionLogLines(text);
|
|
@@ -1111,7 +1111,7 @@ let SessionComparisonService = class SessionComparisonService extends Disposable
|
|
|
1111
1111
|
_pruneAttemptTelemetryState(comparisonIds) {
|
|
1112
1112
|
let changed = false;
|
|
1113
1113
|
for (const key of [...this._reportedAttemptTelemetry]) {
|
|
1114
|
-
const separator = key.indexOf("/");
|
|
1114
|
+
const separator = ( key.indexOf("/"));
|
|
1115
1115
|
if (separator < 0 || !( comparisonIds.has(key.slice(0, separator)))) {
|
|
1116
1116
|
this._reportedAttemptTelemetry.delete(key);
|
|
1117
1117
|
changed = true;
|
|
@@ -103,7 +103,7 @@ function resolveSectionOrder(persisted, defaultOrderedIds) {
|
|
|
103
103
|
}
|
|
104
104
|
let insertAt = 0;
|
|
105
105
|
for (let j = i - 1; j >= 0; j--) {
|
|
106
|
-
const idx = result.indexOf(defaultOrderedIds[j]);
|
|
106
|
+
const idx = ( result.indexOf(defaultOrderedIds[j]));
|
|
107
107
|
if (idx !== -1) {
|
|
108
108
|
insertAt = idx + 1;
|
|
109
109
|
break;
|
|
@@ -116,7 +116,7 @@ function resolveSectionOrder(persisted, defaultOrderedIds) {
|
|
|
116
116
|
}
|
|
117
117
|
function spliceSectionOrder(order, draggedId, targetId, position) {
|
|
118
118
|
const without = order.filter(id => id !== draggedId);
|
|
119
|
-
const targetIndex = without.indexOf(targetId);
|
|
119
|
+
const targetIndex = ( without.indexOf(targetId));
|
|
120
120
|
if (targetIndex === -1) {
|
|
121
121
|
return undefined;
|
|
122
122
|
}
|
|
@@ -437,7 +437,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
437
437
|
}
|
|
438
438
|
if (replaceSlot !== NO_RECENT) {
|
|
439
439
|
this.transferGridSlot(replaceSlot, targetId);
|
|
440
|
-
const idx = this._visibleList.indexOf(replaceSlot);
|
|
440
|
+
const idx = ( this._visibleList.indexOf(replaceSlot));
|
|
441
441
|
this._visibleList.splice(idx, 1, targetId);
|
|
442
442
|
if (replaceSlot !== undefined) {
|
|
443
443
|
const replaced = this._wrappers.get(replaceSlot)?.session;
|
|
@@ -469,7 +469,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
469
469
|
this._visibleList.push(undefined);
|
|
470
470
|
}
|
|
471
471
|
const id = session?.sessionId;
|
|
472
|
-
const targetIdx = this._visibleList.indexOf(targetSessionId);
|
|
472
|
+
const targetIdx = ( this._visibleList.indexOf(targetSessionId));
|
|
473
473
|
if (targetIdx < 0) {
|
|
474
474
|
return;
|
|
475
475
|
}
|
|
@@ -486,7 +486,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
let destIdx = side === "left" || side === "up" ? targetIdx : targetIdx + 1;
|
|
489
|
-
const currentIdx = this._visibleList.indexOf(id);
|
|
489
|
+
const currentIdx = ( this._visibleList.indexOf(id));
|
|
490
490
|
if (currentIdx >= 0) {
|
|
491
491
|
if (currentIdx !== destIdx && currentIdx + 1 !== destIdx) {
|
|
492
492
|
this._visibleList.splice(currentIdx, 1);
|
|
@@ -565,7 +565,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
565
565
|
sticky: false
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
const index = this._visibleList.indexOf(sessionId);
|
|
568
|
+
const index = ( this._visibleList.indexOf(sessionId));
|
|
569
569
|
return index < 0 ? undefined : {
|
|
570
570
|
index,
|
|
571
571
|
sticky: this._isStickySlot(sessionId)
|
|
@@ -597,7 +597,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
597
597
|
}
|
|
598
598
|
replaceSlot(slotId, session, sticky) {
|
|
599
599
|
const id = session.sessionId;
|
|
600
|
-
const idx = this._visibleList.indexOf(slotId);
|
|
600
|
+
const idx = ( this._visibleList.indexOf(slotId));
|
|
601
601
|
if (idx < 0 || this._visibleList.includes(id)) {
|
|
602
602
|
return undefined;
|
|
603
603
|
}
|
|
@@ -644,7 +644,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
644
644
|
const activeId = this._activeSession.get()?.sessionId;
|
|
645
645
|
const emptySlotIsActive = activeId === undefined && this._visibleList.includes(undefined);
|
|
646
646
|
const activeSlotId = emptySlotIsActive ? undefined : activeId;
|
|
647
|
-
const activeIdx = activeId !== undefined || emptySlotIsActive ? this._visibleList.indexOf(activeSlotId) : -1;
|
|
647
|
+
const activeIdx = activeId !== undefined || emptySlotIsActive ? ( this._visibleList.indexOf(activeSlotId)) : -1;
|
|
648
648
|
let activeRemoved = false;
|
|
649
649
|
for (const id of sessionIds) {
|
|
650
650
|
if (this._removeFromModel(id)) {
|
|
@@ -705,7 +705,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
705
705
|
if (fromId === toId) {
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
|
-
const idx = this._visibleList.indexOf(fromId);
|
|
708
|
+
const idx = ( this._visibleList.indexOf(fromId));
|
|
709
709
|
if (idx >= 0) {
|
|
710
710
|
this.transferGridSlot(fromId, toId);
|
|
711
711
|
this._visibleList.splice(idx, 1, toId);
|
|
@@ -744,7 +744,7 @@ let VisibleSessions = class VisibleSessions extends Disposable {
|
|
|
744
744
|
}
|
|
745
745
|
_removeFromModel(sessionId) {
|
|
746
746
|
let changed = false;
|
|
747
|
-
const idx = this._visibleList.indexOf(sessionId);
|
|
747
|
+
const idx = ( this._visibleList.indexOf(sessionId));
|
|
748
748
|
if (idx >= 0) {
|
|
749
749
|
this._visibleList.splice(idx, 1);
|
|
750
750
|
changed = true;
|