@codingame/monaco-vscode-api 19.0.1 → 19.1.0
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 +26 -0
- package/css.js +15 -8
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/base/browser/dom.d.ts +11 -0
- package/vscode/src/vs/base/browser/dom.js +34 -21
- package/vscode/src/vs/base/browser/domStylesheets.js +12 -4
- package/vscode/src/vs/base/browser/formattedTextRenderer.js +7 -7
- package/vscode/src/vs/base/browser/keyboardEvent.js +8 -1
- package/vscode/src/vs/base/browser/pixelRatio.js +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +3 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +4 -4
- package/vscode/src/vs/base/browser/ui/aria/aria.js +4 -4
- package/vscode/src/vs/base/browser/ui/button/button.js +10 -10
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +2 -2
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +3 -3
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +3 -3
- package/vscode/src/vs/base/browser/ui/list/listView.js +3 -3
- package/vscode/src/vs/base/browser/ui/menu/menu.js +2 -2
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +3 -3
- package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -2
- package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.js +4 -4
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +5 -5
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarArrow.js +4 -4
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +4 -4
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +3 -3
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +2 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +2 -2
- package/vscode/src/vs/base/browser/window.d.ts +3 -0
- package/vscode/src/vs/base/browser/window.js +1 -1
- package/vscode/src/vs/editor/browser/config/charWidthReader.js +7 -6
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +3 -3
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +3 -2
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -2
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -2
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +2 -1
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +3 -2
- package/vscode/src/vs/editor/browser/view.js +4 -4
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +3 -2
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +3 -2
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +3 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +8 -8
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +3 -2
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +2 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +3 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +5 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +9 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +6 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +5 -3
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +2 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +3 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerInsertButton.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +13 -13
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +5 -5
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +10 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +4 -4
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +2 -2
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +2 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +5 -4
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +1 -0
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +24 -48
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +1 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +3 -0
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +1 -0
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +3 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +5 -3
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
4
|
-
import { addStandardDisposableListener, clearNode, $, append } from '../../../../base/browser/dom.js';
|
|
4
|
+
import { createElement, addStandardDisposableListener, clearNode, $, append } from '../../../../base/browser/dom.js';
|
|
5
5
|
import { ScrollableElement } from '../../../../base/browser/ui/scrollbar/scrollableElement.js';
|
|
6
6
|
import { isNonEmptyArray } from '../../../../base/common/arrays.js';
|
|
7
7
|
import { Color } from '../../../../base/common/color.js';
|
|
@@ -49,14 +49,14 @@ class MessageWidget {
|
|
|
49
49
|
this._relatedDiagnostics = ( new WeakMap());
|
|
50
50
|
this._disposables = ( new DisposableStore());
|
|
51
51
|
this._editor = editor;
|
|
52
|
-
const domNode =
|
|
52
|
+
const domNode = createElement('div');
|
|
53
53
|
domNode.className = 'descriptioncontainer';
|
|
54
|
-
this._messageBlock =
|
|
54
|
+
this._messageBlock = createElement('div');
|
|
55
55
|
this._messageBlock.classList.add('message');
|
|
56
56
|
this._messageBlock.setAttribute('aria-live', 'assertive');
|
|
57
57
|
this._messageBlock.setAttribute('role', 'alert');
|
|
58
58
|
domNode.appendChild(this._messageBlock);
|
|
59
|
-
this._relatedBlock =
|
|
59
|
+
this._relatedBlock = createElement('div');
|
|
60
60
|
domNode.appendChild(this._relatedBlock);
|
|
61
61
|
this._disposables.add(addStandardDisposableListener(this._relatedBlock, 'click', event => {
|
|
62
62
|
event.preventDefault();
|
|
@@ -104,7 +104,7 @@ class MessageWidget {
|
|
|
104
104
|
this._editor.applyFontInfo(this._messageBlock);
|
|
105
105
|
let lastLineElement = this._messageBlock;
|
|
106
106
|
for (const line of lines) {
|
|
107
|
-
lastLineElement =
|
|
107
|
+
lastLineElement = createElement('div');
|
|
108
108
|
lastLineElement.innerText = line;
|
|
109
109
|
if (line === '') {
|
|
110
110
|
lastLineElement.style.height = this._messageBlock.style.lineHeight;
|
|
@@ -112,18 +112,18 @@ class MessageWidget {
|
|
|
112
112
|
this._messageBlock.appendChild(lastLineElement);
|
|
113
113
|
}
|
|
114
114
|
if (source || code) {
|
|
115
|
-
const detailsElement =
|
|
115
|
+
const detailsElement = createElement('span');
|
|
116
116
|
detailsElement.classList.add('details');
|
|
117
117
|
lastLineElement.appendChild(detailsElement);
|
|
118
118
|
if (source) {
|
|
119
|
-
const sourceElement =
|
|
119
|
+
const sourceElement = createElement('span');
|
|
120
120
|
sourceElement.innerText = source;
|
|
121
121
|
sourceElement.classList.add('source');
|
|
122
122
|
detailsElement.appendChild(sourceElement);
|
|
123
123
|
}
|
|
124
124
|
if (code) {
|
|
125
125
|
if (typeof code === 'string') {
|
|
126
|
-
const codeElement =
|
|
126
|
+
const codeElement = createElement('span');
|
|
127
127
|
codeElement.innerText = `(${code})`;
|
|
128
128
|
codeElement.classList.add('code');
|
|
129
129
|
detailsElement.appendChild(codeElement);
|
|
@@ -145,17 +145,17 @@ class MessageWidget {
|
|
|
145
145
|
clearNode(this._relatedBlock);
|
|
146
146
|
this._editor.applyFontInfo(this._relatedBlock);
|
|
147
147
|
if (isNonEmptyArray(relatedInformation)) {
|
|
148
|
-
const relatedInformationNode = this._relatedBlock.appendChild(
|
|
148
|
+
const relatedInformationNode = this._relatedBlock.appendChild(createElement('div'));
|
|
149
149
|
relatedInformationNode.style.paddingTop = `${Math.floor(this._editor.getOption(EditorOption.lineHeight) * 0.66)}px`;
|
|
150
150
|
this._lines += 1;
|
|
151
151
|
for (const related of relatedInformation) {
|
|
152
|
-
const container =
|
|
153
|
-
const relatedResource =
|
|
152
|
+
const container = createElement('div');
|
|
153
|
+
const relatedResource = createElement('a');
|
|
154
154
|
relatedResource.classList.add('filename');
|
|
155
155
|
relatedResource.innerText = `${this._labelService.getUriBasenameLabel(related.resource)}(${related.startLineNumber}, ${related.startColumn}): `;
|
|
156
156
|
relatedResource.title = this._labelService.getUriLabel(related.resource);
|
|
157
157
|
this._relatedDiagnostics.set(relatedResource, related);
|
|
158
|
-
const relatedMessage =
|
|
158
|
+
const relatedMessage = createElement('span');
|
|
159
159
|
relatedMessage.innerText = related.message;
|
|
160
160
|
container.appendChild(relatedResource);
|
|
161
161
|
container.appendChild(relatedMessage);
|
|
@@ -275,7 +275,7 @@ let MarkerNavigationWidget = class MarkerNavigationWidget extends PeekViewWidget
|
|
|
275
275
|
container.classList.add('marker-widget');
|
|
276
276
|
this._parentContainer.tabIndex = 0;
|
|
277
277
|
this._parentContainer.setAttribute('role', 'tooltip');
|
|
278
|
-
this._container =
|
|
278
|
+
this._container = createElement('div');
|
|
279
279
|
container.appendChild(this._container);
|
|
280
280
|
this._message = ( new MessageWidget(
|
|
281
281
|
this._container,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { append, $ } from '../../../../../base/browser/dom.js';
|
|
3
|
+
import { createElement, append, $ } from '../../../../../base/browser/dom.js';
|
|
4
4
|
import { CountBadge } from '../../../../../base/browser/ui/countBadge/countBadge.js';
|
|
5
5
|
import { HighlightedLabel } from '../../../../../base/browser/ui/highlightedlabel/highlightedLabel.js';
|
|
6
6
|
import { IconLabel } from '../../../../../base/browser/ui/iconLabel/iconLabel.js';
|
|
@@ -86,7 +86,7 @@ let FileReferencesTemplate = class FileReferencesTemplate extends Disposable {
|
|
|
86
86
|
constructor(container, _labelService) {
|
|
87
87
|
super();
|
|
88
88
|
this._labelService = _labelService;
|
|
89
|
-
const parent =
|
|
89
|
+
const parent = createElement('div');
|
|
90
90
|
parent.classList.add('reference-file');
|
|
91
91
|
this.file = this._register(( new IconLabel(parent, { supportHighlights: true })));
|
|
92
92
|
this.badge = this._register(( new CountBadge(append(parent, $('.count')), {}, defaultCountBadgeStyles)));
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { $, append, reset } from '../../../../../base/browser/dom.js';
|
|
3
|
+
import { createElement, $, append, reset } from '../../../../../base/browser/dom.js';
|
|
4
4
|
import { MarkdownString } from '../../../../../base/common/htmlContent.js';
|
|
5
5
|
import { DisposableStore } from '../../../../../base/common/lifecycle.js';
|
|
6
6
|
import '../../../../../base/common/observableInternal/index.js';
|
|
@@ -113,7 +113,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
113
113
|
disposables.add(this.renderScreenReaderText(context, part));
|
|
114
114
|
}
|
|
115
115
|
const model = part.controller.model.get();
|
|
116
|
-
const widgetNode =
|
|
116
|
+
const widgetNode = createElement('div');
|
|
117
117
|
context.fragment.appendChild(widgetNode);
|
|
118
118
|
disposables.add(autorunWithStore((reader, store) => {
|
|
119
119
|
const w = store.add(this._instantiationService.createInstance(InlineSuggestionHintsContentWidget.hot.read(reader), this._editor, false, constObservable(null), model.selectedInlineCompletionIndex, model.inlineCompletionsCount, model.activeCommands, model.warning, () => {
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
|
|
4
4
|
import { createTrustedTypesPolicy } from '../../../../../../base/browser/trustedTypes.js';
|
|
5
|
-
import { addDisposableListener, getWindow, isHTMLElement } from '../../../../../../base/browser/dom.js';
|
|
5
|
+
import { createElement, addDisposableListener, getWindow, isHTMLElement } from '../../../../../../base/browser/dom.js';
|
|
6
6
|
import '../../../../../../base/common/themables.js';
|
|
7
7
|
import '../../../../../../base/common/codicons.js';
|
|
8
8
|
import { Emitter, Event } from '../../../../../../base/common/event.js';
|
|
@@ -353,7 +353,7 @@ class AdditionalLinesWidget extends Disposable {
|
|
|
353
353
|
this.removeActiveViewZone(changeAccessor);
|
|
354
354
|
const heightInLines = Math.max(additionalLines.length, minReservedLineCount);
|
|
355
355
|
if (heightInLines > 0) {
|
|
356
|
-
const domNode =
|
|
356
|
+
const domNode = createElement('div');
|
|
357
357
|
renderLines(domNode, tabSize, additionalLines, this._editor.getOptions(), this._isClickable);
|
|
358
358
|
if (this._isClickable) {
|
|
359
359
|
store.add(addDisposableListener(domNode, 'mousedown', (e) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { n, getWindow } from '../../../../../../../base/browser/dom.js';
|
|
3
|
+
import { n, createElement, getWindow } from '../../../../../../../base/browser/dom.js';
|
|
4
4
|
import { StandardMouseEvent } from '../../../../../../../base/browser/mouseEvent.js';
|
|
5
5
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
6
6
|
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
@@ -170,7 +170,7 @@ let InlineEditsCustomView = class InlineEditsCustomView extends Disposable {
|
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
getRendering(state, styles) {
|
|
173
|
-
const line =
|
|
173
|
+
const line = createElement('div');
|
|
174
174
|
const t = this._editor.getModel().tokenization.tokenizeLinesAt(1, [state.label])?.[0];
|
|
175
175
|
let tokens;
|
|
176
176
|
if (t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { n, getWindow, $ } from '../../../../../../../base/browser/dom.js';
|
|
3
|
+
import { createElement, n, getWindow, $ } from '../../../../../../../base/browser/dom.js';
|
|
4
4
|
import { StandardMouseEvent } from '../../../../../../../base/browser/mouseEvent.js';
|
|
5
5
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
6
6
|
import { Disposable, toDisposable } from '../../../../../../../base/common/lifecycle.js';
|
|
@@ -65,7 +65,7 @@ let InlineEditsLineReplacementView = class InlineEditsLineReplacementView extend
|
|
|
65
65
|
const textModel = this._editor.model.get();
|
|
66
66
|
const startLineNumber = edit.modifiedRange.startLineNumber;
|
|
67
67
|
for (let i = 0; i < edit.modifiedRange.length; i++) {
|
|
68
|
-
const line =
|
|
68
|
+
const line = createElement('div');
|
|
69
69
|
const lineNumber = startLineNumber + i;
|
|
70
70
|
const modLine = edit.modifiedLines[i].slice(maxPrefixTrim);
|
|
71
71
|
const t = textModel.tokenization.tokenizeLinesAt(lineNumber, [modLine])?.[0];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { n, getWindow } from '../../../../../../../base/browser/dom.js';
|
|
3
|
+
import { createElement, n, getWindow } from '../../../../../../../base/browser/dom.js';
|
|
4
4
|
import { StandardMouseEvent } from '../../../../../../../base/browser/mouseEvent.js';
|
|
5
5
|
import { Emitter } from '../../../../../../../base/common/event.js';
|
|
6
6
|
import { Disposable } from '../../../../../../../base/common/lifecycle.js';
|
|
@@ -43,7 +43,7 @@ let InlineEditsWordReplacementView = class InlineEditsWordReplacementView extend
|
|
|
43
43
|
this.onDidClick = this._onDidClick.event;
|
|
44
44
|
this._start = this._editor.observePosition(constObservable(this._edit.range.getStartPosition()), this._store);
|
|
45
45
|
this._end = this._editor.observePosition(constObservable(this._edit.range.getEndPosition()), this._store);
|
|
46
|
-
this._line =
|
|
46
|
+
this._line = createElement('div');
|
|
47
47
|
this._hoverableElement = observableValue(this, null);
|
|
48
48
|
this.isHovered = ( this._hoverableElement.map((e, reader) => e?.didMouseMoveDuringHover.read(reader) ?? false));
|
|
49
49
|
this._renderTextEffect = derived(_reader => {
|
|
@@ -19,7 +19,7 @@ import { RawContextKey } from '../../../../platform/contextkey/common/contextkey
|
|
|
19
19
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
20
20
|
import { KeybindingWeight } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
21
21
|
import { IOpenerService } from '../../../../platform/opener/common/opener.service.js';
|
|
22
|
-
import { isAncestor, getActiveElement, addDisposableListener, EventType } from '../../../../base/browser/dom.js';
|
|
22
|
+
import { isAncestor, getActiveElement, addDisposableListener, EventType, createElement } from '../../../../base/browser/dom.js';
|
|
23
23
|
|
|
24
24
|
var MessageController_1;
|
|
25
25
|
registerCss(messageController);
|
|
@@ -133,13 +133,13 @@ class MessageWidget {
|
|
|
133
133
|
this._editor = editor;
|
|
134
134
|
this._editor.revealLinesInCenterIfOutsideViewport(lineNumber, lineNumber, ScrollType.Smooth);
|
|
135
135
|
this._position = { lineNumber, column };
|
|
136
|
-
this._domNode =
|
|
136
|
+
this._domNode = createElement('div');
|
|
137
137
|
this._domNode.classList.add('monaco-editor-overlaymessage');
|
|
138
138
|
this._domNode.style.marginLeft = '-6px';
|
|
139
|
-
const anchorTop =
|
|
139
|
+
const anchorTop = createElement('div');
|
|
140
140
|
anchorTop.classList.add('anchor', 'top');
|
|
141
141
|
this._domNode.appendChild(anchorTop);
|
|
142
|
-
const message =
|
|
142
|
+
const message = createElement('div');
|
|
143
143
|
if (typeof text === 'string') {
|
|
144
144
|
message.classList.add('message');
|
|
145
145
|
message.textContent = text;
|
|
@@ -149,7 +149,7 @@ class MessageWidget {
|
|
|
149
149
|
message.appendChild(text);
|
|
150
150
|
}
|
|
151
151
|
this._domNode.appendChild(message);
|
|
152
|
-
const anchorBottom =
|
|
152
|
+
const anchorBottom = createElement('div');
|
|
153
153
|
anchorBottom.classList.add('anchor', 'below');
|
|
154
154
|
this._domNode.appendChild(anchorBottom);
|
|
155
155
|
this._editor.addContentWidget(this);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
4
|
-
import { $ as $$1, append, addDisposableListener, EventHelper } from '../../../../base/browser/dom.js';
|
|
4
|
+
import { $ as $$1, append, addDisposableListener, EventHelper, createElement } from '../../../../base/browser/dom.js';
|
|
5
5
|
import { alert } from '../../../../base/browser/ui/aria/aria.js';
|
|
6
6
|
import { DomScrollableElement } from '../../../../base/browser/ui/scrollbar/scrollableElement.js';
|
|
7
7
|
import { Codicon } from '../../../../base/common/codicons.js';
|
|
@@ -239,12 +239,12 @@ let ParameterHintsWidget = class ParameterHintsWidget extends Disposable {
|
|
|
239
239
|
}
|
|
240
240
|
renderParameters(parent, signature, activeParameterIndex) {
|
|
241
241
|
const [start, end] = this.getParameterLabelOffsets(signature, activeParameterIndex);
|
|
242
|
-
const beforeSpan =
|
|
242
|
+
const beforeSpan = createElement('span');
|
|
243
243
|
beforeSpan.textContent = signature.label.substring(0, start);
|
|
244
|
-
const paramSpan =
|
|
244
|
+
const paramSpan = createElement('span');
|
|
245
245
|
paramSpan.textContent = signature.label.substring(start, end);
|
|
246
246
|
paramSpan.className = 'parameter active';
|
|
247
|
-
const afterSpan =
|
|
247
|
+
const afterSpan = createElement('span');
|
|
248
248
|
afterSpan.textContent = signature.label.substring(end);
|
|
249
249
|
append(parent, beforeSpan, paramSpan, afterSpan);
|
|
250
250
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
4
|
-
import { getClientArea, getDomNodePagePosition, getTotalHeight, getTotalWidth, addDisposableListener, EventType, clearNode } from '../../../../base/browser/dom.js';
|
|
4
|
+
import { createElement, getClientArea, getDomNodePagePosition, getTotalHeight, getTotalWidth, addDisposableListener, EventType, clearNode } from '../../../../base/browser/dom.js';
|
|
5
5
|
import { StandardKeyboardEvent } from '../../../../base/browser/keyboardEvent.js';
|
|
6
6
|
import { status } from '../../../../base/browser/ui/aria/aria.js';
|
|
7
7
|
import { getBaseLayerHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegate2.js';
|
|
@@ -79,7 +79,7 @@ let RenameWidget = class RenameWidget {
|
|
|
79
79
|
}
|
|
80
80
|
getDomNode() {
|
|
81
81
|
if (!this._domNode) {
|
|
82
|
-
this._domNode =
|
|
82
|
+
this._domNode = createElement('div');
|
|
83
83
|
this._domNode.className = 'monaco-editor rename-box';
|
|
84
84
|
this._domNode.appendChild(this._inputWithButton.domNode);
|
|
85
85
|
this._renameCandidateListView = this._disposables.add(( new RenameCandidateListView(this._domNode, {
|
|
@@ -103,7 +103,7 @@ let RenameWidget = class RenameWidget {
|
|
|
103
103
|
}
|
|
104
104
|
this._renameCandidateListView?.clearFocus();
|
|
105
105
|
}));
|
|
106
|
-
this._label =
|
|
106
|
+
this._label = createElement('div');
|
|
107
107
|
this._label.className = 'rename-label';
|
|
108
108
|
this._domNode.appendChild(this._label);
|
|
109
109
|
this._updateFont();
|
|
@@ -426,7 +426,7 @@ class RenameCandidateListView {
|
|
|
426
426
|
this._minimumWidth = 0;
|
|
427
427
|
this._lineHeight = opts.fontInfo.lineHeight;
|
|
428
428
|
this._typicalHalfwidthCharacterWidth = opts.fontInfo.typicalHalfwidthCharacterWidth;
|
|
429
|
-
this._listContainer =
|
|
429
|
+
this._listContainer = createElement('div');
|
|
430
430
|
this._listContainer.className = 'rename-box rename-candidate-list-container';
|
|
431
431
|
parent.appendChild(this._listContainer);
|
|
432
432
|
this._listWidget = RenameCandidateListView._createListWidget(this._listContainer, this._candidateViewHeight, opts.fontInfo);
|
|
@@ -593,18 +593,18 @@ class InputWithButton {
|
|
|
593
593
|
}
|
|
594
594
|
get domNode() {
|
|
595
595
|
if (!this._domNode) {
|
|
596
|
-
this._domNode =
|
|
596
|
+
this._domNode = createElement('div');
|
|
597
597
|
this._domNode.className = 'rename-input-with-button';
|
|
598
598
|
this._domNode.style.display = 'flex';
|
|
599
599
|
this._domNode.style.flexDirection = 'row';
|
|
600
600
|
this._domNode.style.alignItems = 'center';
|
|
601
|
-
this._inputNode =
|
|
601
|
+
this._inputNode = createElement('input');
|
|
602
602
|
this._inputNode.className = 'rename-input';
|
|
603
603
|
this._inputNode.type = 'text';
|
|
604
604
|
this._inputNode.style.border = 'none';
|
|
605
605
|
this._inputNode.setAttribute('aria-label', ( localize(1457, "Rename input. Type new name and press Enter to commit.")));
|
|
606
606
|
this._domNode.appendChild(this._inputNode);
|
|
607
|
-
this._buttonNode =
|
|
607
|
+
this._buttonNode = createElement('div');
|
|
608
608
|
this._buttonNode.className = 'rename-suggestions-button';
|
|
609
609
|
this._buttonNode.setAttribute('tabindex', '0');
|
|
610
610
|
this._buttonGenHoverText = ( localize(1458, "Generate new name suggestions"));
|
|
@@ -674,14 +674,14 @@ class InputWithButton {
|
|
|
674
674
|
class RenameCandidateView {
|
|
675
675
|
static { this._PADDING = 2; }
|
|
676
676
|
constructor(parent, fontInfo) {
|
|
677
|
-
this._domNode =
|
|
677
|
+
this._domNode = createElement('div');
|
|
678
678
|
this._domNode.className = 'rename-box rename-candidate';
|
|
679
679
|
this._domNode.style.display = `flex`;
|
|
680
680
|
this._domNode.style.columnGap = `5px`;
|
|
681
681
|
this._domNode.style.alignItems = `center`;
|
|
682
682
|
this._domNode.style.height = `${fontInfo.lineHeight}px`;
|
|
683
683
|
this._domNode.style.padding = `${RenameCandidateView._PADDING}px`;
|
|
684
|
-
const iconContainer =
|
|
684
|
+
const iconContainer = createElement('div');
|
|
685
685
|
iconContainer.style.display = `flex`;
|
|
686
686
|
iconContainer.style.alignItems = `center`;
|
|
687
687
|
iconContainer.style.width = iconContainer.style.height = `${fontInfo.lineHeight * 0.8}px`;
|
|
@@ -689,7 +689,7 @@ class RenameCandidateView {
|
|
|
689
689
|
this._icon = renderIcon(Codicon.sparkle);
|
|
690
690
|
this._icon.style.display = `none`;
|
|
691
691
|
iconContainer.appendChild(this._icon);
|
|
692
|
-
this._label =
|
|
692
|
+
this._label = createElement('div');
|
|
693
693
|
applyFontInfo(this._label, fontInfo);
|
|
694
694
|
this._domNode.appendChild(this._label);
|
|
695
695
|
parent.appendChild(this._domNode);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
-
import { addDisposableListener, EventType } from '../../../../base/browser/dom.js';
|
|
3
|
+
import { createElement, addDisposableListener, EventType } from '../../../../base/browser/dom.js';
|
|
4
4
|
import { createTrustedTypesPolicy } from '../../../../base/browser/trustedTypes.js';
|
|
5
5
|
import { equals } from '../../../../base/common/arrays.js';
|
|
6
6
|
import { Disposable, DisposableStore } from '../../../../base/common/lifecycle.js';
|
|
@@ -46,10 +46,10 @@ class StickyScrollWidget extends Disposable {
|
|
|
46
46
|
constructor(editor) {
|
|
47
47
|
super();
|
|
48
48
|
this._foldingIconStore = ( new DisposableStore());
|
|
49
|
-
this._rootDomNode =
|
|
50
|
-
this._lineNumbersDomNode =
|
|
51
|
-
this._linesDomNodeScrollable =
|
|
52
|
-
this._linesDomNode =
|
|
49
|
+
this._rootDomNode = createElement('div');
|
|
50
|
+
this._lineNumbersDomNode = createElement('div');
|
|
51
|
+
this._linesDomNodeScrollable = createElement('div');
|
|
52
|
+
this._linesDomNode = createElement('div');
|
|
53
53
|
this._renderedStickyLines = [];
|
|
54
54
|
this._lineNumbers = [];
|
|
55
55
|
this._lastLineRelativePosition = 0;
|
|
@@ -296,7 +296,7 @@ class StickyScrollWidget extends Disposable {
|
|
|
296
296
|
else {
|
|
297
297
|
newLine = sb.build();
|
|
298
298
|
}
|
|
299
|
-
const lineHTMLNode =
|
|
299
|
+
const lineHTMLNode = createElement('span');
|
|
300
300
|
lineHTMLNode.setAttribute(STICKY_INDEX_ATTR, String(index));
|
|
301
301
|
lineHTMLNode.setAttribute(STICKY_IS_LINE_ATTR, '');
|
|
302
302
|
lineHTMLNode.setAttribute('role', 'listitem');
|
|
@@ -305,14 +305,14 @@ class StickyScrollWidget extends Disposable {
|
|
|
305
305
|
lineHTMLNode.classList.add(`stickyLine${line}`);
|
|
306
306
|
lineHTMLNode.style.lineHeight = `${lineHeight}px`;
|
|
307
307
|
lineHTMLNode.innerHTML = newLine;
|
|
308
|
-
const lineNumberHTMLNode =
|
|
308
|
+
const lineNumberHTMLNode = createElement('span');
|
|
309
309
|
lineNumberHTMLNode.setAttribute(STICKY_INDEX_ATTR, String(index));
|
|
310
310
|
lineNumberHTMLNode.setAttribute(STICKY_IS_LINE_NUMBER_ATTR, '');
|
|
311
311
|
lineNumberHTMLNode.className = 'sticky-line-number';
|
|
312
312
|
lineNumberHTMLNode.style.lineHeight = `${lineHeight}px`;
|
|
313
313
|
const lineNumbersWidth = layoutInfo.contentLeft;
|
|
314
314
|
lineNumberHTMLNode.style.width = `${lineNumbersWidth}px`;
|
|
315
|
-
const innerLineNumberHTML =
|
|
315
|
+
const innerLineNumberHTML = createElement('span');
|
|
316
316
|
if (lineNumberOption.renderType === RenderLineNumbersType.On || lineNumberOption.renderType === RenderLineNumbersType.Interval && line % 10 === 0) {
|
|
317
317
|
innerLineNumberHTML.innerText = ( line.toString());
|
|
318
318
|
}
|
|
@@ -472,7 +472,7 @@ class StickyFoldingIcon {
|
|
|
472
472
|
this.foldingStartLine = foldingStartLine;
|
|
473
473
|
this.foldingEndLine = foldingEndLine;
|
|
474
474
|
this.dimension = dimension;
|
|
475
|
-
this.domNode =
|
|
475
|
+
this.domNode = createElement('div');
|
|
476
476
|
this.domNode.style.width = `26px`;
|
|
477
477
|
this.domNode.style.height = `${dimension}px`;
|
|
478
478
|
this.domNode.style.lineHeight = `${dimension}px`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
-
import { getActiveElement } from '../../../../base/browser/dom.js';
|
|
3
|
+
import { createElement, getActiveElement } from '../../../../base/browser/dom.js';
|
|
4
4
|
import { removeCSSRulesContainingSelector, createCSSRule } from '../../../../base/browser/domStylesheets.js';
|
|
5
5
|
import { Sash, Orientation, SashState } from '../../../../base/browser/ui/sash/sash.js';
|
|
6
6
|
import { Color, RGBA } from '../../../../base/common/color.js';
|
|
@@ -119,7 +119,7 @@ class ZoneWidget {
|
|
|
119
119
|
this._positionMarkerId = this.editor.createDecorationsCollection();
|
|
120
120
|
this.options = deepClone(options);
|
|
121
121
|
mixin(this.options, defaultOptions, false);
|
|
122
|
-
this.domNode =
|
|
122
|
+
this.domNode = createElement('div');
|
|
123
123
|
if (!this.options.isAccessible) {
|
|
124
124
|
this.domNode.setAttribute('aria-hidden', 'true');
|
|
125
125
|
this.domNode.setAttribute('role', 'presentation');
|
|
@@ -152,7 +152,7 @@ class ZoneWidget {
|
|
|
152
152
|
if (this.options.className) {
|
|
153
153
|
this.domNode.classList.add(this.options.className);
|
|
154
154
|
}
|
|
155
|
-
this.container =
|
|
155
|
+
this.container = createElement('div');
|
|
156
156
|
this.container.classList.add('zone-widget-container');
|
|
157
157
|
this.domNode.appendChild(this.container);
|
|
158
158
|
if (this.options.showArrow) {
|
|
@@ -277,7 +277,7 @@ class ZoneWidget {
|
|
|
277
277
|
const width = this._getWidth(layoutInfo);
|
|
278
278
|
this.domNode.style.width = `${width}px`;
|
|
279
279
|
this.domNode.style.left = this._getLeft(layoutInfo) + 'px';
|
|
280
|
-
const viewZoneDomNode =
|
|
280
|
+
const viewZoneDomNode = createElement('div');
|
|
281
281
|
viewZoneDomNode.style.overflow = 'hidden';
|
|
282
282
|
const lineHeight = this.editor.getOption(EditorOption.lineHeight);
|
|
283
283
|
const maxHeightInLines = this._getMaximumHeightInLines();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
3
|
import * as iPadShowKeyboard from './iPadShowKeyboard.css';
|
|
4
|
-
import { addDisposableListener } from '../../../../base/browser/dom.js';
|
|
4
|
+
import { createElement, addDisposableListener } from '../../../../base/browser/dom.js';
|
|
5
5
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
|
6
6
|
import { OverlayWidgetPositionPreference } from '../../../browser/editorBrowser.js';
|
|
7
7
|
import { registerEditorContribution, EditorContributionInstantiation } from '../../../browser/editorExtensions.js';
|
|
@@ -43,7 +43,7 @@ class ShowKeyboardWidget extends Disposable {
|
|
|
43
43
|
constructor(editor) {
|
|
44
44
|
super();
|
|
45
45
|
this.editor = editor;
|
|
46
|
-
this._domNode =
|
|
46
|
+
this._domNode = createElement('textarea');
|
|
47
47
|
this._domNode.className = 'iPadShowKeyboard';
|
|
48
48
|
this._register(addDisposableListener(this._domNode, 'touchstart', (e) => {
|
|
49
49
|
this.editor.focus();
|
|
@@ -13,6 +13,7 @@ import { ICodeEditorService } from '../../../browser/services/codeEditorService.
|
|
|
13
13
|
import { QuickInputService } from '../../../../platform/quickinput/browser/quickInputService.js';
|
|
14
14
|
import { createSingleCallFunction } from '../../../../base/common/functional.js';
|
|
15
15
|
import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
|
|
16
|
+
import { createElement } from '../../../../base/browser/dom.js';
|
|
16
17
|
|
|
17
18
|
registerCss(standaloneQuickInput);
|
|
18
19
|
let EditorScopedQuickInputService = class EditorScopedQuickInputService extends QuickInputService {
|
|
@@ -147,7 +148,7 @@ class QuickInputEditorWidget {
|
|
|
147
148
|
static { this.ID = 'editor.contrib.quickInputWidget'; }
|
|
148
149
|
constructor(codeEditor) {
|
|
149
150
|
this.codeEditor = codeEditor;
|
|
150
|
-
this.domNode =
|
|
151
|
+
this.domNode = createElement('div');
|
|
151
152
|
this.codeEditor.addOverlayWidget(this);
|
|
152
153
|
}
|
|
153
154
|
getId() {
|
|
@@ -66,7 +66,7 @@ export declare class StandaloneEditor extends StandaloneCodeEditor implements IS
|
|
|
66
66
|
export declare class StandaloneDiffEditor2 extends DiffEditorWidget implements IStandaloneDiffEditor {
|
|
67
67
|
private readonly _configurationService;
|
|
68
68
|
private readonly _standaloneThemeService;
|
|
69
|
-
constructor(domElement: HTMLElement, _options: Readonly<IStandaloneDiffEditorConstructionOptions> | undefined, instantiationService: IInstantiationService, contextKeyService: IContextKeyService, codeEditorService: ICodeEditorService, themeService: IStandaloneThemeService, notificationService: INotificationService, configurationService: IConfigurationService, contextMenuService: IContextMenuService, editorProgressService: IEditorProgressService, clipboardService: IClipboardService, accessibilitySignalService: IAccessibilitySignalService);
|
|
69
|
+
constructor(domElement: HTMLElement, _options: Readonly<IStandaloneDiffEditorConstructionOptions> | undefined, instantiationService: IInstantiationService, contextKeyService: IContextKeyService, codeEditorService: ICodeEditorService, themeService: IStandaloneThemeService, notificationService: INotificationService, configurationService: IConfigurationService, contextMenuService: IContextMenuService, editorProgressService: IEditorProgressService, clipboardService: IClipboardService, accessibilitySignalService: IAccessibilitySignalService, keybindingService: IKeybindingService);
|
|
70
70
|
dispose(): void;
|
|
71
71
|
updateOptions(newOptions: Readonly<IDiffEditorOptions & IGlobalEditorOptions>): void;
|
|
72
72
|
protected _createInnerEditor(instantiationService: IInstantiationService, container: HTMLElement, options: Readonly<IEditorOptions>): CodeEditorWidget;
|
|
@@ -51,7 +51,7 @@ let StandaloneCodeEditor = class StandaloneCodeEditor extends CodeEditorWidget {
|
|
|
51
51
|
constructor(domElement, _options, instantiationService, codeEditorService, commandService, contextKeyService, hoverService, keybindingService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService) {
|
|
52
52
|
const options = { ..._options };
|
|
53
53
|
options.ariaLabel = options.ariaLabel || StandaloneCodeEditorNLS.editorViewAccessibleLabel;
|
|
54
|
-
super(domElement, options, { isStandaloneEditor: true }, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService);
|
|
54
|
+
super(domElement, options, { isStandaloneEditor: true }, instantiationService, codeEditorService, commandService, contextKeyService, themeService, notificationService, accessibilityService, languageConfigurationService, languageFeaturesService, keybindingService);
|
|
55
55
|
if (keybindingService instanceof StandaloneKeybindingService) {
|
|
56
56
|
this._standaloneKeybindingService = keybindingService;
|
|
57
57
|
}
|
|
@@ -232,7 +232,7 @@ StandaloneEditor = ( __decorate([
|
|
|
232
232
|
( __param(15, ILanguageFeaturesService))
|
|
233
233
|
], StandaloneEditor));
|
|
234
234
|
let StandaloneDiffEditor2 = class StandaloneDiffEditor2 extends DiffEditorWidget {
|
|
235
|
-
constructor(domElement, _options, instantiationService, contextKeyService, codeEditorService, themeService, notificationService, configurationService, contextMenuService, editorProgressService, clipboardService, accessibilitySignalService) {
|
|
235
|
+
constructor(domElement, _options, instantiationService, contextKeyService, codeEditorService, themeService, notificationService, configurationService, contextMenuService, editorProgressService, clipboardService, accessibilitySignalService, keybindingService) {
|
|
236
236
|
const options = { ..._options };
|
|
237
237
|
updateConfigurationService(configurationService, options, true);
|
|
238
238
|
const themeDomRegistration = themeService.registerEditorContainer(domElement);
|
|
@@ -242,7 +242,7 @@ let StandaloneDiffEditor2 = class StandaloneDiffEditor2 extends DiffEditorWidget
|
|
|
242
242
|
if (typeof options.autoDetectHighContrast !== 'undefined') {
|
|
243
243
|
themeService.setAutoDetectHighContrast(Boolean(options.autoDetectHighContrast));
|
|
244
244
|
}
|
|
245
|
-
super(domElement, options, { isStandaloneEditor: true }, contextKeyService, instantiationService, codeEditorService, accessibilitySignalService, editorProgressService);
|
|
245
|
+
super(domElement, options, { isStandaloneEditor: true }, contextKeyService, instantiationService, codeEditorService, accessibilitySignalService, editorProgressService, keybindingService);
|
|
246
246
|
this._configurationService = configurationService;
|
|
247
247
|
this._standaloneThemeService = themeService;
|
|
248
248
|
this._register(themeDomRegistration);
|
|
@@ -289,7 +289,8 @@ StandaloneDiffEditor2 = ( __decorate([
|
|
|
289
289
|
( __param(8, IContextMenuService)),
|
|
290
290
|
( __param(9, IEditorProgressService)),
|
|
291
291
|
( __param(10, IClipboardService)),
|
|
292
|
-
( __param(11, IAccessibilitySignalService))
|
|
292
|
+
( __param(11, IAccessibilitySignalService)),
|
|
293
|
+
( __param(12, IKeybindingService))
|
|
293
294
|
], StandaloneDiffEditor2));
|
|
294
295
|
function createTextModel(modelService, languageService, value, languageId, uri) {
|
|
295
296
|
value = value || '';
|
|
@@ -54,6 +54,7 @@ export declare class StandaloneKeybindingService extends AbstractKeybindingServi
|
|
|
54
54
|
private _dynamicKeybindings;
|
|
55
55
|
private readonly _domNodeListeners;
|
|
56
56
|
constructor(contextKeyService: IContextKeyService, commandService: ICommandService, telemetryService: ITelemetryService, notificationService: INotificationService, logService: ILogService, codeEditorService: ICodeEditorService);
|
|
57
|
+
registerContainer(container: HTMLElement): IDisposable;
|
|
57
58
|
addDynamicKeybinding(command: string, keybinding: number, handler: ICommandHandler, when: ContextKeyExpression | undefined): IDisposable;
|
|
58
59
|
addDynamicKeybindings(rules: IKeybindingRule[]): IDisposable;
|
|
59
60
|
protected updateResolver(): void;
|