@theia/monaco 1.77.0-next.0 → 1.77.0-next.101
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/lib/browser/content-hover-widget-patcher.js +6 -9
- package/lib/browser/content-hover-widget-patcher.js.map +1 -1
- package/lib/browser/default-content-hover-widget-patcher.d.ts +1 -1
- package/lib/browser/default-content-hover-widget-patcher.d.ts.map +1 -1
- package/lib/browser/default-content-hover-widget-patcher.js +7 -10
- package/lib/browser/default-content-hover-widget-patcher.js.map +1 -1
- package/lib/browser/index.d.ts +2 -2
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +2 -5
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.d.ts +4 -4
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.d.ts.map +1 -1
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.js +29 -37
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.js.map +1 -1
- package/lib/browser/monaco-bulk-edit-service.d.ts +4 -4
- package/lib/browser/monaco-bulk-edit-service.d.ts.map +1 -1
- package/lib/browser/monaco-bulk-edit-service.js +10 -14
- package/lib/browser/monaco-bulk-edit-service.js.map +1 -1
- package/lib/browser/monaco-code-action-save-participant.d.ts +3 -3
- package/lib/browser/monaco-code-action-save-participant.d.ts.map +1 -1
- package/lib/browser/monaco-code-action-save-participant.js +12 -16
- package/lib/browser/monaco-code-action-save-participant.js.map +1 -1
- package/lib/browser/monaco-code-action-service.d.ts +2 -2
- package/lib/browser/monaco-code-action-service.d.ts.map +1 -1
- package/lib/browser/monaco-code-action-service.js +25 -29
- package/lib/browser/monaco-code-action-service.js.map +1 -1
- package/lib/browser/monaco-color-registry.d.ts +4 -4
- package/lib/browser/monaco-color-registry.d.ts.map +1 -1
- package/lib/browser/monaco-color-registry.js +23 -26
- package/lib/browser/monaco-color-registry.js.map +1 -1
- package/lib/browser/monaco-command-registry.d.ts +2 -2
- package/lib/browser/monaco-command-registry.d.ts.map +1 -1
- package/lib/browser/monaco-command-registry.js +15 -21
- package/lib/browser/monaco-command-registry.js.map +1 -1
- package/lib/browser/monaco-command-service.d.ts +2 -2
- package/lib/browser/monaco-command-service.d.ts.map +1 -1
- package/lib/browser/monaco-command-service.js +17 -24
- package/lib/browser/monaco-command-service.js.map +1 -1
- package/lib/browser/monaco-command.d.ts +3 -3
- package/lib/browser/monaco-command.d.ts.map +1 -1
- package/lib/browser/monaco-command.js +62 -71
- package/lib/browser/monaco-command.js.map +1 -1
- package/lib/browser/monaco-context-key-service.d.ts +3 -3
- package/lib/browser/monaco-context-key-service.d.ts.map +1 -1
- package/lib/browser/monaco-context-key-service.js +17 -23
- package/lib/browser/monaco-context-key-service.js.map +1 -1
- package/lib/browser/monaco-context-menu.d.ts +5 -5
- package/lib/browser/monaco-context-menu.d.ts.map +1 -1
- package/lib/browser/monaco-context-menu.js +26 -30
- package/lib/browser/monaco-context-menu.js.map +1 -1
- package/lib/browser/monaco-diff-computer.js +10 -13
- package/lib/browser/monaco-diff-computer.js.map +1 -1
- package/lib/browser/monaco-diff-editor.d.ts +7 -7
- package/lib/browser/monaco-diff-editor.d.ts.map +1 -1
- package/lib/browser/monaco-diff-editor.js +15 -19
- package/lib/browser/monaco-diff-editor.js.map +1 -1
- package/lib/browser/monaco-diff-navigator-factory.d.ts +1 -1
- package/lib/browser/monaco-diff-navigator-factory.d.ts.map +1 -1
- package/lib/browser/monaco-diff-navigator-factory.js +5 -8
- package/lib/browser/monaco-diff-navigator-factory.js.map +1 -1
- package/lib/browser/monaco-editor-content-menu.d.ts +2 -2
- package/lib/browser/monaco-editor-content-menu.d.ts.map +1 -1
- package/lib/browser/monaco-editor-content-menu.js +36 -43
- package/lib/browser/monaco-editor-content-menu.js.map +1 -1
- package/lib/browser/monaco-editor-model.d.ts +4 -4
- package/lib/browser/monaco-editor-model.d.ts.map +1 -1
- package/lib/browser/monaco-editor-model.js +46 -50
- package/lib/browser/monaco-editor-model.js.map +1 -1
- package/lib/browser/monaco-editor-overlay-button.d.ts +1 -1
- package/lib/browser/monaco-editor-overlay-button.d.ts.map +1 -1
- package/lib/browser/monaco-editor-overlay-button.js +11 -15
- package/lib/browser/monaco-editor-overlay-button.js.map +1 -1
- package/lib/browser/monaco-editor-peek-view-widget.d.ts +2 -2
- package/lib/browser/monaco-editor-peek-view-widget.d.ts.map +1 -1
- package/lib/browser/monaco-editor-peek-view-widget.js +17 -25
- package/lib/browser/monaco-editor-peek-view-widget.js.map +1 -1
- package/lib/browser/monaco-editor-provider.d.ts +10 -10
- package/lib/browser/monaco-editor-provider.d.ts.map +1 -1
- package/lib/browser/monaco-editor-provider.js +92 -108
- package/lib/browser/monaco-editor-provider.js.map +1 -1
- package/lib/browser/monaco-editor-service.d.ts +6 -6
- package/lib/browser/monaco-editor-service.d.ts.map +1 -1
- package/lib/browser/monaco-editor-service.js +47 -59
- package/lib/browser/monaco-editor-service.js.map +1 -1
- package/lib/browser/monaco-editor-zone-widget.js +10 -14
- package/lib/browser/monaco-editor-zone-widget.js.map +1 -1
- package/lib/browser/monaco-editor.d.ts +10 -7
- package/lib/browser/monaco-editor.d.ts.map +1 -1
- package/lib/browser/monaco-editor.js +102 -94
- package/lib/browser/monaco-editor.js.map +1 -1
- package/lib/browser/monaco-editor.spec.d.ts +2 -0
- package/lib/browser/monaco-editor.spec.d.ts.map +1 -0
- package/lib/browser/monaco-editor.spec.js +202 -0
- package/lib/browser/monaco-editor.spec.js.map +1 -0
- package/lib/browser/monaco-formatter-service.d.ts +3 -3
- package/lib/browser/monaco-formatter-service.d.ts.map +1 -1
- package/lib/browser/monaco-formatter-service.js +28 -37
- package/lib/browser/monaco-formatter-service.js.map +1 -1
- package/lib/browser/monaco-formatting-conflicts.d.ts +2 -2
- package/lib/browser/monaco-formatting-conflicts.d.ts.map +1 -1
- package/lib/browser/monaco-formatting-conflicts.js +19 -25
- package/lib/browser/monaco-formatting-conflicts.js.map +1 -1
- package/lib/browser/monaco-frontend-application-contribution.d.ts +4 -4
- package/lib/browser/monaco-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/monaco-frontend-application-contribution.js +43 -56
- package/lib/browser/monaco-frontend-application-contribution.js.map +1 -1
- package/lib/browser/monaco-frontend-module.js +163 -167
- package/lib/browser/monaco-frontend-module.js.map +1 -1
- package/lib/browser/monaco-gotoline-quick-access.d.ts +2 -2
- package/lib/browser/monaco-gotoline-quick-access.d.ts.map +1 -1
- package/lib/browser/monaco-gotoline-quick-access.js +16 -20
- package/lib/browser/monaco-gotoline-quick-access.js.map +1 -1
- package/lib/browser/monaco-gotosymbol-quick-access.d.ts +5 -5
- package/lib/browser/monaco-gotosymbol-quick-access.d.ts.map +1 -1
- package/lib/browser/monaco-gotosymbol-quick-access.js +18 -22
- package/lib/browser/monaco-gotosymbol-quick-access.js.map +1 -1
- package/lib/browser/monaco-icon-registry.d.ts +1 -1
- package/lib/browser/monaco-icon-registry.d.ts.map +1 -1
- package/lib/browser/monaco-icon-registry.js +7 -10
- package/lib/browser/monaco-icon-registry.js.map +1 -1
- package/lib/browser/monaco-indexed-db.d.ts +1 -1
- package/lib/browser/monaco-indexed-db.d.ts.map +1 -1
- package/lib/browser/monaco-indexed-db.js +28 -35
- package/lib/browser/monaco-indexed-db.js.map +1 -1
- package/lib/browser/monaco-init.d.ts +1 -1
- package/lib/browser/monaco-init.d.ts.map +1 -1
- package/lib/browser/monaco-init.js +75 -95
- package/lib/browser/monaco-init.js.map +1 -1
- package/lib/browser/monaco-init.spec.js +45 -20
- package/lib/browser/monaco-init.spec.js.map +1 -1
- package/lib/browser/monaco-keybinding.d.ts +3 -2
- package/lib/browser/monaco-keybinding.d.ts.map +1 -1
- package/lib/browser/monaco-keybinding.js +47 -51
- package/lib/browser/monaco-keybinding.js.map +1 -1
- package/lib/browser/monaco-keybinding.spec.d.ts +2 -0
- package/lib/browser/monaco-keybinding.spec.d.ts.map +1 -0
- package/lib/browser/monaco-keybinding.spec.js +94 -0
- package/lib/browser/monaco-keybinding.spec.js.map +1 -0
- package/lib/browser/monaco-keycode-map.d.ts +1 -1
- package/lib/browser/monaco-keycode-map.d.ts.map +1 -1
- package/lib/browser/monaco-keycode-map.js +122 -125
- package/lib/browser/monaco-keycode-map.js.map +1 -1
- package/lib/browser/monaco-languages.d.ts +2 -2
- package/lib/browser/monaco-languages.d.ts.map +1 -1
- package/lib/browser/monaco-languages.js +33 -41
- package/lib/browser/monaco-languages.js.map +1 -1
- package/lib/browser/monaco-marker-collection.d.ts +1 -1
- package/lib/browser/monaco-marker-collection.d.ts.map +1 -1
- package/lib/browser/monaco-marker-collection.js +2 -6
- package/lib/browser/monaco-marker-collection.js.map +1 -1
- package/lib/browser/monaco-menu.d.ts +2 -2
- package/lib/browser/monaco-menu.d.ts.map +1 -1
- package/lib/browser/monaco-menu.js +44 -48
- package/lib/browser/monaco-menu.js.map +1 -1
- package/lib/browser/monaco-mime-service.js +16 -20
- package/lib/browser/monaco-mime-service.js.map +1 -1
- package/lib/browser/monaco-nls.d.ts +1 -1
- package/lib/browser/monaco-nls.d.ts.map +1 -1
- package/lib/browser/monaco-nls.js +9 -16
- package/lib/browser/monaco-nls.js.map +1 -1
- package/lib/browser/monaco-outline-contribution.d.ts +5 -2
- package/lib/browser/monaco-outline-contribution.d.ts.map +1 -1
- package/lib/browser/monaco-outline-contribution.js +35 -36
- package/lib/browser/monaco-outline-contribution.js.map +1 -1
- package/lib/browser/monaco-outline-decorator.d.ts +1 -1
- package/lib/browser/monaco-outline-decorator.d.ts.map +1 -1
- package/lib/browser/monaco-outline-decorator.js +18 -18
- package/lib/browser/monaco-outline-decorator.js.map +1 -1
- package/lib/browser/monaco-outline-decorator.spec.d.ts +2 -0
- package/lib/browser/monaco-outline-decorator.spec.d.ts.map +1 -0
- package/lib/browser/monaco-outline-decorator.spec.js +76 -0
- package/lib/browser/monaco-outline-decorator.spec.js.map +1 -0
- package/lib/browser/monaco-quick-access-registry.js +17 -21
- package/lib/browser/monaco-quick-access-registry.js.map +1 -1
- package/lib/browser/monaco-quick-input-service.d.ts +40 -8
- package/lib/browser/monaco-quick-input-service.d.ts.map +1 -1
- package/lib/browser/monaco-quick-input-service.js +169 -74
- package/lib/browser/monaco-quick-input-service.js.map +1 -1
- package/lib/browser/monaco-quick-input-service.spec.js +9 -11
- package/lib/browser/monaco-quick-input-service.spec.js.map +1 -1
- package/lib/browser/monaco-resolved-keybinding.d.ts +1 -1
- package/lib/browser/monaco-resolved-keybinding.d.ts.map +1 -1
- package/lib/browser/monaco-resolved-keybinding.js +35 -36
- package/lib/browser/monaco-resolved-keybinding.js.map +1 -1
- package/lib/browser/monaco-snippet-suggest-provider.js +31 -37
- package/lib/browser/monaco-snippet-suggest-provider.js.map +1 -1
- package/lib/browser/monaco-standalone-theme-service.d.ts +2 -2
- package/lib/browser/monaco-standalone-theme-service.d.ts.map +1 -1
- package/lib/browser/monaco-standalone-theme-service.js +2 -6
- package/lib/browser/monaco-standalone-theme-service.js.map +1 -1
- package/lib/browser/monaco-status-bar-contribution.js +26 -29
- package/lib/browser/monaco-status-bar-contribution.js.map +1 -1
- package/lib/browser/monaco-text-model-service.d.ts +6 -6
- package/lib/browser/monaco-text-model-service.d.ts.map +1 -1
- package/lib/browser/monaco-text-model-service.js +44 -58
- package/lib/browser/monaco-text-model-service.js.map +1 -1
- package/lib/browser/monaco-theming-service.d.ts +2 -2
- package/lib/browser/monaco-theming-service.d.ts.map +1 -1
- package/lib/browser/monaco-theming-service.js +30 -37
- package/lib/browser/monaco-theming-service.js.map +1 -1
- package/lib/browser/monaco-to-protocol-converter.js +8 -11
- package/lib/browser/monaco-to-protocol-converter.js.map +1 -1
- package/lib/browser/monaco-undo-redo-handler.d.ts +2 -2
- package/lib/browser/monaco-undo-redo-handler.d.ts.map +1 -1
- package/lib/browser/monaco-undo-redo-handler.js +15 -18
- package/lib/browser/monaco-undo-redo-handler.js.map +1 -1
- package/lib/browser/monaco-utilities.d.ts +1 -1
- package/lib/browser/monaco-utilities.d.ts.map +1 -1
- package/lib/browser/monaco-utilities.js +1 -4
- package/lib/browser/monaco-utilities.js.map +1 -1
- package/lib/browser/monaco-workspace-context-service.d.ts +7 -7
- package/lib/browser/monaco-workspace-context-service.d.ts.map +1 -1
- package/lib/browser/monaco-workspace-context-service.js +12 -15
- package/lib/browser/monaco-workspace-context-service.js.map +1 -1
- package/lib/browser/monaco-workspace.d.ts +5 -5
- package/lib/browser/monaco-workspace.d.ts.map +1 -1
- package/lib/browser/monaco-workspace.js +78 -92
- package/lib/browser/monaco-workspace.js.map +1 -1
- package/lib/browser/protocol-to-monaco-converter.js +6 -9
- package/lib/browser/protocol-to-monaco-converter.js.map +1 -1
- package/lib/browser/simple-monaco-editor.d.ts +4 -4
- package/lib/browser/simple-monaco-editor.d.ts.map +1 -1
- package/lib/browser/simple-monaco-editor.js +25 -29
- package/lib/browser/simple-monaco-editor.js.map +1 -1
- package/lib/browser/textmate/index.d.ts +4 -4
- package/lib/browser/textmate/index.d.ts.map +1 -1
- package/lib/browser/textmate/index.js +4 -7
- package/lib/browser/textmate/index.js.map +1 -1
- package/lib/browser/textmate/monaco-textmate-frontend-bindings.d.ts +2 -2
- package/lib/browser/textmate/monaco-textmate-frontend-bindings.d.ts.map +1 -1
- package/lib/browser/textmate/monaco-textmate-frontend-bindings.js +33 -37
- package/lib/browser/textmate/monaco-textmate-frontend-bindings.js.map +1 -1
- package/lib/browser/textmate/monaco-textmate-service.d.ts +5 -5
- package/lib/browser/textmate/monaco-textmate-service.d.ts.map +1 -1
- package/lib/browser/textmate/monaco-textmate-service.js +52 -63
- package/lib/browser/textmate/monaco-textmate-service.js.map +1 -1
- package/lib/browser/textmate/monaco-theme-registry.d.ts +2 -2
- package/lib/browser/textmate/monaco-theme-registry.d.ts.map +1 -1
- package/lib/browser/textmate/monaco-theme-registry.js +40 -35
- package/lib/browser/textmate/monaco-theme-registry.js.map +1 -1
- package/lib/browser/textmate/monaco-theme-types.d.ts +1 -1
- package/lib/browser/textmate/monaco-theme-types.d.ts.map +1 -1
- package/lib/browser/textmate/monaco-theme-types.js +4 -7
- package/lib/browser/textmate/monaco-theme-types.js.map +1 -1
- package/lib/browser/textmate/monaco-theme-types.spec.js +12 -14
- package/lib/browser/textmate/monaco-theme-types.spec.js.map +1 -1
- package/lib/browser/textmate/textmate-contribution.d.ts +1 -1
- package/lib/browser/textmate/textmate-contribution.d.ts.map +1 -1
- package/lib/browser/textmate/textmate-contribution.js +3 -7
- package/lib/browser/textmate/textmate-contribution.js.map +1 -1
- package/lib/browser/textmate/textmate-registry.d.ts +1 -1
- package/lib/browser/textmate/textmate-registry.d.ts.map +1 -1
- package/lib/browser/textmate/textmate-registry.js +13 -17
- package/lib/browser/textmate/textmate-registry.js.map +1 -1
- package/lib/browser/textmate/textmate-snippet-completion-provider.js +4 -8
- package/lib/browser/textmate/textmate-snippet-completion-provider.js.map +1 -1
- package/lib/browser/textmate/textmate-tokenizer.d.ts +1 -1
- package/lib/browser/textmate/textmate-tokenizer.d.ts.map +1 -1
- package/lib/browser/textmate/textmate-tokenizer.js +5 -9
- package/lib/browser/textmate/textmate-tokenizer.js.map +1 -1
- package/lib/browser/textmate/textmate-tokenizer.spec.js +10 -12
- package/lib/browser/textmate/textmate-tokenizer.spec.js.map +1 -1
- package/lib/browser/workspace-symbol-command.d.ts +1 -1
- package/lib/browser/workspace-symbol-command.d.ts.map +1 -1
- package/lib/browser/workspace-symbol-command.js +35 -44
- package/lib/browser/workspace-symbol-command.js.map +1 -1
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.js +1 -0
- package/package.json +18 -8
- package/src/browser/content-hover-widget-patcher.ts +2 -2
- package/src/browser/default-content-hover-widget-patcher.ts +2 -2
- package/src/browser/index.ts +2 -2
- package/src/browser/markdown-renderer/monaco-markdown-renderer.ts +5 -5
- package/src/browser/monaco-bulk-edit-service.ts +4 -4
- package/src/browser/monaco-code-action-save-participant.ts +3 -3
- package/src/browser/monaco-code-action-service.ts +9 -9
- package/src/browser/monaco-color-registry.ts +5 -5
- package/src/browser/monaco-command-registry.ts +2 -2
- package/src/browser/monaco-command-service.ts +3 -3
- package/src/browser/monaco-command.ts +9 -9
- package/src/browser/monaco-context-key-service.ts +4 -4
- package/src/browser/monaco-context-menu.ts +6 -6
- package/src/browser/monaco-diff-computer.ts +2 -2
- package/src/browser/monaco-diff-editor.ts +16 -16
- package/src/browser/monaco-diff-navigator-factory.ts +1 -1
- package/src/browser/monaco-editor-content-menu.ts +5 -5
- package/src/browser/monaco-editor-model.ts +8 -8
- package/src/browser/monaco-editor-overlay-button.ts +1 -1
- package/src/browser/monaco-editor-peek-view-widget.ts +10 -10
- package/src/browser/monaco-editor-provider.ts +21 -21
- package/src/browser/monaco-editor-service.ts +9 -9
- package/src/browser/monaco-editor.spec.ts +227 -0
- package/src/browser/monaco-editor.ts +52 -32
- package/src/browser/monaco-formatter-service.ts +6 -6
- package/src/browser/monaco-formatting-conflicts.ts +5 -5
- package/src/browser/monaco-frontend-application-contribution.ts +10 -10
- package/src/browser/monaco-frontend-module.ts +46 -46
- package/src/browser/monaco-gotoline-quick-access.ts +6 -6
- package/src/browser/monaco-gotosymbol-quick-access.ts +7 -7
- package/src/browser/monaco-icon-registry.ts +1 -1
- package/src/browser/monaco-indexed-db.ts +1 -1
- package/src/browser/monaco-init.spec.ts +32 -5
- package/src/browser/monaco-init.ts +32 -32
- package/src/browser/monaco-keybinding.spec.ts +121 -0
- package/src/browser/monaco-keybinding.ts +21 -11
- package/src/browser/monaco-keycode-map.ts +2 -2
- package/src/browser/monaco-languages.ts +4 -4
- package/src/browser/monaco-marker-collection.ts +1 -1
- package/src/browser/monaco-menu.ts +3 -3
- package/src/browser/monaco-mime-service.ts +5 -5
- package/src/browser/monaco-nls.ts +1 -1
- package/src/browser/monaco-outline-contribution.ts +13 -6
- package/src/browser/monaco-outline-decorator.spec.ts +96 -0
- package/src/browser/monaco-outline-decorator.ts +9 -6
- package/src/browser/monaco-quick-access-registry.ts +5 -5
- package/src/browser/monaco-quick-input-service.spec.ts +2 -2
- package/src/browser/monaco-quick-input-service.ts +148 -25
- package/src/browser/monaco-resolved-keybinding.ts +12 -9
- package/src/browser/monaco-snippet-suggest-provider.ts +1 -1
- package/src/browser/monaco-standalone-theme-service.ts +2 -2
- package/src/browser/monaco-status-bar-contribution.ts +1 -1
- package/src/browser/monaco-text-model-service.ts +8 -8
- package/src/browser/monaco-theming-service.ts +2 -2
- package/src/browser/monaco-undo-redo-handler.ts +3 -3
- package/src/browser/monaco-utilities.ts +1 -1
- package/src/browser/monaco-workspace-context-service.ts +3 -3
- package/src/browser/monaco-workspace.ts +10 -10
- package/src/browser/simple-monaco-editor.ts +8 -8
- package/src/browser/style/index.css +1 -5
- package/src/browser/textmate/index.ts +4 -4
- package/src/browser/textmate/monaco-textmate-frontend-bindings.ts +17 -15
- package/src/browser/textmate/monaco-textmate-service.ts +11 -11
- package/src/browser/textmate/monaco-theme-registry.ts +25 -15
- package/src/browser/textmate/monaco-theme-types.spec.ts +1 -1
- package/src/browser/textmate/monaco-theme-types.ts +1 -1
- package/src/browser/textmate/textmate-contribution.ts +1 -1
- package/src/browser/textmate/textmate-registry.ts +1 -1
- package/src/browser/textmate/textmate-snippet-completion-provider.ts +1 -1
- package/src/browser/textmate/textmate-tokenizer.spec.ts +1 -1
- package/src/browser/textmate/textmate-tokenizer.ts +3 -2
- package/src/browser/workspace-symbol-command.ts +1 -1
- package/src/typings/wasm.d.ts +21 -0
|
@@ -21,8 +21,8 @@ import * as jsoncparser from 'jsonc-parser';
|
|
|
21
21
|
import * as plistparser from 'fast-plist';
|
|
22
22
|
import URI from '@theia/core/lib/common/uri';
|
|
23
23
|
import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposable';
|
|
24
|
-
import { MonacoThemeRegistry } from './textmate/monaco-theme-registry';
|
|
25
|
-
import { getThemes, putTheme, MonacoThemeState, stateToTheme, ThemeServiceWithDB } from './monaco-indexed-db';
|
|
24
|
+
import { MonacoThemeRegistry } from './textmate/monaco-theme-registry.js';
|
|
25
|
+
import { getThemes, putTheme, MonacoThemeState, stateToTheme, ThemeServiceWithDB } from './monaco-indexed-db.js';
|
|
26
26
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
27
27
|
import * as monaco from '@theia/monaco-editor-core';
|
|
28
28
|
import { ILogger } from '@theia/core';
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
import { UndoRedoHandler } from '@theia/core/lib/browser';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
|
-
import { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser';
|
|
20
|
-
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService';
|
|
21
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
19
|
+
import { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser.js';
|
|
20
|
+
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService.js';
|
|
21
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
22
22
|
|
|
23
23
|
@injectable()
|
|
24
24
|
export abstract class AbstractMonacoUndoRedoHandler implements UndoRedoHandler<ICodeEditor> {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { MonacoEditorModel } from './monaco-editor-model';
|
|
17
|
+
import { MonacoEditorModel } from './monaco-editor-model.js';
|
|
18
18
|
|
|
19
19
|
export function insertFinalNewline(editorModel: MonacoEditorModel): void {
|
|
20
20
|
const model = editorModel.textEditorModel;
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
|
-
import { Emitter } from '@theia/monaco-editor-core/esm/vs/base/common/event';
|
|
19
|
-
import { URI } from '@theia/monaco-editor-core/esm/vs/base/common/uri';
|
|
18
|
+
import { Emitter } from '@theia/monaco-editor-core/esm/vs/base/common/event.js';
|
|
19
|
+
import { URI } from '@theia/monaco-editor-core/esm/vs/base/common/uri.js';
|
|
20
20
|
import {
|
|
21
21
|
ISingleFolderWorkspaceIdentifier,
|
|
22
22
|
IWorkspace,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
IWorkspaceIdentifier,
|
|
28
28
|
UNKNOWN_EMPTY_WINDOW_WORKSPACE,
|
|
29
29
|
WorkbenchState
|
|
30
|
-
} from '@theia/monaco-editor-core/esm/vs/platform/workspace/common/workspace';
|
|
30
|
+
} from '@theia/monaco-editor-core/esm/vs/platform/workspace/common/workspace.js';
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* A minimal implementation of {@link IWorkspaceContextService} to replace the `StandaloneWorkspaceContextService` in Monaco
|
|
@@ -23,9 +23,9 @@ import { Emitter } from '@theia/core/lib/common/event';
|
|
|
23
23
|
import { ILogger } from '@theia/core';
|
|
24
24
|
import { FileSystemPreferences } from '@theia/filesystem/lib/common';
|
|
25
25
|
import { EditorManager } from '@theia/editor/lib/browser';
|
|
26
|
-
import { MonacoTextModelService } from './monaco-text-model-service';
|
|
27
|
-
import { MonacoEditorModel, MonacoModelContentChangedEvent } from './monaco-editor-model';
|
|
28
|
-
import { MonacoEditor } from './monaco-editor';
|
|
26
|
+
import { MonacoTextModelService } from './monaco-text-model-service.js';
|
|
27
|
+
import { MonacoEditorModel, MonacoModelContentChangedEvent } from './monaco-editor-model.js';
|
|
28
|
+
import { MonacoEditor } from './monaco-editor.js';
|
|
29
29
|
import { ProblemManager } from '@theia/markers/lib/browser';
|
|
30
30
|
import { ArrayUtils } from '@theia/core/lib/common/types';
|
|
31
31
|
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
IBulkEditOptions,
|
|
36
36
|
IBulkEditResult, ResourceEdit, ResourceFileEdit as MonacoResourceFileEdit,
|
|
37
37
|
ResourceTextEdit as MonacoResourceTextEdit
|
|
38
|
-
} from '@theia/monaco-editor-core/esm/vs/editor/browser/services/bulkEditService';
|
|
39
|
-
import { IEditorWorkerService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/editorWorker';
|
|
40
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
41
|
-
import { EndOfLineSequence } from '@theia/monaco-editor-core/esm/vs/editor/common/model';
|
|
42
|
-
import { SnippetParser } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetParser';
|
|
43
|
-
import { TextEdit } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
44
|
-
import { SnippetController2 } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetController2';
|
|
38
|
+
} from '@theia/monaco-editor-core/esm/vs/editor/browser/services/bulkEditService.js';
|
|
39
|
+
import { IEditorWorkerService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/editorWorker.js';
|
|
40
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
41
|
+
import { EndOfLineSequence } from '@theia/monaco-editor-core/esm/vs/editor/common/model.js';
|
|
42
|
+
import { SnippetParser } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetParser.js';
|
|
43
|
+
import { TextEdit } from '@theia/monaco-editor-core/esm/vs/editor/common/languages.js';
|
|
44
|
+
import { SnippetController2 } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetController2.js';
|
|
45
45
|
import { isObject, MaybePromise, nls } from '@theia/core/lib/common';
|
|
46
46
|
import { SaveableService } from '@theia/core/lib/browser';
|
|
47
47
|
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
@@ -14,19 +14,19 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { EditorServiceOverrides, MonacoEditor, MonacoEditorServices } from './monaco-editor';
|
|
18
|
-
import { CodeEditorWidget, ICodeEditorWidgetOptions } from '@theia/monaco-editor-core/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
19
|
-
import { IInstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation';
|
|
20
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
21
|
-
import { ServiceCollection } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/serviceCollection';
|
|
17
|
+
import { EditorServiceOverrides, MonacoEditor, MonacoEditorServices } from './monaco-editor.js';
|
|
18
|
+
import { CodeEditorWidget, ICodeEditorWidgetOptions } from '@theia/monaco-editor-core/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js';
|
|
19
|
+
import { IInstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation.js';
|
|
20
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
21
|
+
import { ServiceCollection } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
22
22
|
import { Disposable, DisposableCollection, Emitter, Event, TextDocumentContentChangeDelta, URI } from '@theia/core';
|
|
23
|
-
import { MonacoEditorModel } from './monaco-editor-model';
|
|
23
|
+
import { MonacoEditorModel } from './monaco-editor-model.js';
|
|
24
24
|
import { Dimension, EditorMouseEvent, MouseTarget, Position, TextDocumentChangeEvent } from '@theia/editor/lib/browser';
|
|
25
25
|
import * as monaco from '@theia/monaco-editor-core';
|
|
26
26
|
import { ElementExt } from '@theia/core/shared/@lumino/domutils';
|
|
27
27
|
import { Selection } from '@theia/editor/lib/browser/editor';
|
|
28
|
-
import { SelectionDirection } from '@theia/monaco-editor-core/esm/vs/editor/common/core/selection';
|
|
29
|
-
import { ShowLightbulbIconMode } from '@theia/monaco-editor-core/esm/vs/editor/common/config/editorOptions';
|
|
28
|
+
import { SelectionDirection } from '@theia/monaco-editor-core/esm/vs/editor/common/core/selection.js';
|
|
29
|
+
import { ShowLightbulbIconMode } from '@theia/monaco-editor-core/esm/vs/editor/common/config/editorOptions.js';
|
|
30
30
|
|
|
31
31
|
export class SimpleMonacoEditor extends MonacoEditorServices implements Disposable {
|
|
32
32
|
|
|
@@ -309,13 +309,9 @@
|
|
|
309
309
|
min-width: max-content;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
/* Editor hover widget and overlay messages.
|
|
313
|
-
Alias --vscode- to --theia- for git blame hover addition/deletion colors
|
|
314
|
-
since the git extension uses --vscode- prefixed variables in inline styles. */
|
|
312
|
+
/* Editor hover widget and overlay messages. */
|
|
315
313
|
.monaco-editor .monaco-hover {
|
|
316
314
|
font-family: var(--theia-ui-font-family);
|
|
317
|
-
--vscode-scmGraph-historyItemHoverAdditionsForeground: var(--theia-scmGraph-historyItemHoverAdditionsForeground);
|
|
318
|
-
--vscode-scmGraph-historyItemHoverDeletionsForeground: var(--theia-scmGraph-historyItemHoverDeletionsForeground);
|
|
319
315
|
}
|
|
320
316
|
|
|
321
317
|
.monaco-editor .monaco-hover p {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
export * from './textmate-registry';
|
|
18
|
-
export * from './textmate-contribution';
|
|
19
|
-
export * from './monaco-textmate-service';
|
|
20
|
-
export * from './monaco-textmate-frontend-bindings';
|
|
17
|
+
export * from './textmate-registry.js';
|
|
18
|
+
export * from './textmate-contribution.js';
|
|
19
|
+
export * from './monaco-textmate-service.js';
|
|
20
|
+
export * from './monaco-textmate-frontend-bindings.js';
|
|
@@ -17,20 +17,21 @@
|
|
|
17
17
|
import { interfaces } from '@theia/core/shared/inversify';
|
|
18
18
|
import { FrontendApplicationContribution, isBasicWasmSupported } from '@theia/core/lib/browser';
|
|
19
19
|
import { bindRootContributionProvider } from '@theia/core';
|
|
20
|
-
import { TextmateRegistry } from './textmate-registry';
|
|
21
|
-
import { LanguageGrammarDefinitionContribution } from './textmate-contribution';
|
|
22
|
-
import { MonacoTextmateService } from './monaco-textmate-service';
|
|
23
|
-
import { MonacoThemeRegistry } from './monaco-theme-registry';
|
|
24
|
-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
20
|
+
import { TextmateRegistry } from './textmate-registry.js';
|
|
21
|
+
import { LanguageGrammarDefinitionContribution } from './textmate-contribution.js';
|
|
22
|
+
import { MonacoTextmateService } from './monaco-textmate-service.js';
|
|
23
|
+
import { MonacoThemeRegistry } from './monaco-theme-registry.js';
|
|
24
|
+
// CommonJS modules whose exports cannot be detected statically, so they are imported as a whole.
|
|
25
|
+
import vscodeOniguruma, { type OnigScanner, type OnigString } from 'vscode-oniguruma';
|
|
26
|
+
import vscodeTextmate, { type IOnigLib, type IRawGrammar } from 'vscode-textmate';
|
|
27
|
+
import { OnigasmProvider, TextmateRegistryFactory, ThemeMix } from './monaco-theme-types.js';
|
|
27
28
|
|
|
28
29
|
export class OnigasmLib implements IOnigLib {
|
|
29
30
|
createOnigScanner(sources: string[]): OnigScanner {
|
|
30
|
-
return createOnigScanner(sources);
|
|
31
|
+
return vscodeOniguruma.createOnigScanner(sources);
|
|
31
32
|
}
|
|
32
33
|
createOnigString(sources: string): OnigString {
|
|
33
|
-
return createOnigString(sources);
|
|
34
|
+
return vscodeOniguruma.createOnigString(sources);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
@@ -45,7 +46,7 @@ export default (bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: inter
|
|
|
45
46
|
bind(TextmateRegistryFactory).toFactory(({ container }) => (theme?: ThemeMix) => {
|
|
46
47
|
const onigProvider = container.get<OnigasmProvider>(OnigasmProvider);
|
|
47
48
|
const textmateRegistry = container.get(TextmateRegistry);
|
|
48
|
-
return new Registry({
|
|
49
|
+
return new vscodeTextmate.Registry({
|
|
49
50
|
onigLib: onigProvider(),
|
|
50
51
|
theme,
|
|
51
52
|
loadGrammar: async (scopeName: string) => {
|
|
@@ -54,7 +55,7 @@ export default (bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: inter
|
|
|
54
55
|
const definition = await provider.getGrammarDefinition();
|
|
55
56
|
let rawGrammar: IRawGrammar;
|
|
56
57
|
if (typeof definition.content === 'string') {
|
|
57
|
-
rawGrammar = parseRawGrammar(definition.content, definition.format === 'json' ? 'grammar.json' : 'grammar.plist');
|
|
58
|
+
rawGrammar = vscodeTextmate.parseRawGrammar(definition.content, definition.format === 'json' ? 'grammar.json' : 'grammar.plist');
|
|
58
59
|
} else {
|
|
59
60
|
rawGrammar = definition.content as IRawGrammar;
|
|
60
61
|
}
|
|
@@ -78,13 +79,14 @@ export async function createOnigasmLib(): Promise<IOnigLib> {
|
|
|
78
79
|
throw new Error('wasm not supported');
|
|
79
80
|
}
|
|
80
81
|
const wasm = await fetchOnigasm();
|
|
81
|
-
await loadWASM(wasm);
|
|
82
|
+
await vscodeOniguruma.loadWASM(wasm);
|
|
82
83
|
return new OnigasmLib();
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
export async function fetchOnigasm(): Promise<ArrayBuffer> {
|
|
86
|
-
//
|
|
87
|
-
|
|
88
|
-
const
|
|
87
|
+
// The bundler's loader for `.wasm` files gives us a URL to fetch the resource from.
|
|
88
|
+
// It is imported when needed, as Node would load it as a WebAssembly module.
|
|
89
|
+
const { default: onigasmUrl } = await import('vscode-oniguruma/release/onig.wasm');
|
|
90
|
+
const response = await fetch(onigasmUrl, { method: 'GET' });
|
|
89
91
|
return response.arrayBuffer();
|
|
90
92
|
}
|
|
@@ -19,19 +19,19 @@ import { Registry } from 'vscode-textmate';
|
|
|
19
19
|
import { ILogger, ContributionProvider, DisposableCollection, Disposable } from '@theia/core';
|
|
20
20
|
import { FrontendApplicationContribution, isBasicWasmSupported } from '@theia/core/lib/browser';
|
|
21
21
|
import { ThemeService } from '@theia/core/lib/browser/theming';
|
|
22
|
-
import { LanguageGrammarDefinitionContribution, getEncodedLanguageId } from './textmate-contribution';
|
|
23
|
-
import { createTextmateTokenizer, TokenizerOption } from './textmate-tokenizer';
|
|
24
|
-
import { TextmateRegistry } from './textmate-registry';
|
|
25
|
-
import { MonacoThemeRegistry } from './monaco-theme-registry';
|
|
22
|
+
import { LanguageGrammarDefinitionContribution, getEncodedLanguageId } from './textmate-contribution.js';
|
|
23
|
+
import { createTextmateTokenizer, TokenizerOption } from './textmate-tokenizer.js';
|
|
24
|
+
import { TextmateRegistry } from './textmate-registry.js';
|
|
25
|
+
import { MonacoThemeRegistry } from './monaco-theme-registry.js';
|
|
26
26
|
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
27
27
|
import * as monaco from '@theia/monaco-editor-core';
|
|
28
|
-
import { TokenizationRegistry } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
29
|
-
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme';
|
|
30
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
31
|
-
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language';
|
|
32
|
-
import { TokenizationSupportAdapter } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneLanguages';
|
|
33
|
-
import { LanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageService';
|
|
34
|
-
import { OnigasmProvider, TextmateRegistryFactory } from './monaco-theme-types';
|
|
28
|
+
import { TokenizationRegistry } from '@theia/monaco-editor-core/esm/vs/editor/common/languages.js';
|
|
29
|
+
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme.js';
|
|
30
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
31
|
+
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language.js';
|
|
32
|
+
import { TokenizationSupportAdapter } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneLanguages.js';
|
|
33
|
+
import { LanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageService.js';
|
|
34
|
+
import { OnigasmProvider, TextmateRegistryFactory } from './monaco-theme-types.js';
|
|
35
35
|
|
|
36
36
|
@injectable()
|
|
37
37
|
export class MonacoTextmateService implements FrontendApplicationContribution {
|
|
@@ -20,13 +20,23 @@
|
|
|
20
20
|
import { inject, injectable, named } from '@theia/core/shared/inversify';
|
|
21
21
|
import { IRawTheme } from 'vscode-textmate';
|
|
22
22
|
import * as monaco from '@theia/monaco-editor-core';
|
|
23
|
-
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme';
|
|
24
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
25
|
-
import { StandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneThemeService';
|
|
26
|
-
import { Color } from '@theia/monaco-editor-core/esm/vs/base/common/color';
|
|
27
|
-
import { MixStandaloneTheme, MonacoThemeColor, TextmateRegistryFactory, ThemeMix } from './monaco-theme-types';
|
|
23
|
+
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme.js';
|
|
24
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
25
|
+
import { StandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneThemeService.js';
|
|
26
|
+
import { Color } from '@theia/monaco-editor-core/esm/vs/base/common/color.js';
|
|
27
|
+
import { MixStandaloneTheme, MonacoThemeColor, TextmateRegistryFactory, ThemeMix } from './monaco-theme-types.js';
|
|
28
28
|
import { ILogger } from '@theia/core';
|
|
29
29
|
import { ThemeType } from '@theia/core/lib/common/theme';
|
|
30
|
+
import darkPlusTheme from '../../../data/monaco-themes/vscode/dark_plus.json' with { type: 'json' };
|
|
31
|
+
import darkTheiaTheme from '../../../data/monaco-themes/vscode/dark_theia.json' with { type: 'json' };
|
|
32
|
+
import darkVsTheme from '../../../data/monaco-themes/vscode/dark_vs.json' with { type: 'json' };
|
|
33
|
+
import hcBlackTheme from '../../../data/monaco-themes/vscode/hc_black.json' with { type: 'json' };
|
|
34
|
+
import hcLightTheme from '../../../data/monaco-themes/vscode/hc_light.json' with { type: 'json' };
|
|
35
|
+
import hcTheiaTheme from '../../../data/monaco-themes/vscode/hc_theia.json' with { type: 'json' };
|
|
36
|
+
import hcTheiaLightTheme from '../../../data/monaco-themes/vscode/hc_theia_light.json' with { type: 'json' };
|
|
37
|
+
import lightPlusTheme from '../../../data/monaco-themes/vscode/light_plus.json' with { type: 'json' };
|
|
38
|
+
import lightTheiaTheme from '../../../data/monaco-themes/vscode/light_theia.json' with { type: 'json' };
|
|
39
|
+
import lightVsTheme from '../../../data/monaco-themes/vscode/light_vs.json' with { type: 'json' };
|
|
30
40
|
|
|
31
41
|
@injectable()
|
|
32
42
|
export class MonacoThemeRegistry {
|
|
@@ -37,19 +47,19 @@ export class MonacoThemeRegistry {
|
|
|
37
47
|
protected readonly logger: ILogger;
|
|
38
48
|
|
|
39
49
|
initializeDefaultThemes(): void {
|
|
40
|
-
this.register(
|
|
41
|
-
'./dark_vs.json':
|
|
42
|
-
'./dark_plus.json':
|
|
50
|
+
this.register(darkTheiaTheme, {
|
|
51
|
+
'./dark_vs.json': darkVsTheme,
|
|
52
|
+
'./dark_plus.json': darkPlusTheme
|
|
43
53
|
}, 'dark-theia', 'vs-dark');
|
|
44
|
-
this.register(
|
|
45
|
-
'./light_vs.json':
|
|
46
|
-
'./light_plus.json':
|
|
54
|
+
this.register(lightTheiaTheme, {
|
|
55
|
+
'./light_vs.json': lightVsTheme,
|
|
56
|
+
'./light_plus.json': lightPlusTheme,
|
|
47
57
|
}, 'light-theia', 'vs');
|
|
48
|
-
this.register(
|
|
49
|
-
'./hc_black.json':
|
|
58
|
+
this.register(hcTheiaTheme, {
|
|
59
|
+
'./hc_black.json': hcBlackTheme
|
|
50
60
|
}, 'hc-theia', 'hc-black');
|
|
51
|
-
this.register(
|
|
52
|
-
'./hc_light.json':
|
|
61
|
+
this.register(hcTheiaLightTheme, {
|
|
62
|
+
'./hc_light.json': hcLightTheme
|
|
53
63
|
}, 'hc-theia-light', 'hc-light');
|
|
54
64
|
}
|
|
55
65
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
|
-
import { MonacoThemeColor } from './monaco-theme-types';
|
|
18
|
+
import { MonacoThemeColor } from './monaco-theme-types.js';
|
|
19
19
|
|
|
20
20
|
describe('MonacoThemeColor', () => {
|
|
21
21
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as monaco from '@theia/monaco-editor-core';
|
|
18
|
-
import { IStandaloneTheme } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme';
|
|
18
|
+
import { IStandaloneTheme } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme.js';
|
|
19
19
|
import { IOnigLib, IRawTheme, Registry } from 'vscode-textmate';
|
|
20
20
|
|
|
21
21
|
export interface ThemeMix extends IRawTheme, monaco.editor.IStandaloneThemeData { }
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import { TextmateRegistry } from './textmate-registry';
|
|
17
|
+
import { TextmateRegistry } from './textmate-registry.js';
|
|
18
18
|
import * as monaco from '@theia/monaco-editor-core';
|
|
19
19
|
|
|
20
20
|
/**
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable, inject, named } from '@theia/core/shared/inversify';
|
|
18
18
|
import { IGrammarConfiguration } from 'vscode-textmate';
|
|
19
|
-
import { TokenizerOption } from './textmate-tokenizer';
|
|
19
|
+
import { TokenizerOption } from './textmate-tokenizer.js';
|
|
20
20
|
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
21
21
|
import { ILogger } from '@theia/core';
|
|
22
22
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as monaco from '@theia/monaco-editor-core';
|
|
18
|
-
import { SnippetParser } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetParser';
|
|
18
|
+
import { SnippetParser } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetParser.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @deprecated use MonacoSnippetSuggestProvider instead
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { expect } from 'chai';
|
|
18
18
|
import { IGrammar, StateStack } from 'vscode-textmate';
|
|
19
|
-
import { createTextmateTokenizer, TokenizerState } from './textmate-tokenizer';
|
|
19
|
+
import { createTextmateTokenizer, TokenizerState } from './textmate-tokenizer.js';
|
|
20
20
|
|
|
21
21
|
describe('createTextmateTokenizer', () => {
|
|
22
22
|
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// A CommonJS module whose exports cannot be detected statically, so it is imported as a whole.
|
|
18
|
+
import vscodeTextmate, { type IGrammar, type StateStack } from 'vscode-textmate';
|
|
18
19
|
import * as monaco from '@theia/monaco-editor-core';
|
|
19
20
|
|
|
20
21
|
export class TokenizerState implements monaco.languages.IState {
|
|
@@ -55,7 +56,7 @@ export function createTextmateTokenizer(grammar: IGrammar, options: TokenizerOpt
|
|
|
55
56
|
throw new Error(`The 'lineLimit' must be a positive integer. It was ${options.lineLimit}.`);
|
|
56
57
|
}
|
|
57
58
|
return {
|
|
58
|
-
getInitialState: () => new TokenizerState(INITIAL),
|
|
59
|
+
getInitialState: () => new TokenizerState(vscodeTextmate.INITIAL),
|
|
59
60
|
tokenizeEncoded(line: string, state: TokenizerState): monaco.languages.IEncodedLineTokens {
|
|
60
61
|
if (options.lineLimit !== undefined && line.length > options.lineLimit) {
|
|
61
62
|
// Skip tokenizing the line if it exceeds the line limit. The state must be
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
CommandContribution, MenuContribution, MenuModelRegistry, nls
|
|
24
24
|
} from '@theia/core/lib/common';
|
|
25
25
|
import { Range, Position, SymbolInformation, WorkspaceSymbolParams } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
26
|
-
import { MonacoLanguages, WorkspaceSymbolProvider } from './monaco-languages';
|
|
26
|
+
import { MonacoLanguages, WorkspaceSymbolProvider } from './monaco-languages.js';
|
|
27
27
|
import URI from '@theia/core/lib/common/uri';
|
|
28
28
|
import { EditorMainMenu } from '@theia/editor/lib/browser';
|
|
29
29
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// *****************************************************************************
|
|
2
|
+
// Copyright (C) 2026 EclipseSource and others.
|
|
3
|
+
//
|
|
4
|
+
// This program and the accompanying materials are made available under the
|
|
5
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
//
|
|
8
|
+
// This Source Code may also be made available under the following Secondary
|
|
9
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
// with the GNU Classpath Exception which is available at
|
|
12
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
//
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
|
+
// *****************************************************************************
|
|
16
|
+
|
|
17
|
+
declare module '*.wasm' {
|
|
18
|
+
/** The URL of the WebAssembly module, as provided by the bundler. */
|
|
19
|
+
const url: string;
|
|
20
|
+
export default url;
|
|
21
|
+
}
|