@codingame/monaco-vscode-workbench-service-override 38.0.2 → 38.0.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-workbench-service-override",
3
- "version": "38.0.2",
3
+ "version": "38.0.4",
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.2",
19
- "@codingame/monaco-vscode-environment-service-override": "38.0.2",
20
- "@codingame/monaco-vscode-katex-common": "38.0.2",
21
- "@codingame/monaco-vscode-keybindings-service-override": "38.0.2",
22
- "@codingame/monaco-vscode-quickaccess-service-override": "38.0.2",
23
- "@codingame/monaco-vscode-view-banner-service-override": "38.0.2",
24
- "@codingame/monaco-vscode-view-common-service-override": "38.0.2",
25
- "@codingame/monaco-vscode-view-status-bar-service-override": "38.0.2",
26
- "@codingame/monaco-vscode-view-title-bar-service-override": "38.0.2"
18
+ "@codingame/monaco-vscode-api": "38.0.4",
19
+ "@codingame/monaco-vscode-environment-service-override": "38.0.4",
20
+ "@codingame/monaco-vscode-katex-common": "38.0.4",
21
+ "@codingame/monaco-vscode-keybindings-service-override": "38.0.4",
22
+ "@codingame/monaco-vscode-quickaccess-service-override": "38.0.4",
23
+ "@codingame/monaco-vscode-view-banner-service-override": "38.0.4",
24
+ "@codingame/monaco-vscode-view-common-service-override": "38.0.4",
25
+ "@codingame/monaco-vscode-view-status-bar-service-override": "38.0.4",
26
+ "@codingame/monaco-vscode-view-title-bar-service-override": "38.0.4"
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);
@@ -93,6 +93,7 @@ export declare class SessionsTerminalContribution extends Disposable implements
93
93
  private _isTerminalTracked;
94
94
  private _removeTerminalFromTrackedSessions;
95
95
  private _getAvailableTerminal;
96
+ private _shouldIgnoreTerminal;
96
97
  /**
97
98
  * Shows background terminals that belong to the active session and hides
98
99
  * foreground terminals that belong to other sessions. When the active
@@ -183,7 +183,7 @@ let SessionsTerminalContribution = class SessionsTerminalContribution extends Di
183
183
  this._standaloneTerminalIds.delete(instance.instanceId);
184
184
  }));
185
185
  this._register(this._terminalService.onDidCreateInstance(instance => {
186
- if (instance.shellLaunchConfig.hideFromUser) {
186
+ if (instance.shellLaunchConfig.hideFromUser || this._shouldIgnoreTerminal(instance)) {
187
187
  return;
188
188
  }
189
189
  if (instance.shellLaunchConfig.attachPersistentProcess && this._activeKey) {
@@ -400,7 +400,7 @@ let SessionsTerminalContribution = class SessionsTerminalContribution extends Di
400
400
  async _findTerminalsForKey(key, options) {
401
401
  const result = [];
402
402
  for (const instance of this._terminalService.instances) {
403
- if (instance.shellLaunchConfig.hideFromUser) {
403
+ if (instance.shellLaunchConfig.hideFromUser || this._shouldIgnoreTerminal(instance)) {
404
404
  continue;
405
405
  }
406
406
  if (options?.excludeTracked && (this._isTerminalTracked(instance.instanceId) || ( this._standaloneTerminalIds.has(instance.instanceId)))) {
@@ -425,6 +425,9 @@ let SessionsTerminalContribution = class SessionsTerminalContribution extends Di
425
425
  this._sessionTerminals.set(sessionId, terminalIds);
426
426
  }
427
427
  for (const instance of instances) {
428
+ if (this._shouldIgnoreTerminal(instance)) {
429
+ continue;
430
+ }
428
431
  terminalIds.add(instance.instanceId);
429
432
  if (scope) {
430
433
  this._trackedTerminalScopes.set(instance.instanceId, scope);
@@ -553,7 +556,13 @@ let SessionsTerminalContribution = class SessionsTerminalContribution extends Di
553
556
  }
554
557
  return currentInstance;
555
558
  }
559
+ _shouldIgnoreTerminal(instance) {
560
+ return !instance.shellLaunchConfig.customPtyImplementation;
561
+ }
556
562
  async _terminalMatchesScope(instance, key, agentHostAddress) {
563
+ if (this._shouldIgnoreTerminal(instance)) {
564
+ return false;
565
+ }
557
566
  const trackedScope = this._trackedTerminalScopes.get(instance.instanceId);
558
567
  if (trackedScope) {
559
568
  return trackedScope.key === key && trackedScope.agentHostAddress === agentHostAddress;
@@ -584,7 +593,7 @@ let SessionsTerminalContribution = class SessionsTerminalContribution extends Di
584
593
  this._getTrackedTerminalsForSession(activeSession.sessionId).map(instance => instance.instanceId)
585
594
  ));
586
595
  for (const instance of [...this._terminalService.instances]) {
587
- if (instance.shellLaunchConfig.hideFromUser || ( this._standaloneTerminalIds.has(instance.instanceId))) {
596
+ if (instance.shellLaunchConfig.hideFromUser || ( this._standaloneTerminalIds.has(instance.instanceId)) || this._shouldIgnoreTerminal(instance)) {
588
597
  continue;
589
598
  }
590
599
  const currentInstance = this._getAvailableTerminal(instance, "update terminal visibility");
@@ -725,7 +734,7 @@ let SessionsTerminalContribution = class SessionsTerminalContribution extends Di
725
734
  async _findUntrackedTerminalsForResource(resource) {
726
735
  const result = [];
727
736
  for (const instance of this._terminalService.instances) {
728
- if (!instance.shellLaunchConfig.attachPersistentProcess || instance.shellLaunchConfig.hideFromUser || this._isTerminalTracked(instance.instanceId) || ( this._standaloneTerminalIds.has(instance.instanceId))) {
737
+ if (!instance.shellLaunchConfig.attachPersistentProcess || this._shouldIgnoreTerminal(instance) || instance.shellLaunchConfig.hideFromUser || this._isTerminalTracked(instance.instanceId) || ( this._standaloneTerminalIds.has(instance.instanceId))) {
729
738
  continue;
730
739
  }
731
740
  try {
@@ -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;