@codingame/monaco-vscode-api 16.0.4 → 16.1.0-shadow-root.1
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 +51 -0
- package/css.d.ts +2 -0
- package/css.js +40 -0
- package/monaco.d.ts +2 -2
- package/package.json +8 -8
- package/services.d.ts +2 -2
- package/services.js +6 -5
- 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
package/README.md
CHANGED
|
@@ -323,6 +323,57 @@ npm run start:debugServer
|
|
|
323
323
|
|
|
324
324
|
See the [VSCode Server](https://github.com/CodinGame/monaco-vscode-api/wiki/How-to-install-and-use-VSCode-server-with-monaco‐vscode‐api) wiki page.
|
|
325
325
|
|
|
326
|
+
## Shadow dom (⚠️ beta ⚠️)
|
|
327
|
+
|
|
328
|
+
The library supports shadow-dom.
|
|
329
|
+
|
|
330
|
+
⚠️ VSCode itself does support shadow dom, and there are multiple parts that needed to be patched in order for it to work.
|
|
331
|
+
|
|
332
|
+
There are multiple benefits of using it:
|
|
333
|
+
- Your custom global style won't impact the VSCode workbench style (for instance if you did override the default [box-sizing](https://developer.mozilla.org/en-US/docs/Web/CSS/box-sizing))
|
|
334
|
+
- The VSCode styles won't impact other parts of your app
|
|
335
|
+
- You page head won't be polluted with dozen of css files from VSCode
|
|
336
|
+
|
|
337
|
+
### How to use it
|
|
338
|
+
|
|
339
|
+
If the provided container element is a child of a shadow dom element, the styles will be injected in both the main page and the shadow root. That's it.
|
|
340
|
+
|
|
341
|
+
### Prerequisites
|
|
342
|
+
|
|
343
|
+
In order to be able to load the static css files in the shadow dom as well. Your bundler configuration needs to be adapted so that importing css files doesn't load their content in the page head, but instead just returns the file content as default. It can be achieved with most bundlers with some configurations.
|
|
344
|
+
|
|
345
|
+
#### Webpack
|
|
346
|
+
Add this rule in your configuration:
|
|
347
|
+
```typescript
|
|
348
|
+
{
|
|
349
|
+
test: /node_modules\/(@codingame\/monaco-vscode|vscode|monaco-editor).*\.css$/,
|
|
350
|
+
type: 'asset/source'
|
|
351
|
+
}
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
#### Vite
|
|
355
|
+
Add this plugin in your configuration:
|
|
356
|
+
```typescript
|
|
357
|
+
{
|
|
358
|
+
name: 'load-vscode-css-as-string',
|
|
359
|
+
enforce: 'pre',
|
|
360
|
+
async resolveId(source, importer, options) {
|
|
361
|
+
const resolved = (await this.resolve(source, importer, options))!
|
|
362
|
+
if (
|
|
363
|
+
resolved.id.match(
|
|
364
|
+
/node_modules\/(@codingame\/monaco-vscode|vscode|monaco-editor).*\.css$/
|
|
365
|
+
)
|
|
366
|
+
) {
|
|
367
|
+
return {
|
|
368
|
+
...resolved,
|
|
369
|
+
id: resolved.id + '?inline'
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
return undefined
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
```
|
|
376
|
+
|
|
326
377
|
## Troubleshooting
|
|
327
378
|
|
|
328
379
|
If something doesn't work, make sure to check out the [Troubleshooting](https://github.com/CodinGame/monaco-vscode-api/wiki/Troubleshooting) wiki page.
|
package/css.d.ts
ADDED
package/css.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
const styles = [];
|
|
4
|
+
function registerCss(module) {
|
|
5
|
+
const cssContent = module.default;
|
|
6
|
+
if (typeof cssContent === 'string') {
|
|
7
|
+
const sheet = new CSSStyleSheet();
|
|
8
|
+
sheet.replaceSync(cssContent);
|
|
9
|
+
const fontFaces = Array.from(sheet.cssRules)
|
|
10
|
+
.filter((rule) => rule instanceof CSSFontFaceRule)
|
|
11
|
+
.map((r) => r.cssText);
|
|
12
|
+
if (fontFaces.length > 0) {
|
|
13
|
+
const fontFaceStyle = document.createElement('style');
|
|
14
|
+
fontFaceStyle.setAttribute('type', 'text/css');
|
|
15
|
+
fontFaceStyle.appendChild(document.createTextNode(fontFaces.join('\n')));
|
|
16
|
+
document.head.insertBefore(fontFaceStyle, document.head.firstChild);
|
|
17
|
+
}
|
|
18
|
+
styles.push(cssContent);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function getInjectElement(target) {
|
|
22
|
+
const root = target.getRootNode();
|
|
23
|
+
if (root instanceof ShadowRoot) {
|
|
24
|
+
return root;
|
|
25
|
+
}
|
|
26
|
+
return document.head;
|
|
27
|
+
}
|
|
28
|
+
function injectCss(target) {
|
|
29
|
+
const root = getInjectElement(target);
|
|
30
|
+
if (root instanceof ShadowRoot && styles.length === 0) {
|
|
31
|
+
console.error("@codingame/monaco-vscode-api was loaded inside a shadow dom, but it's unable to load the css into it because the bundler configuration wasn't applied properly: imported css files should export their content as default");
|
|
32
|
+
}
|
|
33
|
+
for (const style of styles) {
|
|
34
|
+
const styleEl = document.createElement('style');
|
|
35
|
+
styleEl.appendChild(document.createTextNode(style));
|
|
36
|
+
root.appendChild(styleEl);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { injectCss, registerCss };
|
package/monaco.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { IJSONSchema } from "./vscode/src/vs/base/common/jsonSchema.js";
|
|
|
12
12
|
import { registerColor } from "./vscode/src/vs/platform/theme/common/colorRegistry.js";
|
|
13
13
|
import { URI } from "./vscode/src/vs/base/common/uri.js";
|
|
14
14
|
import type { IFileDeleteOptions } from "./vscode/src/vs/platform/files/common/files.js";
|
|
15
|
-
import type { ITextFileEditorModel } from "@codingame/monaco-vscode-
|
|
15
|
+
import type { ITextFileEditorModel } from "@codingame/monaco-vscode-4893679b-56e5-52c5-a8fb-c366cce9660f-common/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
16
16
|
import { ContextKeyExpr, RawContextKey } from "./vscode/src/vs/platform/contextkey/common/contextkey.js";
|
|
17
17
|
import { KeybindingResolver } from "./vscode/src/vs/platform/keybinding/common/keybindingResolver.js";
|
|
18
18
|
import { ResolvedKeybindingItem } from "./vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js";
|
|
@@ -20,7 +20,7 @@ import { Event } from "./vscode/src/vs/base/common/event.js";
|
|
|
20
20
|
import { IKeybindingService } from "./vscode/src/vs/platform/keybinding/common/keybinding.service.js";
|
|
21
21
|
export { EditorContributionInstantiation, registerEditorAction, registerEditorContribution, registerDiffEditorContribution, registerMultiEditorAction, EditorAction, EditorCommand } from "./vscode/src/vs/editor/browser/editorExtensions.js";
|
|
22
22
|
export type { IEditorContribution, IDiffEditorContribution } from "./vscode/src/vs/editor/common/editorCommon.js";
|
|
23
|
-
export type { ITextFileEditorModelSaveEvent } from "@codingame/monaco-vscode-
|
|
23
|
+
export type { ITextFileEditorModelSaveEvent } from "@codingame/monaco-vscode-4893679b-56e5-52c5-a8fb-c366cce9660f-common/vscode/vs/workbench/services/textfile/common/textfiles";
|
|
24
24
|
export declare function writeFile(uri: URI, content: string): Promise<void>;
|
|
25
25
|
export declare function deleteFile(uri: URI, options?: Partial<IFileDeleteOptions>): Promise<void>;
|
|
26
26
|
export declare function createModelReference(resource: URI, content?: string): Promise<IReference<ITextFileEditorModel>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "16.0.
|
|
3
|
+
"version": "16.1.0-shadow-root.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@c4312/eventsource-umd": "3.0.5",
|
|
19
|
-
"@codingame/monaco-vscode-base-service-override": "16.0.
|
|
20
|
-
"@codingame/monaco-vscode-environment-service-override": "16.0.
|
|
21
|
-
"@codingame/monaco-vscode-extensions-service-override": "16.0.
|
|
22
|
-
"@codingame/monaco-vscode-files-service-override": "16.0.
|
|
23
|
-
"@codingame/monaco-vscode-host-service-override": "16.0.
|
|
24
|
-
"@codingame/monaco-vscode-layout-service-override": "16.0.
|
|
25
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "16.0.
|
|
19
|
+
"@codingame/monaco-vscode-base-service-override": "16.1.0-shadow-root.1",
|
|
20
|
+
"@codingame/monaco-vscode-environment-service-override": "16.1.0-shadow-root.1",
|
|
21
|
+
"@codingame/monaco-vscode-extensions-service-override": "16.1.0-shadow-root.1",
|
|
22
|
+
"@codingame/monaco-vscode-files-service-override": "16.1.0-shadow-root.1",
|
|
23
|
+
"@codingame/monaco-vscode-host-service-override": "16.1.0-shadow-root.1",
|
|
24
|
+
"@codingame/monaco-vscode-layout-service-override": "16.1.0-shadow-root.1",
|
|
25
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "16.1.0-shadow-root.1",
|
|
26
26
|
"marked": "14.0.0"
|
|
27
27
|
},
|
|
28
28
|
"main": "services.js",
|
package/services.d.ts
CHANGED
|
@@ -97,8 +97,8 @@ export { ILocaleService } from "./vscode/src/vs/workbench/services/localization/
|
|
|
97
97
|
export { NoOpNotification, NoOpProgress } from "./vscode/src/vs/platform/notification/common/notification.js";
|
|
98
98
|
export { NotificationsFilter, NotificationPriority, NeverShowAgainScope } from "./vscode/src/vs/platform/notification/common/notification.js";
|
|
99
99
|
export type { NotificationMessage, INotificationProperties, INeverShowAgainOptions, INotification, INotificationActions, INotificationProgress, INotificationProgressProperties, INotificationHandle, IPromptChoice, IPromptChoiceWithMenu, IPromptOptions, IStatusMessageOptions } from "./vscode/src/vs/platform/notification/common/notification.js";
|
|
100
|
-
export type { IDialogArgs, DialogType, IDialogResult, IConfirmDialogArgs, IInputDialogArgs, IPromptDialogArgs, IBaseDialogOptions, ICheckbox, ICheckboxResult, IConfirmation, IConfirmationResult, IInput, IInputResult, IInputElement, IPrompt, IPromptResult, IPromptBaseButton, IPromptButton, IPromptCancelButton, IPromptResultWithCancel, IPromptWithCustomCancel, IPromptWithDefaultCancel } from "@codingame/monaco-vscode-
|
|
101
|
-
export type { IDialogHandler, ICustomDialogOptions, ICustomDialogMarkdown } from "@codingame/monaco-vscode-
|
|
100
|
+
export type { IDialogArgs, DialogType, IDialogResult, IConfirmDialogArgs, IInputDialogArgs, IPromptDialogArgs, IBaseDialogOptions, ICheckbox, ICheckboxResult, IConfirmation, IConfirmationResult, IInput, IInputResult, IInputElement, IPrompt, IPromptResult, IPromptBaseButton, IPromptButton, IPromptCancelButton, IPromptResultWithCancel, IPromptWithCustomCancel, IPromptWithDefaultCancel } from "@codingame/monaco-vscode-2bd6777a-3bff-5b83-ad25-0e029e81ffe9-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
101
|
+
export type { IDialogHandler, ICustomDialogOptions, ICustomDialogMarkdown } from "@codingame/monaco-vscode-2bd6777a-3bff-5b83-ad25-0e029e81ffe9-common/vscode/vs/platform/dialogs/common/dialogs";
|
|
102
102
|
export type { IMarkdownString, MarkdownStringTrustedOptions } from "./vscode/src/vs/base/common/htmlContent.js";
|
|
103
103
|
export { IActivityService } from "./vscode/src/vs/workbench/services/activity/common/activity.service.js";
|
|
104
104
|
export type { IBadge } from "@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common/vscode/vs/workbench/services/activity/common/activity";
|
package/services.js
CHANGED
|
@@ -87,8 +87,7 @@ import './vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperat
|
|
|
87
87
|
import './vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js';
|
|
88
88
|
import './vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js';
|
|
89
89
|
import './vscode/src/vs/editor/common/standaloneStrings.js';
|
|
90
|
-
import './vscode/src/vs/base/browser/ui/codicons/
|
|
91
|
-
import './vscode/src/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css';
|
|
90
|
+
import './vscode/src/vs/base/browser/ui/codicons/codiconStyles.js';
|
|
92
91
|
import './vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js';
|
|
93
92
|
export { default as Severity } from './vscode/src/vs/base/common/severity.js';
|
|
94
93
|
export { StorageScope, StorageTarget } from './vscode/src/vs/platform/storage/common/storage.js';
|
|
@@ -108,6 +107,7 @@ import getServiceOverride$5 from '@codingame/monaco-vscode-environment-service-o
|
|
|
108
107
|
import getServiceOverride$6 from '@codingame/monaco-vscode-layout-service-override';
|
|
109
108
|
import getServiceOverride$1 from '@codingame/monaco-vscode-host-service-override';
|
|
110
109
|
import getServiceOverride from '@codingame/monaco-vscode-base-service-override';
|
|
110
|
+
import { injectCss } from './css.js';
|
|
111
111
|
export { SyncDescriptor } from './vscode/src/vs/platform/instantiation/common/descriptors.js';
|
|
112
112
|
export { ICommandService } from './vscode/src/vs/platform/commands/common/commands.service.js';
|
|
113
113
|
export { INotificationService } from './vscode/src/vs/platform/notification/common/notification.service.js';
|
|
@@ -181,12 +181,13 @@ export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
181
181
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
182
182
|
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
183
183
|
|
|
184
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.99.3-
|
|
185
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.99.3-
|
|
184
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.99.3-ec076fb0-304a-415b-949c-094574542c4f") {
|
|
185
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.99.3-ec076fb0-304a-415b-949c-094574542c4f"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
186
186
|
}
|
|
187
|
-
window.monacoVscodeApiBuildId = "1.99.3-
|
|
187
|
+
window.monacoVscodeApiBuildId = "1.99.3-ec076fb0-304a-415b-949c-094574542c4f";
|
|
188
188
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
189
189
|
checkServicesNotInitialized();
|
|
190
|
+
injectCss(container);
|
|
190
191
|
initialize$1(container, configuration, env);
|
|
191
192
|
const instantiationService = StandaloneServices.initialize({
|
|
192
193
|
[IProductService.toString()]: mixin({
|
|
@@ -7,6 +7,8 @@ declare class WrappedStyleElement {
|
|
|
7
7
|
setStyle(cssStyle: string): void;
|
|
8
8
|
dispose(): void;
|
|
9
9
|
}
|
|
10
|
+
export declare let shadowRootContainer: ShadowRoot | undefined;
|
|
11
|
+
export declare function setContainerElement(container: HTMLElement): void;
|
|
10
12
|
export declare function createStyleSheet(container?: HTMLElement, beforeAppend?: (style: HTMLStyleElement) => void, disposableStore?: DisposableStore): HTMLStyleElement;
|
|
11
13
|
export declare function cloneGlobalStylesheets(targetWindow: Window): IDisposable;
|
|
12
14
|
export declare function createCSSRule(selector: string, cssText: string, style?: HTMLStyleElement): void;
|
|
@@ -34,6 +34,13 @@ class WrappedStyleElement {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
let shadowRootContainer;
|
|
38
|
+
function setContainerElement(container) {
|
|
39
|
+
const root = container.getRootNode();
|
|
40
|
+
if (root instanceof ShadowRoot) {
|
|
41
|
+
shadowRootContainer = root;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
37
44
|
function createStyleSheet(container = mainWindow.document.head, beforeAppend, disposableStore) {
|
|
38
45
|
const style = document.createElement('style');
|
|
39
46
|
style.type = 'text/css';
|
|
@@ -50,7 +57,11 @@ function createStyleSheet(container = mainWindow.document.head, beforeAppend, di
|
|
|
50
57
|
if (targetWindow === mainWindow) {
|
|
51
58
|
continue;
|
|
52
59
|
}
|
|
53
|
-
const cloneDisposable = disposables.add(cloneGlobalStyleSheet(style, globalStylesheetClones, targetWindow));
|
|
60
|
+
const cloneDisposable = disposables.add(cloneGlobalStyleSheet(style, globalStylesheetClones, targetWindow.document.head));
|
|
61
|
+
disposableStore?.add(cloneDisposable);
|
|
62
|
+
}
|
|
63
|
+
if (shadowRootContainer !== undefined) {
|
|
64
|
+
const cloneDisposable = cloneGlobalStyleSheet(style, globalStylesheetClones, shadowRootContainer);
|
|
54
65
|
disposableStore?.add(cloneDisposable);
|
|
55
66
|
}
|
|
56
67
|
}
|
|
@@ -59,14 +70,14 @@ function createStyleSheet(container = mainWindow.document.head, beforeAppend, di
|
|
|
59
70
|
function cloneGlobalStylesheets(targetWindow) {
|
|
60
71
|
const disposables = ( new DisposableStore());
|
|
61
72
|
for (const [globalStylesheet, clonedGlobalStylesheets] of globalStylesheets) {
|
|
62
|
-
disposables.add(cloneGlobalStyleSheet(globalStylesheet, clonedGlobalStylesheets, targetWindow));
|
|
73
|
+
disposables.add(cloneGlobalStyleSheet(globalStylesheet, clonedGlobalStylesheets, targetWindow.document.head));
|
|
63
74
|
}
|
|
64
75
|
return disposables;
|
|
65
76
|
}
|
|
66
|
-
function cloneGlobalStyleSheet(globalStylesheet, globalStylesheetClones,
|
|
77
|
+
function cloneGlobalStyleSheet(globalStylesheet, globalStylesheetClones, windowElement) {
|
|
67
78
|
const disposables = ( new DisposableStore());
|
|
68
79
|
const clone = globalStylesheet.cloneNode(true);
|
|
69
|
-
|
|
80
|
+
windowElement.appendChild(clone);
|
|
70
81
|
disposables.add(toDisposable(() => clone.remove()));
|
|
71
82
|
for (const rule of getDynamicStyleSheetRules(globalStylesheet)) {
|
|
72
83
|
clone.sheet?.insertRule(rule.cssText, clone.sheet?.cssRules.length);
|
|
@@ -126,4 +137,4 @@ function isCSSStyleRule(rule) {
|
|
|
126
137
|
return typeof rule.selectorText === 'string';
|
|
127
138
|
}
|
|
128
139
|
|
|
129
|
-
export { cloneGlobalStylesheets, createCSSRule, createStyleSheet, createStyleSheet2, isGlobalStylesheet, removeCSSRulesContainingSelector };
|
|
140
|
+
export { cloneGlobalStylesheets, createCSSRule, createStyleSheet, createStyleSheet2, isGlobalStylesheet, removeCSSRulesContainingSelector, setContainerElement, shadowRootContainer };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { isFirefox } from '../../browser.js';
|
|
3
4
|
import { DataTransfers } from '../../dnd.js';
|
|
4
5
|
import { addDisposableListener, EventType, EventHelper } from '../../dom.js';
|
|
@@ -9,10 +10,11 @@ import { Action, ActionRunner, Separator } from '../../../common/actions.js';
|
|
|
9
10
|
import { Disposable } from '../../../common/lifecycle.js';
|
|
10
11
|
import { isMacintosh } from '../../../common/platform.js';
|
|
11
12
|
import { isUndefinedOrNull, assertType } from '../../../common/types.js';
|
|
12
|
-
import './actionbar.css';
|
|
13
|
+
import * as actionbar from './actionbar.css';
|
|
13
14
|
import { localize } from '../../../../nls.js';
|
|
14
15
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
15
16
|
|
|
17
|
+
registerCss(actionbar);
|
|
16
18
|
class BaseActionViewItem extends Disposable {
|
|
17
19
|
get action() {
|
|
18
20
|
return this._action;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { addDisposableListener, EventType, trackFocus, getActiveElement, isAncestor, isHTMLElement, EventHelper, clearNode } from '../../dom.js';
|
|
3
4
|
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
4
5
|
import { BaseActionViewItem, ActionViewItem } from './actionViewItems.js';
|
|
@@ -8,8 +9,9 @@ import { Emitter } from '../../../common/event.js';
|
|
|
8
9
|
import { KeyCode, KeyMod as KeyMod$1 } from '../../../common/keyCodes.js';
|
|
9
10
|
import { Disposable, DisposableStore, DisposableMap, dispose } from '../../../common/lifecycle.js';
|
|
10
11
|
import { isNumber, isFunction } from '../../../common/types.js';
|
|
11
|
-
import './actionbar.css';
|
|
12
|
+
import * as actionbar from './actionbar.css';
|
|
12
13
|
|
|
14
|
+
registerCss(actionbar);
|
|
13
15
|
var ActionsOrientation;
|
|
14
16
|
(function (ActionsOrientation) {
|
|
15
17
|
ActionsOrientation[ActionsOrientation["HORIZONTAL"] = 0] = "HORIZONTAL";
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { clearNode } from '../../dom.js';
|
|
3
|
-
import './aria.css';
|
|
4
|
+
import * as aria from './aria.css';
|
|
4
5
|
|
|
6
|
+
registerCss(aria);
|
|
5
7
|
const MAX_MESSAGE_LENGTH = 20000;
|
|
6
8
|
let ariaContainer;
|
|
7
9
|
let alertContainer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { EventType, addDisposableListener, EventHelper, trackFocus, reset, isActiveElement, $ } from '../../dom.js';
|
|
3
4
|
import purify from '../../dompurify/dompurify.js';
|
|
4
5
|
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
@@ -14,10 +15,11 @@ import { isMarkdownString, markdownStringEqual } from '../../../common/htmlConte
|
|
|
14
15
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
15
16
|
import { Disposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
16
17
|
import { ThemeIcon } from '../../../common/themables.js';
|
|
17
|
-
import './button.css';
|
|
18
|
+
import * as button from './button.css';
|
|
18
19
|
import { localize } from '../../../../nls.js';
|
|
19
20
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
20
21
|
|
|
22
|
+
registerCss(button);
|
|
21
23
|
const unthemedButtonStyles = {
|
|
22
24
|
buttonBackground: '#0E639C',
|
|
23
25
|
buttonHoverBackground: '#006BB3',
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { BrowserFeatures } from '../../canIUse.js';
|
|
3
4
|
import { $, hide, addStandardDisposableListener, clearNode, show, isHTMLElement, getDomNodePagePosition, getDomNodeZoomLevel, getTotalWidth, getTotalHeight, getActiveWindow, getWindow, isAncestor } from '../../dom.js';
|
|
4
5
|
import { Disposable, toDisposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
5
6
|
import { isIOS } from '../../../common/platform.js';
|
|
6
7
|
import { Range } from '../../../common/range.js';
|
|
7
|
-
import './contextview.css';
|
|
8
|
+
import * as contextview from './contextview.css';
|
|
8
9
|
|
|
10
|
+
registerCss(contextview);
|
|
9
11
|
var ContextViewDOMPosition;
|
|
10
12
|
(function (ContextViewDOMPosition) {
|
|
11
13
|
ContextViewDOMPosition[ContextViewDOMPosition["ABSOLUTE"] = 1] = "ABSOLUTE";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { append, $ } from '../../dom.js';
|
|
3
4
|
import { format } from '../../../common/strings.js';
|
|
4
|
-
import './countBadge.css';
|
|
5
|
+
import * as countBadge from './countBadge.css';
|
|
5
6
|
import { Disposable, MutableDisposable, toDisposable } from '../../../common/lifecycle.js';
|
|
6
7
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
7
8
|
|
|
9
|
+
registerCss(countBadge);
|
|
8
10
|
class CountBadge extends Disposable {
|
|
9
11
|
constructor(container, options, styles) {
|
|
10
12
|
super();
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { $ } from '../../dom.js';
|
|
3
|
-
import './dnd.css';
|
|
4
|
+
import * as dnd from './dnd.css';
|
|
4
5
|
|
|
6
|
+
registerCss(dnd);
|
|
5
7
|
function applyDragImage(event, container, label, extraClasses = []) {
|
|
6
8
|
if (!event.dataTransfer) {
|
|
7
9
|
return;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { append, $, EventType, addDisposableListener, EventHelper, isMouseEvent } from '../../dom.js';
|
|
3
4
|
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
4
5
|
import { EventType as EventType$1, Gesture } from '../../touch.js';
|
|
@@ -8,8 +9,9 @@ import { getDefaultHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
|
8
9
|
import { ActionRunner } from '../../../common/actions.js';
|
|
9
10
|
import { Emitter } from '../../../common/event.js';
|
|
10
11
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
11
|
-
import './dropdown.css';
|
|
12
|
+
import * as dropdown from './dropdown.css';
|
|
12
13
|
|
|
14
|
+
registerCss(dropdown);
|
|
13
15
|
class BaseDropdown extends ActionRunner {
|
|
14
16
|
constructor(container, options) {
|
|
15
17
|
super();
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { localize } from '../../../../nls.js';
|
|
3
4
|
import { Action } from '../../../common/actions.js';
|
|
4
5
|
import { Codicon } from '../../../common/codicons.js';
|
|
@@ -10,9 +11,10 @@ import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
|
10
11
|
import { BaseActionViewItem, ActionViewItem } from '../actionbar/actionViewItems.js';
|
|
11
12
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
12
13
|
import { getDefaultHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
13
|
-
import './dropdown.css';
|
|
14
|
+
import * as dropdown from './dropdown.css';
|
|
14
15
|
import { DropdownMenu } from './dropdown.js';
|
|
15
16
|
|
|
17
|
+
registerCss(dropdown);
|
|
16
18
|
class DropdownMenuActionViewItem extends BaseActionViewItem {
|
|
17
19
|
constructor(action, menuActionsOrProvider, contextMenuProvider, options = Object.create(null)) {
|
|
18
20
|
super(null, action, options);
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { EventHelper, addDisposableListener } from '../../dom.js';
|
|
3
4
|
import { RegexToggle, WholeWordsToggle, CaseSensitiveToggle } from './findInputToggles.js';
|
|
4
5
|
import { HistoryInputBox } from '../inputbox/inputBox.js';
|
|
5
6
|
import { Widget } from '../widget.js';
|
|
6
7
|
import { Emitter } from '../../../common/event.js';
|
|
7
8
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
8
|
-
import './findInput.css';
|
|
9
|
+
import * as findInput from './findInput.css';
|
|
9
10
|
import { localize } from '../../../../nls.js';
|
|
10
11
|
import { MutableDisposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
11
12
|
import { createInstantHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
12
13
|
|
|
14
|
+
registerCss(findInput);
|
|
13
15
|
const NLS_DEFAULT_LABEL = ( localize(10, "input"));
|
|
14
16
|
class FindInput extends Widget {
|
|
15
17
|
static { this.OPTION_CHANGE = 'optionChange'; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { EventHelper } from '../../dom.js';
|
|
3
4
|
import { Toggle } from '../toggle/toggle.js';
|
|
4
5
|
import { HistoryInputBox } from '../inputbox/inputBox.js';
|
|
@@ -6,10 +7,11 @@ import { Widget } from '../widget.js';
|
|
|
6
7
|
import { Codicon } from '../../../common/codicons.js';
|
|
7
8
|
import { Emitter } from '../../../common/event.js';
|
|
8
9
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
9
|
-
import './findInput.css';
|
|
10
|
+
import * as findInput from './findInput.css';
|
|
10
11
|
import { localize } from '../../../../nls.js';
|
|
11
12
|
import { getDefaultHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
12
13
|
|
|
14
|
+
registerCss(findInput);
|
|
13
15
|
const NLS_DEFAULT_LABEL = ( localize(14, "input"));
|
|
14
16
|
const NLS_PRESERVE_CASE_LABEL = ( localize(15, "Preserve Case"));
|
|
15
17
|
class PreserveCaseToggle extends Toggle {
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { $ as $$1, append, addDisposableListener, EventType } from '../../dom.js';
|
|
3
4
|
import { StandardKeyboardEvent } from '../../keyboardEvent.js';
|
|
4
5
|
import { DomScrollableElement } from '../scrollbar/scrollableElement.js';
|
|
5
6
|
import { KeyCode } from '../../../common/keyCodes.js';
|
|
6
7
|
import { Disposable } from '../../../common/lifecycle.js';
|
|
7
|
-
import './hoverWidget.css';
|
|
8
|
+
import * as hoverWidget from './hoverWidget.css';
|
|
8
9
|
import { localize } from '../../../../nls.js';
|
|
9
10
|
|
|
11
|
+
registerCss(hoverWidget);
|
|
10
12
|
const $ = $$1;
|
|
11
13
|
var HoverPosition;
|
|
12
14
|
(function (HoverPosition) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as iconlabel from './iconlabel.css';
|
|
3
4
|
import { append, $, isHTMLElement, isAncestor, after } from '../../dom.js';
|
|
4
5
|
import { asCSSUrl } from '../../cssValue.js';
|
|
5
6
|
import { HighlightedLabel } from '../highlightedlabel/highlightedLabel.js';
|
|
@@ -11,6 +12,7 @@ import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
|
11
12
|
import { isString } from '../../../common/types.js';
|
|
12
13
|
import { stripIcons } from '../../../common/iconLabels.js';
|
|
13
14
|
|
|
15
|
+
registerCss(iconlabel);
|
|
14
16
|
class FastLabelNode {
|
|
15
17
|
constructor(_element) {
|
|
16
18
|
this._element = _element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { $ as $$1, append, getTotalHeight, isActiveElement, getTotalWidth } from '../../dom.js';
|
|
3
4
|
import { asCssValueWithDefault } from '../../cssValue.js';
|
|
4
5
|
import { DomEmitter } from '../../event.js';
|
|
@@ -13,10 +14,11 @@ import { Emitter, Event } from '../../../common/event.js';
|
|
|
13
14
|
import { HistoryNavigator } from '../../../common/history.js';
|
|
14
15
|
import { equals } from '../../../common/objects.js';
|
|
15
16
|
import { ScrollbarVisibility } from '../../../common/scrollable.js';
|
|
16
|
-
import './inputBox.css';
|
|
17
|
+
import * as inputBox from './inputBox.css';
|
|
17
18
|
import { localize } from '../../../../nls.js';
|
|
18
19
|
import { MutableDisposable } from '../../../common/lifecycle.js';
|
|
19
20
|
|
|
21
|
+
registerCss(inputBox);
|
|
20
22
|
const $ = $$1;
|
|
21
23
|
var MessageType;
|
|
22
24
|
(function (MessageType) {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { $ as $$1, append, clearNode } from '../../dom.js';
|
|
3
4
|
import { getBaseLayerHoverDelegate } from '../hover/hoverDelegate2.js';
|
|
4
5
|
import { getDefaultHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
5
6
|
import { UILabelProvider } from '../../../common/keybindingLabels.js';
|
|
6
7
|
import { Disposable } from '../../../common/lifecycle.js';
|
|
7
8
|
import { equals } from '../../../common/objects.js';
|
|
8
|
-
import './keybindingLabel.css';
|
|
9
|
+
import * as keybindingLabel from './keybindingLabel.css';
|
|
9
10
|
import { localize } from '../../../../nls.js';
|
|
10
11
|
|
|
12
|
+
registerCss(keybindingLabel);
|
|
11
13
|
const $ = $$1;
|
|
12
14
|
const unthemedKeybindingLabelOptions = {
|
|
13
15
|
keybindingLabelBackground: undefined,
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
2
3
|
import { range } from '../../../common/arrays.js';
|
|
3
4
|
import { CancellationTokenSource } from '../../../common/cancellation.js';
|
|
4
5
|
import { Event } from '../../../common/event.js';
|
|
5
6
|
import { Disposable } from '../../../common/lifecycle.js';
|
|
6
|
-
import './list.css';
|
|
7
|
+
import * as list from './list.css';
|
|
7
8
|
import { List } from './listWidget.js';
|
|
8
9
|
import { isActiveElement } from '../../dom.js';
|
|
9
10
|
|
|
11
|
+
registerCss(list);
|
|
10
12
|
class PagedRenderer {
|
|
11
13
|
get templateId() { return this.renderer.templateId; }
|
|
12
14
|
constructor(renderer, modelProvider) {
|
|
@@ -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 { isEditableElement, EventHelper, isHTMLElement, getWindow, isMouseEvent, getActiveElement, isActiveElement } from '../../dom.js';
|
|
4
5
|
import { createStyleSheet } from '../../domStylesheets.js';
|
|
@@ -19,7 +20,7 @@ import { dispose, DisposableStore } from '../../../common/lifecycle.js';
|
|
|
19
20
|
import { clamp } from '../../../common/numbers.js';
|
|
20
21
|
import { isMacintosh } from '../../../common/platform.js';
|
|
21
22
|
import { isNumber } from '../../../common/types.js';
|
|
22
|
-
import './list.css';
|
|
23
|
+
import * as list from './list.css';
|
|
23
24
|
import { ListError } from './list.js';
|
|
24
25
|
import { ListView } from './listView.js';
|
|
25
26
|
import { StandardMouseEvent } from '../../mouseEvent.js';
|
|
@@ -27,6 +28,7 @@ import '../../../common/observableInternal/index.js';
|
|
|
27
28
|
import { constObservable } from '../../../common/observableInternal/utils.js';
|
|
28
29
|
import { autorun } from '../../../common/observableInternal/autorun.js';
|
|
29
30
|
|
|
31
|
+
registerCss(list);
|
|
30
32
|
class TraitRenderer {
|
|
31
33
|
constructor(trait) {
|
|
32
34
|
this.trait = trait;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import '
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as mouseCursor from './mouseCursor.css';
|
|
3
4
|
|
|
5
|
+
registerCss(mouseCursor);
|
|
4
6
|
const MOUSE_CURSOR_TEXT_CSS_CLASS_NAME = `monaco-mouse-cursor-text`;
|
|
5
7
|
|
|
6
8
|
export { MOUSE_CURSOR_TEXT_CSS_CLASS_NAME };
|
|
@@ -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) {
|