@codingame/monaco-vscode-api 16.0.6 → 16.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 +74 -0
- package/css.d.ts +2 -0
- package/css.js +43 -0
- package/monaco.d.ts +2 -2
- package/package.json +8 -8
- package/services.d.ts +2 -2
- package/services.js +10 -9
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +16 -5
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +3 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -1
- package/vscode/src/vs/base/browser/ui/aria/aria.js +3 -1
- package/vscode/src/vs/base/browser/ui/button/button.js +3 -1
- package/vscode/src/vs/base/browser/ui/codicons/codiconStyles.js +7 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +3 -1
- package/vscode/src/vs/base/browser/ui/countBadge/countBadge.js +3 -1
- package/vscode/src/vs/base/browser/ui/dnd/dnd.js +3 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +3 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +3 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +3 -1
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +3 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +3 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -1
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +3 -1
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +3 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.js +3 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -1
- package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.js +3 -1
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +3 -1
- package/vscode/src/vs/base/browser/ui/sash/sash.js +3 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +3 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +3 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +3 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/severityIcon.js +3 -1
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +3 -1
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +3 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +3 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +3 -1
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/css/decorationCssRuleExtractor.js +3 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/gpuMark/gpuMark.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +3 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +3 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +3 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +3 -1
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +1 -2
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerBody.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerInsertButton.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/dnd/browser/dnd.js +3 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +3 -1
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverController.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +3 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +3 -1
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +3 -1
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +3 -1
- package/vscode/src/vs/editor/contrib/links/browser/links.js +3 -1
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +3 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +3 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +3 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +3 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +4 -3
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +3 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +3 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +3 -1
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +3 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +3 -1
- package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +3 -1
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +3 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +3 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/opener/browser/link.js +3 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +3 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +3 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +3 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +3 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +1 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { show, hide } from '../../dom.js';
|
|
3
4
|
import { getProgressAcccessibilitySignalScheduler } from './progressAccessibilitySignal.js';
|
|
4
5
|
import { RunOnceScheduler } from '../../../common/async.js';
|
|
5
6
|
import { Disposable, MutableDisposable } from '../../../common/lifecycle.js';
|
|
6
7
|
import { isNumber } from '../../../common/types.js';
|
|
7
|
-
import './progressbar.css';
|
|
8
|
+
import * as progressbar from './progressbar.css';
|
|
8
9
|
|
|
10
|
+
registerCss(progressbar);
|
|
9
11
|
const CSS_DONE = 'done';
|
|
10
12
|
const CSS_ACTIVE = 'active';
|
|
11
13
|
const CSS_INFINITE = 'infinite';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { __decorate } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
4
|
import { getWindow, append, $, EventHelper, isHTMLElement } from '../../dom.js';
|
|
4
5
|
import { createStyleSheet } from '../../domStylesheets.js';
|
|
@@ -9,8 +10,9 @@ import { memoize } from '../../../common/decorators.js';
|
|
|
9
10
|
import { Emitter } from '../../../common/event.js';
|
|
10
11
|
import { DisposableStore, Disposable, toDisposable } from '../../../common/lifecycle.js';
|
|
11
12
|
import { isMacintosh } from '../../../common/platform.js';
|
|
12
|
-
import './sash.css';
|
|
13
|
+
import * as sash from './sash.css';
|
|
13
14
|
|
|
15
|
+
registerCss(sash);
|
|
14
16
|
const DEBUG = false;
|
|
15
17
|
var OrthogonalEdge;
|
|
16
18
|
(function (OrthogonalEdge) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { isChrome, getZoomFactor } from '../../browser.js';
|
|
3
4
|
import { getWindow, addDisposableListener, EventType, scheduleAtNextAnimationFrame } from '../../dom.js';
|
|
4
5
|
import { createFastDomNode } from '../../fastDomNode.js';
|
|
@@ -11,8 +12,9 @@ import { Emitter } from '../../../common/event.js';
|
|
|
11
12
|
import { dispose } from '../../../common/lifecycle.js';
|
|
12
13
|
import { isMacintosh } from '../../../common/platform.js';
|
|
13
14
|
import { Scrollable, ScrollbarVisibility } from '../../../common/scrollable.js';
|
|
14
|
-
import './media/scrollbars.css';
|
|
15
|
+
import * as scrollbars from './media/scrollbars.css';
|
|
15
16
|
|
|
17
|
+
registerCss(scrollbars);
|
|
16
18
|
const HIDE_TIMEOUT = 500;
|
|
17
19
|
const SCROLL_WHEEL_SENSITIVITY = 50;
|
|
18
20
|
class MouseWheelClassifierItem {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import '../list/listWidget.js';
|
|
3
4
|
import { SelectBoxList } from './selectBoxCustom.js';
|
|
4
5
|
import { SelectBoxNative } from './selectBoxNative.js';
|
|
5
6
|
import { Widget } from '../widget.js';
|
|
6
7
|
import { isMacintosh } from '../../../common/platform.js';
|
|
7
|
-
import './selectBox.css';
|
|
8
|
+
import * as selectBox from './selectBox.css';
|
|
8
9
|
|
|
10
|
+
registerCss(selectBox);
|
|
9
11
|
class SelectBox extends Widget {
|
|
10
12
|
constructor(options, selected, contextViewProvider, styles, selectBoxOptions) {
|
|
11
13
|
super();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { $ as $$1, append, addDisposableListener, EventType, EventHelper, addStandardDisposableListener, getWindow, getDomNodePagePosition, getTotalWidth, isAncestor } from '../../dom.js';
|
|
3
4
|
import { createStyleSheet } from '../../domStylesheets.js';
|
|
4
5
|
import { asCssValueWithDefault } from '../../cssValue.js';
|
|
@@ -15,9 +16,10 @@ import { KeyCode, KeyCodeUtils } from '../../../common/keyCodes.js';
|
|
|
15
16
|
import { Disposable } from '../../../common/lifecycle.js';
|
|
16
17
|
import { isMacintosh } from '../../../common/platform.js';
|
|
17
18
|
import { ScrollbarVisibility } from '../../../common/scrollable.js';
|
|
18
|
-
import './selectBoxCustom.css';
|
|
19
|
+
import * as selectBoxCustom from './selectBoxCustom.css';
|
|
19
20
|
import { localize } from '../../../../nls.js';
|
|
20
21
|
|
|
22
|
+
registerCss(selectBoxCustom);
|
|
21
23
|
const $ = $$1;
|
|
22
24
|
const SELECT_OPTION_ENTRY_TEMPLATE_ID = 'selectOption.entry.template';
|
|
23
25
|
class SelectListRenderer {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as severityIcon from './media/severityIcon.css';
|
|
3
4
|
import { Codicon } from '../../../common/codicons.js';
|
|
4
5
|
import { ThemeIcon } from '../../../common/themables.js';
|
|
5
6
|
import Severity$1 from '../../../common/severity.js';
|
|
6
7
|
|
|
8
|
+
registerCss(severityIcon);
|
|
7
9
|
var SeverityIcon;
|
|
8
10
|
(function (SeverityIcon) {
|
|
9
11
|
function className(severity) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { append, $, scheduleAtNextAnimationFrame, getWindow, addDisposableListener } from '../../dom.js';
|
|
3
4
|
import { DomEmitter } from '../../event.js';
|
|
4
5
|
import { Orientation, Sash, SashState } from '../sash/sash.js';
|
|
@@ -10,8 +11,9 @@ import { Disposable, combinedDisposable, toDisposable, dispose } from '../../../
|
|
|
10
11
|
import { clamp } from '../../../common/numbers.js';
|
|
11
12
|
import { Scrollable, ScrollbarVisibility } from '../../../common/scrollable.js';
|
|
12
13
|
import { isUndefined } from '../../../common/types.js';
|
|
13
|
-
import './splitview.css';
|
|
14
|
+
import * as splitview from './splitview.css';
|
|
14
15
|
|
|
16
|
+
registerCss(splitview);
|
|
15
17
|
const defaultStyles = {
|
|
16
18
|
separatorBorder: Color.transparent
|
|
17
19
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { append, $, clearNode, getContentHeight, getContentWidth } from '../../dom.js';
|
|
3
4
|
import { createStyleSheet } from '../../domStylesheets.js';
|
|
4
5
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
@@ -8,9 +9,10 @@ import { SplitView } from '../splitview/splitview.js';
|
|
|
8
9
|
import { Event, Emitter } from '../../../common/event.js';
|
|
9
10
|
import { Disposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
10
11
|
import { ScrollbarVisibility } from '../../../common/scrollable.js';
|
|
11
|
-
import './table.css';
|
|
12
|
+
import * as table from './table.css';
|
|
12
13
|
import { Orientation } from '../sash/sash.js';
|
|
13
14
|
|
|
15
|
+
registerCss(table);
|
|
14
16
|
class TableListRenderer {
|
|
15
17
|
static { this.TemplateId = 'row'; }
|
|
16
18
|
constructor(columns, renderers, getColumnSize) {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { BaseActionViewItem } from '../actionbar/actionViewItems.js';
|
|
3
4
|
import { Widget } from '../widget.js';
|
|
4
5
|
import { Codicon } from '../../../common/codicons.js';
|
|
5
6
|
import { ThemeIcon } from '../../../common/themables.js';
|
|
6
7
|
import { Emitter } from '../../../common/event.js';
|
|
7
8
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
8
|
-
import './toggle.css';
|
|
9
|
+
import * as toggle from './toggle.css';
|
|
9
10
|
import { isActiveElement, $, addDisposableListener, EventType } from '../../dom.js';
|
|
10
11
|
import { getDefaultHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
11
12
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
12
13
|
|
|
14
|
+
registerCss(toggle);
|
|
13
15
|
const unthemedToggleStyles = {
|
|
14
16
|
inputActiveOptionBorder: '#007ACC00',
|
|
15
17
|
inputActiveOptionForeground: '#FFFFFF',
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { ActionsOrientation, ActionBar } from '../actionbar/actionbar.js';
|
|
3
4
|
import { DropdownMenuActionViewItem } from '../dropdown/dropdownActionViewItem.js';
|
|
4
5
|
import { SubmenuAction, Action } from '../../../common/actions.js';
|
|
@@ -6,10 +7,11 @@ import { Codicon } from '../../../common/codicons.js';
|
|
|
6
7
|
import { ThemeIcon } from '../../../common/themables.js';
|
|
7
8
|
import { EventMultiplexer } from '../../../common/event.js';
|
|
8
9
|
import { Disposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
9
|
-
import './toolbar.css';
|
|
10
|
+
import * as toolbar from './toolbar.css';
|
|
10
11
|
import { localize } from '../../../../nls.js';
|
|
11
12
|
import { createInstantHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
12
13
|
|
|
14
|
+
registerCss(toolbar);
|
|
13
15
|
class ToolBar extends Disposable {
|
|
14
16
|
constructor(container, contextMenuProvider, options = { orientation: ActionsOrientation.HORIZONTAL }) {
|
|
15
17
|
super();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { append, $, clearNode, h, addDisposableListener, isKeyboardEvent, hasParentWithClass, isEditableElement, isActiveElement } from '../../dom.js';
|
|
3
4
|
import { createStyleSheet } from '../../domStylesheets.js';
|
|
4
5
|
import { asCssValueWithDefault } from '../../cssValue.js';
|
|
@@ -23,7 +24,7 @@ import { FuzzyScore, fuzzyScore } from '../../../common/filters.js';
|
|
|
23
24
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
24
25
|
import { Disposable, DisposableStore, toDisposable, dispose } from '../../../common/lifecycle.js';
|
|
25
26
|
import { clamp } from '../../../common/numbers.js';
|
|
26
|
-
import './media/tree.css';
|
|
27
|
+
import * as tree from './media/tree.css';
|
|
27
28
|
import { localize } from '../../../../nls.js';
|
|
28
29
|
import { createInstantHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
29
30
|
import '../../../common/observableInternal/index.js';
|
|
@@ -31,6 +32,7 @@ import { alert } from '../aria/aria.js';
|
|
|
31
32
|
import { autorun } from '../../../common/observableInternal/autorun.js';
|
|
32
33
|
import { constObservable } from '../../../common/observableInternal/utils.js';
|
|
33
34
|
|
|
35
|
+
registerCss(tree);
|
|
34
36
|
class TreeElementsDragAndDropData extends ElementsDragAndDropData {
|
|
35
37
|
set context(context) {
|
|
36
38
|
this.data.context = context;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import './nativeEditContext.css';
|
|
4
|
+
import * as nativeEditContext from './nativeEditContext.css';
|
|
4
5
|
import { isFirefox } from '../../../../../base/browser/browser.js';
|
|
5
6
|
import { getWindow, addDisposableListener, getWindowId, getActiveWindow } from '../../../../../base/browser/dom.js';
|
|
6
7
|
import { FastDomNode } from '../../../../../base/browser/fastDomNode.js';
|
|
@@ -22,6 +23,7 @@ import { EditContext } from './editContextFactory.js';
|
|
|
22
23
|
import { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.service.js';
|
|
23
24
|
import { NativeEditContextRegistry } from './nativeEditContextRegistry.js';
|
|
24
25
|
|
|
26
|
+
registerCss(nativeEditContext);
|
|
25
27
|
var CompositionClassName;
|
|
26
28
|
(function (CompositionClassName) {
|
|
27
29
|
CompositionClassName["NONE"] = "edit-context-composition-none";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import './textAreaEditContext.css';
|
|
4
|
+
import * as textAreaEditContext from './textAreaEditContext.css';
|
|
4
5
|
import { localize } from '../../../../../nls.js';
|
|
5
6
|
import { isFirefox, isSafari, isAndroid, isChrome } from '../../../../../base/browser/browser.js';
|
|
6
7
|
import { createFastDomNode } from '../../../../../base/browser/fastDomNode.js';
|
|
@@ -32,6 +33,7 @@ import { getDataToCopy } from '../clipboardUtils.js';
|
|
|
32
33
|
import { TextAreaState } from './textAreaEditContextState.js';
|
|
33
34
|
import { getMapForWordSeparators, WordCharacterClass } from '../../../../common/core/wordCharacterClassifier.js';
|
|
34
35
|
|
|
36
|
+
registerCss(textAreaEditContext);
|
|
35
37
|
class VisibleTextAreaData {
|
|
36
38
|
constructor(_context, modelLineNumber, distanceToModelLineStart, widthOfHiddenLineTextBefore, distanceToModelLineEnd) {
|
|
37
39
|
this._context = _context;
|
|
@@ -37,7 +37,7 @@ class MouseHandler extends ViewEventHandler {
|
|
|
37
37
|
this._register(mouseEvents.onMouseMove(this.viewHelper.viewDomNode, (e) => {
|
|
38
38
|
this._onMouseMove(e);
|
|
39
39
|
if (!this._mouseLeaveMonitor) {
|
|
40
|
-
this._mouseLeaveMonitor = addDisposableListener(this.viewHelper.viewDomNode.
|
|
40
|
+
this._mouseLeaveMonitor = addDisposableListener(this.viewHelper.viewDomNode.getRootNode(), 'mousemove', (e) => {
|
|
41
41
|
if (!this.viewHelper.viewDomNode.contains(e.target)) {
|
|
42
42
|
this._onMouseLeave(( new EditorMouseEvent(e, false, this.viewHelper.viewDomNode)));
|
|
43
43
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { $, getActiveDocument } from '../../../../base/browser/dom.js';
|
|
3
4
|
import { Disposable, toDisposable } from '../../../../base/common/lifecycle.js';
|
|
4
|
-
import './media/decorationCssRuleExtractor.css';
|
|
5
|
+
import * as decorationCssRuleExtractor from './media/decorationCssRuleExtractor.css';
|
|
5
6
|
|
|
7
|
+
registerCss(decorationCssRuleExtractor);
|
|
6
8
|
class DecorationCssRuleExtractor extends Disposable {
|
|
7
9
|
constructor() {
|
|
8
10
|
super();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import './hover.css';
|
|
4
|
+
import * as hover from './hover.css';
|
|
4
5
|
import { DisposableStore, toDisposable, MutableDisposable } from '../../../../base/common/lifecycle.js';
|
|
5
6
|
import { Emitter } from '../../../../base/common/event.js';
|
|
6
7
|
import { $ as $$1, getWindow, addDisposableListener, isHTMLElement, prepend, append, getDomNodeZoomLevel } from '../../../../base/browser/dom.js';
|
|
@@ -22,6 +23,7 @@ import { status } from '../../../../base/browser/ui/aria/aria.js';
|
|
|
22
23
|
import { TimeoutTimer } from '../../../../base/common/async.js';
|
|
23
24
|
import { isNumber } from '../../../../base/common/types.js';
|
|
24
25
|
|
|
26
|
+
registerCss(hover);
|
|
25
27
|
const $ = $$1;
|
|
26
28
|
var Constants;
|
|
27
29
|
(function (Constants) {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
3
|
-
import './blockDecorations.css';
|
|
4
|
+
import * as blockDecorations from './blockDecorations.css';
|
|
4
5
|
import { ViewPart } from '../../view/viewPart.js';
|
|
5
6
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
6
7
|
|
|
8
|
+
registerCss(blockDecorations);
|
|
7
9
|
class BlockDecorations extends ViewPart {
|
|
8
10
|
constructor(context) {
|
|
9
11
|
super(context);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as currentLineHighlight from './currentLineHighlight.css';
|
|
3
4
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
4
5
|
import { editorLineHighlight, editorLineHighlightBorder } from '../../../common/core/editorColorRegistry.js';
|
|
5
6
|
import { equals } from '../../../../base/common/arrays.js';
|
|
@@ -9,6 +10,7 @@ import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
|
9
10
|
import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
10
11
|
import { Position } from '../../../common/core/position.js';
|
|
11
12
|
|
|
13
|
+
registerCss(currentLineHighlight);
|
|
12
14
|
class AbstractLineHighlightOverlay extends DynamicViewOverlay {
|
|
13
15
|
constructor(context) {
|
|
14
16
|
super();
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as decorations from './decorations.css';
|
|
3
4
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
4
5
|
import { HorizontalRange } from '../../view/renderingContext.js';
|
|
5
6
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
6
7
|
import { Range } from '../../../common/core/range.js';
|
|
7
8
|
|
|
9
|
+
registerCss(decorations);
|
|
8
10
|
class DecorationsOverlay extends DynamicViewOverlay {
|
|
9
11
|
constructor(context) {
|
|
10
12
|
super();
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
3
4
|
import { ArrayQueue } from '../../../../base/common/arrays.js';
|
|
4
|
-
import './glyphMargin.css';
|
|
5
|
+
import * as glyphMargin from './glyphMargin.css';
|
|
5
6
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
6
7
|
import { ViewPart } from '../../view/viewPart.js';
|
|
7
8
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
@@ -9,6 +10,7 @@ import { Position } from '../../../common/core/position.js';
|
|
|
9
10
|
import { Range } from '../../../common/core/range.js';
|
|
10
11
|
import { GlyphMarginLane } from '../../../common/model.js';
|
|
11
12
|
|
|
13
|
+
registerCss(glyphMargin);
|
|
12
14
|
class DecorationToRender {
|
|
13
15
|
constructor(startLineNumber, endLineNumber, className, tooltip, zIndex) {
|
|
14
16
|
this.startLineNumber = startLineNumber;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
3
4
|
import { ViewLineOptions } from '../viewLines/viewLineOptions.js';
|
|
4
|
-
import './gpuMark.css';
|
|
5
|
+
import * as gpuMark from './gpuMark.css';
|
|
5
6
|
|
|
7
|
+
registerCss(gpuMark);
|
|
6
8
|
class GpuMarkOverlay extends DynamicViewOverlay {
|
|
7
9
|
static { this.CLASS_NAME = 'gpu-mark'; }
|
|
8
10
|
constructor(context, _viewGpuContext) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as indentGuides from './indentGuides.css';
|
|
3
4
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
4
5
|
import { editorBracketPairGuideActiveBackground1, editorBracketPairGuideBackground1, editorBracketHighlightingForeground1, editorBracketPairGuideActiveBackground2, editorBracketPairGuideBackground2, editorBracketHighlightingForeground2, editorBracketPairGuideActiveBackground3, editorBracketPairGuideBackground3, editorBracketHighlightingForeground3, editorBracketPairGuideActiveBackground4, editorBracketPairGuideBackground4, editorBracketHighlightingForeground4, editorBracketPairGuideActiveBackground5, editorBracketPairGuideBackground5, editorBracketHighlightingForeground5, editorBracketPairGuideActiveBackground6, editorBracketPairGuideBackground6, editorBracketHighlightingForeground6, editorActiveIndentGuide1, editorIndentGuide1, editorActiveIndentGuide2, editorIndentGuide2, editorActiveIndentGuide3, editorIndentGuide3, editorActiveIndentGuide4, editorIndentGuide4, editorActiveIndentGuide5, editorIndentGuide5, editorActiveIndentGuide6, editorIndentGuide6 } from '../../../common/core/editorColorRegistry.js';
|
|
5
6
|
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
|
|
@@ -10,6 +11,7 @@ import { isDefined } from '../../../../base/common/types.js';
|
|
|
10
11
|
import { BracketPairGuidesClassNames } from '../../../common/model/guidesTextModelPart.js';
|
|
11
12
|
import { HorizontalGuidesState, IndentGuide } from '../../../common/textModelGuides.js';
|
|
12
13
|
|
|
14
|
+
registerCss(indentGuides);
|
|
13
15
|
class IndentGuidesOverlay extends DynamicViewOverlay {
|
|
14
16
|
constructor(context) {
|
|
15
17
|
super();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as lineNumbers from './lineNumbers.css';
|
|
3
4
|
import { isLinux } from '../../../../base/common/platform.js';
|
|
4
5
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
5
6
|
import { EditorOption, RenderLineNumbersType } from '../../../common/config/editorOptions.js';
|
|
@@ -8,6 +9,7 @@ import { Range } from '../../../common/core/range.js';
|
|
|
8
9
|
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
|
|
9
10
|
import { editorLineNumbers, editorDimmedLineNumber } from '../../../common/core/editorColorRegistry.js';
|
|
10
11
|
|
|
12
|
+
registerCss(lineNumbers);
|
|
11
13
|
class LineNumbersOverlay extends DynamicViewOverlay {
|
|
12
14
|
static { this.CLASS_NAME = 'line-numbers'; }
|
|
13
15
|
constructor(context) {
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as linesDecorations from './linesDecorations.css';
|
|
3
4
|
import { DedupOverlay, DecorationToRender } from '../glyphMargin/glyphMargin.js';
|
|
4
5
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
5
6
|
|
|
7
|
+
registerCss(linesDecorations);
|
|
6
8
|
class LinesDecorationsOverlay extends DedupOverlay {
|
|
7
9
|
constructor(context) {
|
|
8
10
|
super();
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as margin from './margin.css';
|
|
3
4
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
4
5
|
import { ViewPart } from '../../view/viewPart.js';
|
|
5
6
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
6
7
|
|
|
8
|
+
registerCss(margin);
|
|
7
9
|
class Margin extends ViewPart {
|
|
8
10
|
static { this.CLASS_NAME = 'glyph-margin'; }
|
|
9
11
|
static { this.OUTER_CLASS_NAME = 'margin'; }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as marginDecorations from './marginDecorations.css';
|
|
3
4
|
import { DedupOverlay, DecorationToRender } from '../glyphMargin/glyphMargin.js';
|
|
4
5
|
|
|
6
|
+
registerCss(marginDecorations);
|
|
5
7
|
class MarginViewLineDecorationsOverlay extends DedupOverlay {
|
|
6
8
|
constructor(context) {
|
|
7
9
|
super();
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as minimap from './minimap.css';
|
|
3
4
|
import { addStandardDisposableListener, EventType, getDomNodePagePosition, addDisposableListener } from '../../../../base/browser/dom.js';
|
|
4
5
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
5
6
|
import { GlobalPointerMoveMonitor } from '../../../../base/browser/globalPointerMoveMonitor.js';
|
|
@@ -37,6 +38,7 @@ import { createSingleCallFunction } from '../../../../base/common/functional.js'
|
|
|
37
38
|
import { LRUCache } from '../../../../base/common/map.js';
|
|
38
39
|
import { DEFAULT_FONT_FAMILY } from '../../../../base/browser/fonts.js';
|
|
39
40
|
|
|
41
|
+
registerCss(minimap);
|
|
40
42
|
const POINTER_DRAG_RESET_DISTANCE = 140;
|
|
41
43
|
const GUTTER_DECORATION_WIDTH = 2;
|
|
42
44
|
class MinimapOptions {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as overlayWidgets from './overlayWidgets.css';
|
|
3
4
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
4
5
|
import { OverlayWidgetPositionPreference } from '../../editorBrowser.js';
|
|
5
6
|
import { ViewPart, PartFingerprints, PartFingerprint } from '../../view/viewPart.js';
|
|
6
7
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
7
8
|
import { getDomNodePagePosition } from '../../../../base/browser/dom.js';
|
|
8
9
|
|
|
10
|
+
registerCss(overlayWidgets);
|
|
9
11
|
class ViewOverlayWidgets extends ViewPart {
|
|
10
12
|
constructor(context, viewDomNode) {
|
|
11
13
|
super(context);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as rulers from './rulers.css';
|
|
3
4
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
4
5
|
import { ViewPart } from '../../view/viewPart.js';
|
|
5
6
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
6
7
|
|
|
8
|
+
registerCss(rulers);
|
|
7
9
|
class Rulers extends ViewPart {
|
|
8
10
|
constructor(context) {
|
|
9
11
|
super(context);
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as scrollDecoration from './scrollDecoration.css';
|
|
3
4
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
4
5
|
import { ViewPart } from '../../view/viewPart.js';
|
|
5
6
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
6
7
|
|
|
8
|
+
registerCss(scrollDecoration);
|
|
7
9
|
class ScrollDecorationViewPart extends ViewPart {
|
|
8
10
|
constructor(context) {
|
|
9
11
|
super(context);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as selections from './selections.css';
|
|
3
4
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
4
5
|
import '../../../../platform/theme/common/colorUtils.js';
|
|
5
6
|
import '../../../../platform/theme/common/colors/baseColors.js';
|
|
@@ -15,6 +16,7 @@ import '../../../../platform/theme/common/colors/searchColors.js';
|
|
|
15
16
|
import { registerThemingParticipant } from '../../../../platform/theme/common/themeService.js';
|
|
16
17
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
17
18
|
|
|
19
|
+
registerCss(selections);
|
|
18
20
|
var CornerStyle;
|
|
19
21
|
(function (CornerStyle) {
|
|
20
22
|
CornerStyle[CornerStyle["EXTERN"] = 0] = "EXTERN";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as viewCursors from './viewCursors.css';
|
|
3
4
|
import { createFastDomNode } from '../../../../base/browser/fastDomNode.js';
|
|
4
5
|
import { TimeoutTimer } from '../../../../base/common/async.js';
|
|
5
6
|
import { ViewPart } from '../../view/viewPart.js';
|
|
@@ -11,6 +12,7 @@ import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
|
11
12
|
import { CursorChangeReason } from '../../../common/cursorEvents.js';
|
|
12
13
|
import { WindowIntervalTimer, getWindow } from '../../../../base/browser/dom.js';
|
|
13
14
|
|
|
15
|
+
registerCss(viewCursors);
|
|
14
16
|
class ViewCursors extends ViewPart {
|
|
15
17
|
static { this.BLINK_INTERVAL = 500; }
|
|
16
18
|
constructor(context) {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { MOUSE_CURSOR_TEXT_CSS_CLASS_NAME } from '../../../../base/browser/ui/mouseCursor/mouseCursor.js';
|
|
3
4
|
import { RunOnceScheduler } from '../../../../base/common/async.js';
|
|
4
5
|
import { isLinux } from '../../../../base/common/platform.js';
|
|
5
6
|
import { Constants } from '../../../../base/common/uint.js';
|
|
6
|
-
import './viewLines.css';
|
|
7
|
+
import * as viewLines from './viewLines.css';
|
|
7
8
|
import { applyFontInfo } from '../../config/domFontInfo.js';
|
|
8
9
|
import { LineVisibleRanges, HorizontalRange, HorizontalPosition } from '../../view/renderingContext.js';
|
|
9
10
|
import { VisibleLinesCollection } from '../../view/viewLayer.js';
|
|
@@ -17,6 +18,7 @@ import { ScrollType } from '../../../common/editorCommon.js';
|
|
|
17
18
|
import { VerticalRevealType } from '../../../common/viewEvents.js';
|
|
18
19
|
import { ViewLineOptions } from './viewLineOptions.js';
|
|
19
20
|
|
|
21
|
+
registerCss(viewLines);
|
|
20
22
|
class LastRenderedData {
|
|
21
23
|
constructor() {
|
|
22
24
|
this._currentVisibleRange = ( new Range(1, 1, 1, 1));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as whitespace from './whitespace.css';
|
|
3
4
|
import { DynamicViewOverlay } from '../../view/dynamicViewOverlay.js';
|
|
4
5
|
import { EditorOption } from '../../../common/config/editorOptions.js';
|
|
5
6
|
import { firstNonWhitespaceIndex, lastNonWhitespaceIndex } from '../../../../base/common/strings.js';
|
|
@@ -8,6 +9,7 @@ import { LineRange } from '../../../common/viewLayout/viewLineRenderer.js';
|
|
|
8
9
|
import { Position } from '../../../common/core/position.js';
|
|
9
10
|
import { editorWhitespaces } from '../../../common/core/editorColorRegistry.js';
|
|
10
11
|
|
|
12
|
+
registerCss(whitespace);
|
|
11
13
|
class WhitespaceOverlay extends DynamicViewOverlay {
|
|
12
14
|
constructor(context) {
|
|
13
15
|
super();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
4
|
import '../../services/markerDecorations.js';
|
|
4
5
|
import { DragAndDropObserver, getWindow, scheduleAtNextAnimationFrame } from '../../../../base/browser/dom.js';
|
|
@@ -7,7 +8,7 @@ import { createEventDeliveryQueue, Emitter } from '../../../../base/common/event
|
|
|
7
8
|
import { hash } from '../../../../base/common/hash.js';
|
|
8
9
|
import { Disposable, dispose } from '../../../../base/common/lifecycle.js';
|
|
9
10
|
import { Schemas } from '../../../../base/common/network.js';
|
|
10
|
-
import './editor.css';
|
|
11
|
+
import * as editor from './editor.css';
|
|
11
12
|
import { applyFontInfo } from '../../config/domFontInfo.js';
|
|
12
13
|
import { EditorConfiguration } from '../../config/editorConfiguration.js';
|
|
13
14
|
import { TabFocus } from '../../config/tabFocus.js';
|
|
@@ -62,6 +63,7 @@ import { MenuId } from '../../../../platform/actions/common/actions.js';
|
|
|
62
63
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
63
64
|
|
|
64
65
|
var CodeEditorWidget_1;
|
|
66
|
+
registerCss(editor);
|
|
65
67
|
let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
66
68
|
static { CodeEditorWidget_1 = this; }
|
|
67
69
|
static { this.dropIntoEditorDecorationOptions = ModelDecorationOptions.register({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { __decorate, __param } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
3
4
|
import { reset, addStandardDisposableListener, addDisposableListener } from '../../../../../base/browser/dom.js';
|
|
4
5
|
import { createTrustedTypesPolicy } from '../../../../../base/browser/trustedTypes.js';
|
|
@@ -27,12 +28,13 @@ import { AccessibilitySignal } from '../../../../../platform/accessibilitySignal
|
|
|
27
28
|
import { IAccessibilitySignalService } from '../../../../../platform/accessibilitySignal/browser/accessibilitySignalService.service.js';
|
|
28
29
|
import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
|
|
29
30
|
import { registerIcon } from '../../../../../platform/theme/common/iconRegistry.js';
|
|
30
|
-
import './accessibleDiffViewer.css';
|
|
31
|
+
import * as accessibleDiffViewer from './accessibleDiffViewer.css';
|
|
31
32
|
import { toAction } from '../../../../../base/common/actions.js';
|
|
32
33
|
import { transaction, observableValue, subtransaction } from '../../../../../base/common/observableInternal/base.js';
|
|
33
34
|
import { derivedWithStore, derived } from '../../../../../base/common/observableInternal/derived.js';
|
|
34
35
|
import { autorun, autorunWithStore } from '../../../../../base/common/observableInternal/autorun.js';
|
|
35
36
|
|
|
37
|
+
registerCss(accessibleDiffViewer);
|
|
36
38
|
const accessibleDiffViewerInsertIcon = registerIcon('diff-review-insert', Codicon.add, ( localize(161, 'Icon for \'Insert\' in accessible diff viewer.')));
|
|
37
39
|
const accessibleDiffViewerRemoveIcon = registerIcon('diff-review-remove', Codicon.remove, ( localize(162, 'Icon for \'Remove\' in accessible diff viewer.')));
|
|
38
40
|
const accessibleDiffViewerCloseIcon = registerIcon('diff-review-close', Codicon.close, ( localize(163, 'Icon for \'Close\' in accessible diff viewer.')));
|