@codingame/monaco-vscode-chat-service-override 34.1.1 → 34.1.2

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-chat-service-override",
3
- "version": "34.1.1",
3
+ "version": "34.1.2",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - chat service-override",
6
6
  "keywords": [],
@@ -15,10 +15,10 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "34.1.1",
19
- "@codingame/monaco-vscode-katex-common": "34.1.1",
20
- "@codingame/monaco-vscode-xterm-addons-common": "34.1.1",
21
- "@codingame/monaco-vscode-xterm-common": "34.1.1"
18
+ "@codingame/monaco-vscode-api": "34.1.2",
19
+ "@codingame/monaco-vscode-katex-common": "34.1.2",
20
+ "@codingame/monaco-vscode-xterm-addons-common": "34.1.2",
21
+ "@codingame/monaco-vscode-xterm-common": "34.1.2"
22
22
  },
23
23
  "main": "index.js",
24
24
  "module": "index.js",
@@ -2,7 +2,7 @@
2
2
  import { registerCss } from '@codingame/monaco-vscode-api/css';
3
3
  import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
4
4
  import * as agenttitlebarstatuswidget from './media/agenttitlebarstatuswidget.css';
5
- import { getWindow, isHTMLElement, reset, addDisposableListener, EventType, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
5
+ import { getActiveElement, isHTMLElement, reset, addDisposableListener, EventType, $ } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
6
6
  import { renderIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
7
7
  import { DisposableStore, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
8
8
  import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
@@ -208,7 +208,7 @@ let AgentTitleBarStatusWidget = class AgentTitleBarStatusWidget extends BaseActi
208
208
  if (!this._container) {
209
209
  return;
210
210
  }
211
- const activeElement = getWindow(this._container).document.activeElement;
211
+ const activeElement = getActiveElement(this._container.ownerDocument);
212
212
  if (isHTMLElement(activeElement) && this._container.contains(activeElement)) {
213
213
  activeElement.blur();
214
214
  }
@@ -11,7 +11,7 @@ import { Range } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core
11
11
  import { OverviewRulerLane } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/model';
12
12
  import { themeColorFromId } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService';
13
13
  import { overviewRulerInfo } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/core/editorColorRegistry';
14
- import { createElement, getWindow, addStandardDisposableListener } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
14
+ import { createElement, getWindow, getActiveElement, addStandardDisposableListener, isActiveElement } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
15
15
  import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
16
16
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
17
17
  import { ActionBar } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
@@ -277,7 +277,7 @@ let PlanReviewFeedbackEditorContribution = class PlanReviewFeedbackEditorContrib
277
277
  if (!this._visible) {
278
278
  return;
279
279
  }
280
- if (this._isWidgetTarget(getWindow(this._editor.getDomNode()).document.activeElement)) {
280
+ if (this._isWidgetTarget(getActiveElement(this._editor.getDomNode().ownerDocument))) {
281
281
  return;
282
282
  }
283
283
  this._hide();
@@ -394,7 +394,7 @@ let PlanReviewFeedbackEditorContribution = class PlanReviewFeedbackEditorContrib
394
394
  if (!this._editor.getOption(EditorOption.readOnly)) {
395
395
  return;
396
396
  }
397
- if (getWindow(widget.inputElement).document.activeElement !== widget.inputElement) {
397
+ if (!isActiveElement(widget.inputElement)) {
398
398
  widget.inputElement.focus();
399
399
  }
400
400
  }));