@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
package/README.md
CHANGED
|
@@ -323,6 +323,80 @@ 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 doesn't 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
|
+
### ⚠️ Xterm notice ⚠️
|
|
342
|
+
|
|
343
|
+
The webgl renderer of xterm, which VSCode is using, doesn't support being used inside a shadom dom (see https://github.com/xtermjs/xterm.js/pull/5334).
|
|
344
|
+
Until it's fixed and deployed, either do not use the terminal service override, or apply the patch on your side (using [patch-package](https://www.npmjs.com/package/patch-package) for instance).
|
|
345
|
+
|
|
346
|
+
### Prerequisites
|
|
347
|
+
|
|
348
|
+
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 (either as a string or a `CSSStyleSheet`). It can be achieved with most bundlers with some configurations.
|
|
349
|
+
|
|
350
|
+
Note that the bundler should still resolve referenced assets in the css files, so you can't just use the `raw` loader, or the `assets/source` webpack module type.
|
|
351
|
+
|
|
352
|
+
#### Webpack
|
|
353
|
+
|
|
354
|
+
Add this rule in your configuration:
|
|
355
|
+
|
|
356
|
+
```typescript
|
|
357
|
+
{
|
|
358
|
+
test: /node_modules\/(@codingame\/monaco-vscode|vscode|monaco-editor).*\.css$/,
|
|
359
|
+
use: [
|
|
360
|
+
{
|
|
361
|
+
loader: 'css-loader',
|
|
362
|
+
options: {
|
|
363
|
+
esModule: false,
|
|
364
|
+
exportType: 'css-style-sheet', // or 'string', both are working
|
|
365
|
+
url: true,
|
|
366
|
+
import: true
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
You should also make sure that no other loader is interfering with it, by either use a `oneOf` or exclusing those files in the other css loaders.
|
|
374
|
+
|
|
375
|
+
#### Vite
|
|
376
|
+
|
|
377
|
+
Add this plugin in your configuration:
|
|
378
|
+
|
|
379
|
+
```typescript
|
|
380
|
+
{
|
|
381
|
+
name: 'load-vscode-css-as-string',
|
|
382
|
+
enforce: 'pre',
|
|
383
|
+
async resolveId(source, importer, options) {
|
|
384
|
+
const resolved = (await this.resolve(source, importer, options))!
|
|
385
|
+
if (
|
|
386
|
+
resolved.id.match(
|
|
387
|
+
/node_modules\/(@codingame\/monaco-vscode|vscode|monaco-editor).*\.css$/
|
|
388
|
+
)
|
|
389
|
+
) {
|
|
390
|
+
return {
|
|
391
|
+
...resolved,
|
|
392
|
+
id: resolved.id + '?inline'
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return undefined
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
```
|
|
399
|
+
|
|
326
400
|
## Troubleshooting
|
|
327
401
|
|
|
328
402
|
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,43 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
const sheets = [];
|
|
4
|
+
function registerCss(module) {
|
|
5
|
+
const exportedValue = module.default;
|
|
6
|
+
let sheet = undefined;
|
|
7
|
+
if (typeof exportedValue === 'string') {
|
|
8
|
+
sheet = new CSSStyleSheet();
|
|
9
|
+
sheet.replaceSync(exportedValue);
|
|
10
|
+
}
|
|
11
|
+
else if (exportedValue instanceof CSSStyleSheet) {
|
|
12
|
+
sheet = exportedValue;
|
|
13
|
+
}
|
|
14
|
+
if (sheet != null) {
|
|
15
|
+
const fontFaces = Array.from(sheet.cssRules)
|
|
16
|
+
.filter((rule) => rule instanceof CSSFontFaceRule)
|
|
17
|
+
.map((r) => r.cssText);
|
|
18
|
+
if (fontFaces.length > 0) {
|
|
19
|
+
const fontFaceStyleSheet = new CSSStyleSheet();
|
|
20
|
+
for (const fontFace of fontFaces) {
|
|
21
|
+
fontFaceStyleSheet.insertRule(fontFace);
|
|
22
|
+
}
|
|
23
|
+
document.adoptedStyleSheets = [...document.adoptedStyleSheets, fontFaceStyleSheet];
|
|
24
|
+
}
|
|
25
|
+
sheets.push(sheet);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function getInjectElement(target) {
|
|
29
|
+
const root = target.getRootNode();
|
|
30
|
+
if (root instanceof ShadowRoot) {
|
|
31
|
+
return root;
|
|
32
|
+
}
|
|
33
|
+
return document;
|
|
34
|
+
}
|
|
35
|
+
function injectCss(target) {
|
|
36
|
+
const root = getInjectElement(target);
|
|
37
|
+
if (root instanceof ShadowRoot && sheets.length === 0) {
|
|
38
|
+
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");
|
|
39
|
+
}
|
|
40
|
+
root.adoptedStyleSheets = [...root.adoptedStyleSheets, ...sheets];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
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",
|
|
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",
|
|
20
|
+
"@codingame/monaco-vscode-environment-service-override": "16.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-extensions-service-override": "16.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-files-service-override": "16.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-host-service-override": "16.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-layout-service-override": "16.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "16.1.0",
|
|
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,13 +87,11 @@ 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';
|
|
95
94
|
import { StandaloneServices } from './vscode/src/vs/editor/standalone/browser/standaloneServices.js';
|
|
96
|
-
import { mixin } from './vscode/src/vs/base/common/objects.js';
|
|
97
95
|
import { IInstantiationService } from './vscode/src/vs/platform/instantiation/common/instantiation.js';
|
|
98
96
|
import { DisposableStore } from './vscode/src/vs/base/common/lifecycle.js';
|
|
99
97
|
import { registerWorkbenchContribution2 } from './vscode/src/vs/workbench/common/contributions.js';
|
|
@@ -108,6 +106,7 @@ import getServiceOverride$5 from '@codingame/monaco-vscode-environment-service-o
|
|
|
108
106
|
import getServiceOverride$6 from '@codingame/monaco-vscode-layout-service-override';
|
|
109
107
|
import getServiceOverride$1 from '@codingame/monaco-vscode-host-service-override';
|
|
110
108
|
import getServiceOverride from '@codingame/monaco-vscode-base-service-override';
|
|
109
|
+
import { injectCss } from './css.js';
|
|
111
110
|
export { SyncDescriptor } from './vscode/src/vs/platform/instantiation/common/descriptors.js';
|
|
112
111
|
export { ICommandService } from './vscode/src/vs/platform/commands/common/commands.service.js';
|
|
113
112
|
export { INotificationService } from './vscode/src/vs/platform/notification/common/notification.service.js';
|
|
@@ -181,15 +180,16 @@ export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
181
180
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
182
181
|
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
183
182
|
|
|
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-
|
|
183
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.99.3-de370f37-1fc0-486b-a51c-37a009681fa0") {
|
|
184
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.99.3-de370f37-1fc0-486b-a51c-37a009681fa0"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
186
185
|
}
|
|
187
|
-
window.monacoVscodeApiBuildId = "1.99.3-
|
|
186
|
+
window.monacoVscodeApiBuildId = "1.99.3-de370f37-1fc0-486b-a51c-37a009681fa0";
|
|
188
187
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
189
188
|
checkServicesNotInitialized();
|
|
189
|
+
injectCss(container);
|
|
190
190
|
initialize$1(container, configuration, env);
|
|
191
191
|
const instantiationService = StandaloneServices.initialize({
|
|
192
|
-
[IProductService.toString()]:
|
|
192
|
+
[IProductService.toString()]: {
|
|
193
193
|
version: "1.99.3",
|
|
194
194
|
quality: 'stable',
|
|
195
195
|
commit: "17baf841131aa23349f217ca7c570c76ee87b957",
|
|
@@ -201,8 +201,9 @@ async function initialize(overrides, container = document.body, configuration =
|
|
|
201
201
|
reportIssueUrl: 'https://github.com/microsoft/vscode/issues/new',
|
|
202
202
|
licenseName: 'MIT',
|
|
203
203
|
licenseUrl: 'https://github.com/microsoft/vscode/blob/main/LICENSE.txt',
|
|
204
|
-
serverApplicationName: 'code-server-oss'
|
|
205
|
-
|
|
204
|
+
serverApplicationName: 'code-server-oss',
|
|
205
|
+
...(configuration.productConfiguration ?? {})
|
|
206
|
+
},
|
|
206
207
|
...getServiceOverride$6(),
|
|
207
208
|
...getServiceOverride$5(),
|
|
208
209
|
...getServiceOverride$4(),
|
|
@@ -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 };
|