@theia/monaco 1.77.0-next.95 → 1.77.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/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 +2 -2
- 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 +14 -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 +52 -52
- package/lib/browser/monaco-editor-model.js.map +1 -1
- package/lib/browser/monaco-editor-model.spec.d.ts +2 -0
- package/lib/browser/monaco-editor-model.spec.d.ts.map +1 -0
- package/lib/browser/monaco-editor-model.spec.js +129 -0
- package/lib/browser/monaco-editor-model.spec.js.map +1 -0
- 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 -16
- 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 -15
- package/lib/browser/monaco-editor-zone-widget.js.map +1 -1
- package/lib/browser/monaco-editor.d.ts +7 -7
- package/lib/browser/monaco-editor.d.ts.map +1 -1
- package/lib/browser/monaco-editor.js +78 -88
- package/lib/browser/monaco-editor.js.map +1 -1
- package/lib/browser/monaco-editor.spec.js +65 -68
- package/lib/browser/monaco-editor.spec.js.map +1 -1
- package/lib/browser/monaco-formatter-service.d.ts +5 -7
- package/lib/browser/monaco-formatter-service.d.ts.map +1 -1
- package/lib/browser/monaco-formatter-service.js +33 -55
- 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.d.ts.map +1 -1
- package/lib/browser/monaco-frontend-module.js +177 -198
- 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 +18 -20
- package/lib/browser/monaco-init.spec.js.map +1 -1
- package/lib/browser/monaco-keybinding.d.ts +2 -2
- package/lib/browser/monaco-keybinding.d.ts.map +1 -1
- package/lib/browser/monaco-keybinding.js +42 -53
- package/lib/browser/monaco-keybinding.js.map +1 -1
- package/lib/browser/monaco-keybinding.spec.js +50 -50
- package/lib/browser/monaco-keybinding.spec.js.map +1 -1
- 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 -126
- 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 -7
- 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 +2 -2
- package/lib/browser/monaco-outline-contribution.d.ts.map +1 -1
- package/lib/browser/monaco-outline-contribution.js +31 -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 +11 -14
- package/lib/browser/monaco-outline-decorator.js.map +1 -1
- package/lib/browser/monaco-outline-decorator.spec.js +15 -18
- package/lib/browser/monaco-outline-decorator.spec.js.map +1 -1
- 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 +9 -9
- package/lib/browser/monaco-quick-input-service.d.ts.map +1 -1
- package/lib/browser/monaco-quick-input-service.js +67 -78
- 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 +32 -37
- 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 -30
- 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 -8
- 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 -9
- 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 -1
- package/lib/package.spec.js.map +1 -1
- package/package.json +19 -9
- 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 +3 -3
- 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 +15 -15
- 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.spec.ts +157 -0
- package/src/browser/monaco-editor-model.ts +14 -9
- 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 +20 -20
- package/src/browser/monaco-editor-service.ts +9 -9
- package/src/browser/monaco-editor.spec.ts +11 -11
- package/src/browser/monaco-editor.ts +25 -25
- package/src/browser/monaco-formatter-service.ts +14 -28
- 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 +66 -80
- 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 +4 -4
- package/src/browser/monaco-init.ts +32 -32
- package/src/browser/monaco-keybinding.spec.ts +15 -11
- package/src/browser/monaco-keybinding.ts +8 -8
- 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 +6 -6
- package/src/browser/monaco-outline-decorator.spec.ts +5 -5
- package/src/browser/monaco-outline-decorator.ts +1 -1
- 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 +24 -19
- package/src/browser/monaco-resolved-keybinding.ts +6 -6
- 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/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
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
18
|
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
19
19
|
import { EditorManager } from '@theia/editor/lib/browser';
|
|
20
|
-
import { MonacoQuickInputService } from './monaco-quick-input-service';
|
|
20
|
+
import { MonacoQuickInputService } from './monaco-quick-input-service.js';
|
|
21
21
|
import * as monaco from '@theia/monaco-editor-core';
|
|
22
|
-
import { FormattingConflicts, FormattingMode } from '@theia/monaco-editor-core/esm/vs/editor/contrib/format/browser/format';
|
|
23
|
-
import { DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
24
|
-
import { ITextModel } from '@theia/monaco-editor-core/esm/vs/editor/common/model';
|
|
22
|
+
import { FormattingConflicts, FormattingMode } from '@theia/monaco-editor-core/esm/vs/editor/contrib/format/browser/format.js';
|
|
23
|
+
import { DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/languages.js';
|
|
24
|
+
import { ITextModel } from '@theia/monaco-editor-core/esm/vs/editor/common/model.js';
|
|
25
25
|
import { nls, PreferenceScope } from '@theia/core';
|
|
26
|
-
import { MonacoFormatterService } from './monaco-formatter-service';
|
|
26
|
+
import { MonacoFormatterService } from './monaco-formatter-service.js';
|
|
27
27
|
|
|
28
28
|
type FormattingEditProvider = DocumentFormattingEditProvider | DocumentRangeFormattingEditProvider;
|
|
29
29
|
|
|
@@ -16,22 +16,22 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
|
|
18
18
|
import { ColorTheme, CssStyleCollector, FrontendApplicationContribution, QuickAccessRegistry, StylingParticipant } from '@theia/core/lib/browser';
|
|
19
|
-
import { MonacoSnippetSuggestProvider } from './monaco-snippet-suggest-provider';
|
|
19
|
+
import { MonacoSnippetSuggestProvider } from './monaco-snippet-suggest-provider.js';
|
|
20
20
|
import * as monaco from '@theia/monaco-editor-core';
|
|
21
|
-
import { setSnippetSuggestSupport } from '@theia/monaco-editor-core/esm/vs/editor/contrib/suggest/browser/suggest';
|
|
22
|
-
import { CompletionItemProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
23
|
-
import { MonacoTextModelService } from './monaco-text-model-service';
|
|
24
|
-
import { MonacoThemingService } from './monaco-theming-service';
|
|
21
|
+
import { setSnippetSuggestSupport } from '@theia/monaco-editor-core/esm/vs/editor/contrib/suggest/browser/suggest.js';
|
|
22
|
+
import { CompletionItemProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/languages.js';
|
|
23
|
+
import { MonacoTextModelService } from './monaco-text-model-service.js';
|
|
24
|
+
import { MonacoThemingService } from './monaco-theming-service.js';
|
|
25
25
|
import { isHighContrast } from '@theia/core/lib/common/theme';
|
|
26
|
-
import { editorOptionsRegistry, IEditorOption } from '@theia/monaco-editor-core/esm/vs/editor/common/config/editorOptions';
|
|
26
|
+
import { editorOptionsRegistry, IEditorOption } from '@theia/monaco-editor-core/esm/vs/editor/common/config/editorOptions.js';
|
|
27
27
|
import { DisposableCollection, MAX_SAFE_INTEGER, PreferenceSchemaService } from '@theia/core';
|
|
28
28
|
import { editorGeneratedPreferenceProperties } from '@theia/editor/lib/common/editor-generated-preference-schema';
|
|
29
29
|
import { WorkspaceFileService } from '@theia/workspace/lib/common/workspace-file-service';
|
|
30
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
31
|
-
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme';
|
|
32
|
-
import { MonacoStandaloneThemeService } from './monaco-standalone-theme-service';
|
|
30
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
31
|
+
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme.js';
|
|
32
|
+
import { MonacoStandaloneThemeService } from './monaco-standalone-theme-service.js';
|
|
33
33
|
import { SecondaryWindowService } from '@theia/core/lib/browser/window/secondary-window-service';
|
|
34
|
-
import { registerWindow } from '@theia/monaco-editor-core/esm/vs/base/browser/dom';
|
|
34
|
+
import { registerWindow } from '@theia/monaco-editor-core/esm/vs/base/browser/dom.js';
|
|
35
35
|
|
|
36
36
|
type CodeWindow = Window & typeof globalThis & {
|
|
37
37
|
vscodeWindowId: number;
|
|
@@ -18,74 +18,75 @@ import '../../src/browser/style/index.css';
|
|
|
18
18
|
import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
|
|
19
19
|
import {
|
|
20
20
|
MenuContribution, CommandContribution, quickInputServicePath, createPreferenceProxy,
|
|
21
|
-
|
|
21
|
+
PreferenceChange, PreferenceScope, PreferenceService,
|
|
22
22
|
PreferenceSchemaService
|
|
23
23
|
} from '@theia/core/lib/common';
|
|
24
24
|
import {
|
|
25
25
|
FrontendApplicationContribution, KeybindingContribution, QuickInputService, StylingParticipant, WebSocketConnectionProvider, UndoRedoHandler, WidgetStatusBarContribution
|
|
26
26
|
} from '@theia/core/lib/browser';
|
|
27
27
|
import { TextEditorProvider, DiffNavigatorProvider, TextEditor, FormatterService } from '@theia/editor/lib/browser';
|
|
28
|
-
import { MonacoEditorProvider, MonacoEditorFactory, SaveParticipant } from './monaco-editor-provider';
|
|
29
|
-
import { MonacoEditorMenuContribution } from './monaco-menu';
|
|
30
|
-
import { MonacoEditorCommandHandlers } from './monaco-command';
|
|
31
|
-
import { MonacoKeybindingContribution } from './monaco-keybinding';
|
|
32
|
-
import { MonacoLanguages } from './monaco-languages';
|
|
33
|
-
import { MonacoWorkspace } from './monaco-workspace';
|
|
34
|
-
import { ActiveMonacoEditorContribution, MonacoEditorService, MonacoEditorServiceFactory, VSCodeContextKeyService, VSCodeThemeService } from './monaco-editor-service';
|
|
35
|
-
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService';
|
|
36
|
-
import { MonacoTextModelService, MonacoEditorModelFactory, MonacoEditorModelFilter } from './monaco-text-model-service';
|
|
37
|
-
import { MonacoContextMenuService } from './monaco-context-menu';
|
|
38
|
-
import { MonacoOutlineContribution } from './monaco-outline-contribution';
|
|
39
|
-
import { MonacoStatusBarContribution } from './monaco-status-bar-contribution';
|
|
40
|
-
import { MonacoCommandService } from './monaco-command-service';
|
|
41
|
-
import { MonacoCommandRegistry } from './monaco-command-registry';
|
|
42
|
-
import { MonacoDiffNavigatorFactory } from './monaco-diff-navigator-factory';
|
|
43
|
-
import { MonacoFrontendApplicationContribution } from './monaco-frontend-application-contribution';
|
|
44
|
-
import MonacoTextmateModuleBinder from './textmate/monaco-textmate-frontend-bindings';
|
|
45
|
-
import { MonacoBulkEditService } from './monaco-bulk-edit-service';
|
|
46
|
-
import { MonacoOutlineDecorator } from './monaco-outline-decorator';
|
|
28
|
+
import { MonacoEditorProvider, MonacoEditorFactory, SaveParticipant } from './monaco-editor-provider.js';
|
|
29
|
+
import { MonacoEditorMenuContribution } from './monaco-menu.js';
|
|
30
|
+
import { MonacoEditorCommandHandlers } from './monaco-command.js';
|
|
31
|
+
import { MonacoKeybindingContribution } from './monaco-keybinding.js';
|
|
32
|
+
import { MonacoLanguages } from './monaco-languages.js';
|
|
33
|
+
import { MonacoWorkspace } from './monaco-workspace.js';
|
|
34
|
+
import { ActiveMonacoEditorContribution, MonacoEditorService, MonacoEditorServiceFactory, VSCodeContextKeyService, VSCodeThemeService } from './monaco-editor-service.js';
|
|
35
|
+
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService.js';
|
|
36
|
+
import { MonacoTextModelService, MonacoEditorModelFactory, MonacoEditorModelFilter } from './monaco-text-model-service.js';
|
|
37
|
+
import { MonacoContextMenuService } from './monaco-context-menu.js';
|
|
38
|
+
import { MonacoOutlineContribution } from './monaco-outline-contribution.js';
|
|
39
|
+
import { MonacoStatusBarContribution } from './monaco-status-bar-contribution.js';
|
|
40
|
+
import { MonacoCommandService } from './monaco-command-service.js';
|
|
41
|
+
import { MonacoCommandRegistry } from './monaco-command-registry.js';
|
|
42
|
+
import { MonacoDiffNavigatorFactory } from './monaco-diff-navigator-factory.js';
|
|
43
|
+
import { MonacoFrontendApplicationContribution } from './monaco-frontend-application-contribution.js';
|
|
44
|
+
import MonacoTextmateModuleBinder from './textmate/monaco-textmate-frontend-bindings.js';
|
|
45
|
+
import { MonacoBulkEditService } from './monaco-bulk-edit-service.js';
|
|
46
|
+
import { MonacoOutlineDecorator } from './monaco-outline-decorator.js';
|
|
47
47
|
import { OutlineTreeDecorator } from '@theia/outline-view/lib/browser/outline-decorator-service';
|
|
48
|
-
import { MonacoSnippetSuggestProvider } from './monaco-snippet-suggest-provider';
|
|
48
|
+
import { MonacoSnippetSuggestProvider } from './monaco-snippet-suggest-provider.js';
|
|
49
49
|
import { ContextKeyService } from '@theia/core/lib/browser/context-key-service';
|
|
50
|
-
import { MonacoContextKeyService } from './monaco-context-key-service';
|
|
51
|
-
import { MonacoMimeService } from './monaco-mime-service';
|
|
50
|
+
import { MonacoContextKeyService } from './monaco-context-key-service.js';
|
|
51
|
+
import { MonacoMimeService } from './monaco-mime-service.js';
|
|
52
52
|
import { MimeService } from '@theia/core/lib/browser/mime-service';
|
|
53
|
-
import { MonacoEditorServices } from './monaco-editor';
|
|
54
|
-
import { MonacoColorRegistry } from './monaco-color-registry';
|
|
53
|
+
import { MonacoEditorServices } from './monaco-editor.js';
|
|
54
|
+
import { MonacoColorRegistry } from './monaco-color-registry.js';
|
|
55
55
|
import { ColorRegistry } from '@theia/core/lib/browser/color-registry';
|
|
56
|
-
import { MonacoIconRegistry } from './monaco-icon-registry';
|
|
56
|
+
import { MonacoIconRegistry } from './monaco-icon-registry.js';
|
|
57
57
|
import { IconRegistry } from '@theia/core/lib/browser/icon-registry';
|
|
58
|
-
import { MonacoThemingService } from './monaco-theming-service';
|
|
58
|
+
import { MonacoThemingService } from './monaco-theming-service.js';
|
|
59
59
|
import { bindRootContributionProvider } from '@theia/core';
|
|
60
|
-
import { WorkspaceSymbolCommand } from './workspace-symbol-command';
|
|
60
|
+
import { WorkspaceSymbolCommand } from './workspace-symbol-command.js';
|
|
61
61
|
import { LanguageService } from '@theia/core/lib/browser/language-service';
|
|
62
|
-
import { MonacoToProtocolConverter } from './monaco-to-protocol-converter';
|
|
63
|
-
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter';
|
|
64
|
-
import { MonacoFormattingConflictsContribution } from './monaco-formatting-conflicts';
|
|
65
|
-
import { MonacoFormatterService } from './monaco-formatter-service';
|
|
66
|
-
import { MonacoQuickInputImplementation, MonacoQuickInputService } from './monaco-quick-input-service';
|
|
67
|
-
import { GotoLineQuickAccessContribution } from './monaco-gotoline-quick-access';
|
|
68
|
-
import { GotoSymbolQuickAccessContribution } from './monaco-gotosymbol-quick-access';
|
|
62
|
+
import { MonacoToProtocolConverter } from './monaco-to-protocol-converter.js';
|
|
63
|
+
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter.js';
|
|
64
|
+
import { MonacoFormattingConflictsContribution } from './monaco-formatting-conflicts.js';
|
|
65
|
+
import { MonacoFormatterService } from './monaco-formatter-service.js';
|
|
66
|
+
import { MonacoQuickInputImplementation, MonacoQuickInputService } from './monaco-quick-input-service.js';
|
|
67
|
+
import { GotoLineQuickAccessContribution } from './monaco-gotoline-quick-access.js';
|
|
68
|
+
import { GotoSymbolQuickAccessContribution } from './monaco-gotosymbol-quick-access.js';
|
|
69
69
|
import { QuickAccessContribution, QuickAccessRegistry } from '@theia/core/lib/browser/quick-input/quick-access';
|
|
70
|
-
import { MonacoQuickAccessRegistry } from './monaco-quick-access-registry';
|
|
71
|
-
import { ConfigurationTarget, IConfigurationChangeEvent,
|
|
72
|
-
|
|
70
|
+
import { MonacoQuickAccessRegistry } from './monaco-quick-access-registry.js';
|
|
71
|
+
import { ConfigurationTarget, IConfigurationChangeEvent,
|
|
72
|
+
IConfigurationOverrides, IConfigurationService } from '@theia/monaco-editor-core/esm/vs/platform/configuration/common/configuration.js';
|
|
73
|
+
import { StandaloneConfigurationService, StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
73
74
|
import { Configuration } from '@theia/monaco-editor-core/esm/vs/platform/configuration/common/configurationModels.js';
|
|
74
75
|
import { MarkdownRenderer } from '@theia/core/lib/browser/markdown-rendering/markdown-renderer';
|
|
75
|
-
import { MonacoMarkdownRenderer } from './markdown-renderer/monaco-markdown-renderer';
|
|
76
|
+
import { MonacoMarkdownRenderer } from './markdown-renderer/monaco-markdown-renderer.js';
|
|
76
77
|
import { ThemeService } from '@theia/core/lib/browser/theming';
|
|
77
|
-
import { ThemeServiceWithDB } from './monaco-indexed-db';
|
|
78
|
+
import { ThemeServiceWithDB } from './monaco-indexed-db.js';
|
|
78
79
|
import { IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey.js';
|
|
79
80
|
import { IThemeService } from '@theia/monaco-editor-core/esm/vs/platform/theme/common/themeService.js';
|
|
80
|
-
import { ActiveMonacoUndoRedoHandler, FocusedMonacoUndoRedoHandler } from './monaco-undo-redo-handler';
|
|
81
|
-
import { ILogService } from '@theia/monaco-editor-core/esm/vs/platform/log/common/log';
|
|
82
|
-
import { DefaultContentHoverWidgetPatcher } from './default-content-hover-widget-patcher';
|
|
83
|
-
import { MonacoWorkspaceContextService } from './monaco-workspace-context-service';
|
|
84
|
-
import { MonacoCodeActionSaveParticipant } from './monaco-code-action-save-participant';
|
|
85
|
-
import { MonacoCodeActionService, MonacoCodeActionServiceImpl } from './monaco-code-action-service';
|
|
86
|
-
import { MonacoDiffComputer } from './monaco-diff-computer';
|
|
81
|
+
import { ActiveMonacoUndoRedoHandler, FocusedMonacoUndoRedoHandler } from './monaco-undo-redo-handler.js';
|
|
82
|
+
import { ILogService } from '@theia/monaco-editor-core/esm/vs/platform/log/common/log.js';
|
|
83
|
+
import { DefaultContentHoverWidgetPatcher } from './default-content-hover-widget-patcher.js';
|
|
84
|
+
import { MonacoWorkspaceContextService } from './monaco-workspace-context-service.js';
|
|
85
|
+
import { MonacoCodeActionSaveParticipant } from './monaco-code-action-save-participant.js';
|
|
86
|
+
import { MonacoCodeActionService, MonacoCodeActionServiceImpl } from './monaco-code-action-service.js';
|
|
87
|
+
import { MonacoDiffComputer } from './monaco-diff-computer.js';
|
|
87
88
|
import { DiffComputer } from '@theia/core/lib/common/diff';
|
|
88
|
-
import { MonacoEditorContentMenuContribution } from './monaco-editor-content-menu';
|
|
89
|
+
import { MonacoEditorContentMenuContribution } from './monaco-editor-content-menu.js';
|
|
89
90
|
|
|
90
91
|
export default new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
91
92
|
bind(MonacoThemingService).toSelf().inSingletonScope();
|
|
@@ -224,11 +225,9 @@ export function createMonacoConfigurationService(container: interfaces.Container
|
|
|
224
225
|
const service = new StandaloneConfigurationService(StandaloneServices.get(ILogService));
|
|
225
226
|
const _configuration: Configuration = service['_configuration'];
|
|
226
227
|
|
|
227
|
-
_configuration.getValue = (section, overrides) => {
|
|
228
|
-
const overrideIdentifier
|
|
229
|
-
|
|
230
|
-
: undefined;
|
|
231
|
-
const resourceUri: string | undefined = (overrides && 'resource' in overrides && !!overrides['resource']) ? overrides['resource'].toString() : undefined;
|
|
228
|
+
_configuration.getValue = (section, overrides: IConfigurationOverrides) => {
|
|
229
|
+
const overrideIdentifier = overrides.overrideIdentifier || undefined;
|
|
230
|
+
const resourceUri = overrides.resource?.toString();
|
|
232
231
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
233
232
|
const proxy = createPreferenceProxy<{ [key: string]: any }>(preferences, preferenceSchemaService.getJSONSchema(PreferenceScope.Folder), {
|
|
234
233
|
resourceUri, overrideIdentifier, style: 'both'
|
|
@@ -296,15 +295,8 @@ export function createMonacoConfigurationService(container: interfaces.Container
|
|
|
296
295
|
return false;
|
|
297
296
|
}
|
|
298
297
|
for (const change of context.changes) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
if (preferenceName.startsWith(prefix)) {
|
|
302
|
-
if (options?.overrideIdentifier !== undefined) {
|
|
303
|
-
if (overridden && overridden.overrideIdentifier !== options?.overrideIdentifier) {
|
|
304
|
-
continue;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
if (change.affects(options?.resource?.toString())) {
|
|
298
|
+
if (change.preferenceName.startsWith(prefix)) {
|
|
299
|
+
if (change.affects(options?.resource?.toString(), options?.overrideIdentifier || undefined)) {
|
|
308
300
|
return true;
|
|
309
301
|
}
|
|
310
302
|
}
|
|
@@ -317,8 +309,7 @@ export function createMonacoConfigurationService(container: interfaces.Container
|
|
|
317
309
|
preferences.onPreferencesChanged(event => {
|
|
318
310
|
let source: ConfigurationTarget | undefined;
|
|
319
311
|
let context = newFireDidChangeConfigurationContext();
|
|
320
|
-
for (
|
|
321
|
-
const change = event[key];
|
|
312
|
+
for (const change of event) {
|
|
322
313
|
const target = toTarget(change.scope);
|
|
323
314
|
if (source !== undefined && target !== source) {
|
|
324
315
|
fireDidChangeConfiguration(source, context);
|
|
@@ -327,28 +318,23 @@ export function createMonacoConfigurationService(container: interfaces.Container
|
|
|
327
318
|
context.changes.push(change);
|
|
328
319
|
source = target;
|
|
329
320
|
|
|
330
|
-
let
|
|
331
|
-
|
|
332
|
-
const index = key.indexOf('.');
|
|
333
|
-
const override = key.substring(0, index);
|
|
334
|
-
const overrideIdentifier = override.match(OVERRIDE_PROPERTY_PATTERN)?.[1];
|
|
335
|
-
if (overrideIdentifier) {
|
|
336
|
-
context.keys.add(override);
|
|
337
|
-
context.affectedKeys.add(override);
|
|
338
|
-
overrideKeys = context.overrides.get(overrideIdentifier) || new Set<string>();
|
|
339
|
-
context.overrides.set(overrideIdentifier, overrideKeys);
|
|
340
|
-
key = key.substring(index + 1);
|
|
341
|
-
}
|
|
342
|
-
}
|
|
321
|
+
let key = change.preferenceName;
|
|
322
|
+
const overrideKeys = new Set<string>();
|
|
343
323
|
while (key) {
|
|
344
|
-
|
|
345
|
-
overrideKeys.add(key);
|
|
346
|
-
}
|
|
324
|
+
overrideKeys.add(key);
|
|
347
325
|
context.keys.add(key);
|
|
348
326
|
context.affectedKeys.add(key);
|
|
349
327
|
const index = key.lastIndexOf('.');
|
|
350
328
|
key = key.substring(0, index);
|
|
351
329
|
}
|
|
330
|
+
|
|
331
|
+
if (preferenceSchemaService.getSchemaProperty(change.preferenceName)?.overridable) {
|
|
332
|
+
for (const override of change.affectedOverrides) {
|
|
333
|
+
const existingOverrides = context.overrides.get(override) || new Set<string>();
|
|
334
|
+
context.overrides.set(override, existingOverrides);
|
|
335
|
+
overrideKeys.forEach(k => existingOverrides.add(k));
|
|
336
|
+
}
|
|
337
|
+
}
|
|
352
338
|
}
|
|
353
339
|
if (source) {
|
|
354
340
|
fireDidChangeConfiguration(source, context);
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
|
|
17
17
|
import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input';
|
|
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 { StandaloneGotoLineQuickAccessProvider } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess';
|
|
22
|
-
import { IQuickAccessRegistry, Extensions } from '@theia/monaco-editor-core/esm/vs/platform/quickinput/common/quickAccess';
|
|
23
|
-
import { Registry } from '@theia/monaco-editor-core/esm/vs/platform/registry/common/platform';
|
|
24
|
-
import { IStorageService } from '@theia/monaco-editor-core/esm/vs/platform/storage/common/storage';
|
|
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 { StandaloneGotoLineQuickAccessProvider } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js';
|
|
22
|
+
import { IQuickAccessRegistry, Extensions } from '@theia/monaco-editor-core/esm/vs/platform/quickinput/common/quickAccess.js';
|
|
23
|
+
import { Registry } from '@theia/monaco-editor-core/esm/vs/platform/registry/common/platform.js';
|
|
24
|
+
import { IStorageService } from '@theia/monaco-editor-core/esm/vs/platform/storage/common/storage.js';
|
|
25
25
|
|
|
26
26
|
export class GotoLineQuickAccess extends StandaloneGotoLineQuickAccessProvider {
|
|
27
27
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import { QuickAccessContribution } from '@theia/core/lib/browser/quick-input';
|
|
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 { ILanguageFeaturesService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageFeatures';
|
|
22
|
-
import { IOutlineModelService } from '@theia/monaco-editor-core/esm/vs/editor/contrib/documentSymbols/browser/outlineModel';
|
|
23
|
-
import { StandaloneGotoSymbolQuickAccessProvider } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess';
|
|
24
|
-
import { IQuickAccessRegistry, Extensions } from '@theia/monaco-editor-core/esm/vs/platform/quickinput/common/quickAccess';
|
|
25
|
-
import { Registry } from '@theia/monaco-editor-core/esm/vs/platform/registry/common/platform';
|
|
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 { ILanguageFeaturesService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageFeatures.js';
|
|
22
|
+
import { IOutlineModelService } from '@theia/monaco-editor-core/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js';
|
|
23
|
+
import { StandaloneGotoSymbolQuickAccessProvider } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js';
|
|
24
|
+
import { IQuickAccessRegistry, Extensions } from '@theia/monaco-editor-core/esm/vs/platform/quickinput/common/quickAccess.js';
|
|
25
|
+
import { Registry } from '@theia/monaco-editor-core/esm/vs/platform/registry/common/platform.js';
|
|
26
26
|
|
|
27
27
|
export class GotoSymbolQuickAccess extends StandaloneGotoSymbolQuickAccessProvider {
|
|
28
28
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable } from '@theia/core/shared/inversify';
|
|
18
18
|
import { IconRegistry } from '@theia/core/lib/browser/icon-registry';
|
|
19
|
-
import { getIconRegistry } from '@theia/monaco-editor-core/esm/vs/platform/theme/common/iconRegistry';
|
|
19
|
+
import { getIconRegistry } from '@theia/monaco-editor-core/esm/vs/platform/theme/common/iconRegistry.js';
|
|
20
20
|
import { IconDefinition, IconFontDefinition, ThemeIcon } from '@theia/core/lib/common/theme';
|
|
21
21
|
|
|
22
22
|
@injectable()
|
|
@@ -19,7 +19,7 @@ import { Disposable, DisposableCollection } from '@theia/core/lib/common/disposa
|
|
|
19
19
|
import { ThemeService } from '@theia/core/lib/browser/theming';
|
|
20
20
|
import * as monaco from '@theia/monaco-editor-core';
|
|
21
21
|
import { injectable } from '@theia/core/shared/inversify';
|
|
22
|
-
import type { ThemeMix } from './textmate/monaco-theme-types';
|
|
22
|
+
import type { ThemeMix } from './textmate/monaco-theme-types.js';
|
|
23
23
|
import { Theme } from '@theia/core/lib/common/theme';
|
|
24
24
|
import { Emitter, Event, isObject } from '@theia/core';
|
|
25
25
|
|
|
@@ -33,10 +33,10 @@ window.matchMedia = () => ({
|
|
|
33
33
|
|
|
34
34
|
import { expect } from 'chai';
|
|
35
35
|
import { Disposable } from '@theia/core';
|
|
36
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
37
|
-
import { IInstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation';
|
|
38
|
-
import { InstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiationService';
|
|
39
|
-
import { ServiceCollection } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/serviceCollection';
|
|
36
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
37
|
+
import { IInstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation.js';
|
|
38
|
+
import { InstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiationService.js';
|
|
39
|
+
import { ServiceCollection } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
40
40
|
|
|
41
41
|
disableJSDOM();
|
|
42
42
|
|
|
@@ -32,38 +32,38 @@
|
|
|
32
32
|
// packages/monaco/src/browser/monaco-nls.ts.
|
|
33
33
|
|
|
34
34
|
import { Container } from '@theia/core/shared/inversify';
|
|
35
|
-
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService';
|
|
36
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
37
|
-
import { SyncDescriptor } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/descriptors';
|
|
38
|
-
import { IInstantiationService, createDecorator } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation';
|
|
39
|
-
import { InstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiationService';
|
|
40
|
-
import { ServiceCollection } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/serviceCollection';
|
|
41
|
-
import { MonacoEditorServiceFactory, MonacoEditorServiceFactoryType } from './monaco-editor-service';
|
|
42
|
-
import { IConfigurationService } from '@theia/monaco-editor-core/esm/vs/platform/configuration/common/configuration';
|
|
43
|
-
import { ITextModelService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/resolverService';
|
|
44
|
-
import { MonacoConfigurationService } from './monaco-frontend-module';
|
|
45
|
-
import { MonacoTextModelService } from './monaco-text-model-service';
|
|
46
|
-
import { MonacoContextMenuService } from './monaco-context-menu';
|
|
47
|
-
import { IContextMenuService } from '@theia/monaco-editor-core/esm/vs/platform/contextview/browser/contextView';
|
|
48
|
-
import { IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey';
|
|
49
|
-
import { IThemeService } from '@theia/monaco-editor-core/esm/vs/platform/theme/common/themeService';
|
|
50
|
-
import { MonacoBulkEditService } from './monaco-bulk-edit-service';
|
|
51
|
-
import { MonacoCommandService } from './monaco-command-service';
|
|
52
|
-
import { IBulkEditService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/bulkEditService';
|
|
53
|
-
import { ICommandService } from '@theia/monaco-editor-core/esm/vs/platform/commands/common/commands';
|
|
54
|
-
import { MonacoQuickInputImplementation } from './monaco-quick-input-service';
|
|
55
|
-
import { IQuickInputService } from '@theia/monaco-editor-core/esm/vs/platform/quickinput/common/quickInput';
|
|
56
|
-
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme';
|
|
57
|
-
import { MonacoStandaloneThemeService } from './monaco-standalone-theme-service';
|
|
58
|
-
import { createContentHoverWidgetPatcher } from './content-hover-widget-patcher';
|
|
59
|
-
import { IHoverService } from '@theia/monaco-editor-core/esm/vs/platform/hover/browser/hover';
|
|
60
|
-
import { setBaseLayerHoverDelegate } from '@theia/monaco-editor-core/esm/vs/base/browser/ui/hover/hoverDelegate2';
|
|
61
|
-
import { IWorkspaceContextService } from '@theia/monaco-editor-core/esm/vs/platform/workspace/common/workspace';
|
|
62
|
-
import { MonacoWorkspaceContextService } from './monaco-workspace-context-service';
|
|
63
|
-
import { ILayoutService } from '@theia/monaco-editor-core/esm/vs/platform/layout/browser/layoutService';
|
|
64
|
-
import { Event } from '@theia/monaco-editor-core/esm/vs/base/common/event';
|
|
65
|
-
import * as dom from '@theia/monaco-editor-core/esm/vs/base/browser/dom';
|
|
66
|
-
import { mainWindow } from '@theia/monaco-editor-core/esm/vs/base/browser/window';
|
|
35
|
+
import { ICodeEditorService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/codeEditorService.js';
|
|
36
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
37
|
+
import { SyncDescriptor } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/descriptors.js';
|
|
38
|
+
import { IInstantiationService, createDecorator } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation.js';
|
|
39
|
+
import { InstantiationService } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiationService.js';
|
|
40
|
+
import { ServiceCollection } from '@theia/monaco-editor-core/esm/vs/platform/instantiation/common/serviceCollection.js';
|
|
41
|
+
import { MonacoEditorServiceFactory, MonacoEditorServiceFactoryType } from './monaco-editor-service.js';
|
|
42
|
+
import { IConfigurationService } from '@theia/monaco-editor-core/esm/vs/platform/configuration/common/configuration.js';
|
|
43
|
+
import { ITextModelService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/resolverService.js';
|
|
44
|
+
import { MonacoConfigurationService } from './monaco-frontend-module.js';
|
|
45
|
+
import { MonacoTextModelService } from './monaco-text-model-service.js';
|
|
46
|
+
import { MonacoContextMenuService } from './monaco-context-menu.js';
|
|
47
|
+
import { IContextMenuService } from '@theia/monaco-editor-core/esm/vs/platform/contextview/browser/contextView.js';
|
|
48
|
+
import { IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey.js';
|
|
49
|
+
import { IThemeService } from '@theia/monaco-editor-core/esm/vs/platform/theme/common/themeService.js';
|
|
50
|
+
import { MonacoBulkEditService } from './monaco-bulk-edit-service.js';
|
|
51
|
+
import { MonacoCommandService } from './monaco-command-service.js';
|
|
52
|
+
import { IBulkEditService } from '@theia/monaco-editor-core/esm/vs/editor/browser/services/bulkEditService.js';
|
|
53
|
+
import { ICommandService } from '@theia/monaco-editor-core/esm/vs/platform/commands/common/commands.js';
|
|
54
|
+
import { MonacoQuickInputImplementation } from './monaco-quick-input-service.js';
|
|
55
|
+
import { IQuickInputService } from '@theia/monaco-editor-core/esm/vs/platform/quickinput/common/quickInput.js';
|
|
56
|
+
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme.js';
|
|
57
|
+
import { MonacoStandaloneThemeService } from './monaco-standalone-theme-service.js';
|
|
58
|
+
import { createContentHoverWidgetPatcher } from './content-hover-widget-patcher.js';
|
|
59
|
+
import { IHoverService } from '@theia/monaco-editor-core/esm/vs/platform/hover/browser/hover.js';
|
|
60
|
+
import { setBaseLayerHoverDelegate } from '@theia/monaco-editor-core/esm/vs/base/browser/ui/hover/hoverDelegate2.js';
|
|
61
|
+
import { IWorkspaceContextService } from '@theia/monaco-editor-core/esm/vs/platform/workspace/common/workspace.js';
|
|
62
|
+
import { MonacoWorkspaceContextService } from './monaco-workspace-context-service.js';
|
|
63
|
+
import { ILayoutService } from '@theia/monaco-editor-core/esm/vs/platform/layout/browser/layoutService.js';
|
|
64
|
+
import { Event } from '@theia/monaco-editor-core/esm/vs/base/common/event.js';
|
|
65
|
+
import * as dom from '@theia/monaco-editor-core/esm/vs/base/browser/dom.js';
|
|
66
|
+
import { mainWindow } from '@theia/monaco-editor-core/esm/vs/base/browser/window.js';
|
|
67
67
|
import { Disposable } from '@theia/core';
|
|
68
68
|
|
|
69
69
|
export const contentHoverWidgetPatcher = createContentHoverWidgetPatcher();
|
|
@@ -13,15 +13,14 @@ let disableJSDOM = enableJSDOM();
|
|
|
13
13
|
|
|
14
14
|
import { expect } from 'chai';
|
|
15
15
|
import { Key, KeybindingRegistry, KeyCode } from '@theia/core/lib/browser';
|
|
16
|
-
import * as os from '@theia/core/lib/common/os';
|
|
17
16
|
import * as monaco from '@theia/monaco-editor-core';
|
|
18
|
-
import * as MonacoPlatform from '@theia/monaco-editor-core/esm/vs/base/common/platform';
|
|
19
|
-
import { KeyCode as MonacoKeyCode } from '@theia/monaco-editor-core/esm/vs/base/common/keyCodes';
|
|
20
|
-
import { KeyCodeChord } from '@theia/monaco-editor-core/esm/vs/base/common/keybindings';
|
|
21
|
-
import { USLayoutResolvedKeybinding } from '@theia/monaco-editor-core/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding';
|
|
22
|
-
import
|
|
23
|
-
import { MonacoKeybindingContribution } from './monaco-keybinding';
|
|
24
|
-
import { MonacoResolvedKeybinding } from './monaco-resolved-keybinding';
|
|
17
|
+
import * as MonacoPlatform from '@theia/monaco-editor-core/esm/vs/base/common/platform.js';
|
|
18
|
+
import { KeyCode as MonacoKeyCode } from '@theia/monaco-editor-core/esm/vs/base/common/keyCodes.js';
|
|
19
|
+
import { KeyCodeChord } from '@theia/monaco-editor-core/esm/vs/base/common/keybindings.js';
|
|
20
|
+
import { USLayoutResolvedKeybinding } from '@theia/monaco-editor-core/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js';
|
|
21
|
+
import { OSStub, stubOS } from '@theia/core/lib/common/test/stub-os';
|
|
22
|
+
import { MonacoKeybindingContribution } from './monaco-keybinding.js';
|
|
23
|
+
import { MonacoResolvedKeybinding } from './monaco-resolved-keybinding.js';
|
|
25
24
|
|
|
26
25
|
class TestMonacoKeybindingContribution extends MonacoKeybindingContribution {
|
|
27
26
|
encode(code: KeyCode): number {
|
|
@@ -43,10 +42,15 @@ describe('Monaco keybinding adapter', () => {
|
|
|
43
42
|
|
|
44
43
|
beforeEach(() => contribution = new TestMonacoKeybindingContribution());
|
|
45
44
|
|
|
46
|
-
|
|
45
|
+
let platform: OSStub | undefined;
|
|
46
|
+
|
|
47
|
+
afterEach(() => {
|
|
48
|
+
platform?.restore();
|
|
49
|
+
platform = undefined;
|
|
50
|
+
});
|
|
47
51
|
|
|
48
52
|
it('encodes non-macOS Ctrl as Monaco CtrlCmd', () => {
|
|
49
|
-
|
|
53
|
+
platform = stubOS('isOSX', false);
|
|
50
54
|
|
|
51
55
|
const encoded = contribution.encode(new KeyCode({ key: Key.KEY_A, ctrl: true }));
|
|
52
56
|
|
|
@@ -55,7 +59,7 @@ describe('Monaco keybinding adapter', () => {
|
|
|
55
59
|
});
|
|
56
60
|
|
|
57
61
|
it('preserves macOS Ctrl and Command encoding', () => {
|
|
58
|
-
|
|
62
|
+
platform = stubOS('isOSX', true);
|
|
59
63
|
|
|
60
64
|
const encoded = contribution.encode(new KeyCode({ key: Key.KEY_A, ctrl: true, meta: true }));
|
|
61
65
|
|
|
@@ -18,15 +18,15 @@ import { injectable, inject, postConstruct, named } from '@theia/core/shared/inv
|
|
|
18
18
|
import {
|
|
19
19
|
KeybindingContribution, KeybindingRegistry, KeybindingScope, KeyCode, layoutModifiersIncludeAltGraph, layoutModifiersIncludeShift
|
|
20
20
|
} from '@theia/core/lib/browser';
|
|
21
|
-
import { MonacoCommands } from './monaco-command';
|
|
22
|
-
import { MonacoCommandRegistry } from './monaco-command-registry';
|
|
21
|
+
import { MonacoCommands } from './monaco-command.js';
|
|
22
|
+
import { MonacoCommandRegistry } from './monaco-command-registry.js';
|
|
23
23
|
import { CommandRegistry, DisposableCollection, environment, isOSX, ILogger } from '@theia/core';
|
|
24
|
-
import { MonacoResolvedKeybinding } from './monaco-resolved-keybinding';
|
|
25
|
-
import { KeybindingsRegistry } from '@theia/monaco-editor-core/esm/vs/platform/keybinding/common/keybindingsRegistry';
|
|
26
|
-
import { StandaloneKeybindingService, StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
27
|
-
import { IKeybindingService } from '@theia/monaco-editor-core/esm/vs/platform/keybinding/common/keybinding';
|
|
28
|
-
import { MonacoContextKeyService } from './monaco-context-key-service';
|
|
29
|
-
import { KEY_CODE_MAP } from './monaco-keycode-map';
|
|
24
|
+
import { MonacoResolvedKeybinding } from './monaco-resolved-keybinding.js';
|
|
25
|
+
import { KeybindingsRegistry } from '@theia/monaco-editor-core/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
26
|
+
import { StandaloneKeybindingService, StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
27
|
+
import { IKeybindingService } from '@theia/monaco-editor-core/esm/vs/platform/keybinding/common/keybinding.js';
|
|
28
|
+
import { MonacoContextKeyService } from './monaco-context-key-service.js';
|
|
29
|
+
import { KEY_CODE_MAP } from './monaco-keycode-map.js';
|
|
30
30
|
import * as monaco from '@theia/monaco-editor-core';
|
|
31
31
|
|
|
32
32
|
@injectable()
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
|
|
21
21
|
import * as browser from '@theia/core/lib/browser';
|
|
22
22
|
// This is exported as part of the public API, but we use it with private API's so we need to refer to the private version.
|
|
23
|
-
import { KeyCode } from '@theia/monaco-editor-core/esm/vs/base/common/keyCodes';
|
|
24
|
-
import * as MonacoPlatform from '@theia/monaco-editor-core/esm/vs/base/common/platform';
|
|
23
|
+
import { KeyCode } from '@theia/monaco-editor-core/esm/vs/base/common/keyCodes.js';
|
|
24
|
+
import * as MonacoPlatform from '@theia/monaco-editor-core/esm/vs/base/common/platform.js';
|
|
25
25
|
|
|
26
26
|
export const KEY_CODE_MAP: KeyCode[] = [];
|
|
27
27
|
(function (): void {
|
|
@@ -22,13 +22,13 @@ import { MaybePromise, Mutable } from '@theia/core/lib/common/types';
|
|
|
22
22
|
import { Disposable } from '@theia/core/lib/common/disposable';
|
|
23
23
|
import { CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
24
24
|
import { Language, LanguageService } from '@theia/core/lib/browser/language-service';
|
|
25
|
-
import { MonacoMarkerCollection } from './monaco-marker-collection';
|
|
26
|
-
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter';
|
|
25
|
+
import { MonacoMarkerCollection } from './monaco-marker-collection.js';
|
|
26
|
+
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter.js';
|
|
27
27
|
import * as monaco from '@theia/monaco-editor-core';
|
|
28
28
|
import { FileStat } from '@theia/filesystem/lib/common/files';
|
|
29
29
|
import { FileStatNode } from '@theia/filesystem/lib/browser';
|
|
30
|
-
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language';
|
|
31
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
30
|
+
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language.js';
|
|
31
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
32
32
|
|
|
33
33
|
export interface WorkspaceSymbolProvider {
|
|
34
34
|
provideWorkspaceSymbols(params: WorkspaceSymbolParams, token: CancellationToken): MaybePromise<SymbolInformation[] | undefined>;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Diagnostic } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
18
|
-
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter';
|
|
18
|
+
import { ProtocolToMonacoConverter } from './protocol-to-monaco-converter.js';
|
|
19
19
|
import * as monaco from '@theia/monaco-editor-core';
|
|
20
20
|
import { Marker } from '@theia/markers/lib/common/marker';
|
|
21
21
|
import URI from '@theia/core/lib/common/uri';
|
|
@@ -18,9 +18,9 @@ import { MAIN_MENU_BAR, MenuAction, MenuContribution, MenuModelRegistry, MenuPat
|
|
|
18
18
|
import { nls } from '@theia/core/lib/common/nls';
|
|
19
19
|
import { inject, injectable } from '@theia/core/shared/inversify';
|
|
20
20
|
import { EDITOR_CONTEXT_MENU, EditorMainMenu } from '@theia/editor/lib/browser';
|
|
21
|
-
import { IMenuItem, MenuId, MenuRegistry, isIMenuItem } from '@theia/monaco-editor-core/esm/vs/platform/actions/common/actions';
|
|
22
|
-
import { MonacoCommands } from './monaco-command';
|
|
23
|
-
import { MonacoCommandRegistry } from './monaco-command-registry';
|
|
21
|
+
import { IMenuItem, MenuId, MenuRegistry, isIMenuItem } from '@theia/monaco-editor-core/esm/vs/platform/actions/common/actions.js';
|
|
22
|
+
import { MonacoCommands } from './monaco-command.js';
|
|
23
|
+
import { MonacoCommandRegistry } from './monaco-command-registry.js';
|
|
24
24
|
|
|
25
25
|
export interface MonacoActionGroup {
|
|
26
26
|
id: string;
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
-
import debounce
|
|
17
|
+
import debounce from '@theia/core/shared/lodash.debounce';
|
|
18
18
|
import { injectable } from '@theia/core/shared/inversify';
|
|
19
19
|
import { MimeAssociation, MimeService } from '@theia/core/lib/browser/mime-service';
|
|
20
|
-
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices';
|
|
21
|
-
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language';
|
|
20
|
+
import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
21
|
+
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language.js';
|
|
22
22
|
import * as monaco from '@theia/monaco-editor-core';
|
|
23
|
-
import { clearConfiguredLanguageAssociations, registerConfiguredLanguageAssociation } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languagesAssociations';
|
|
24
|
-
import { LanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageService';
|
|
23
|
+
import { clearConfiguredLanguageAssociations, registerConfiguredLanguageAssociation } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languagesAssociations.js';
|
|
24
|
+
import { LanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/languageService.js';
|
|
25
25
|
|
|
26
26
|
@injectable()
|
|
27
27
|
export class MonacoMimeService extends MimeService {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
// Re-export the message store — imported via a path that is NOT aliased.
|
|
28
|
-
export { getNLSLanguage, getNLSMessages } from '@theia/monaco-editor-core/esm/vs/nls.messages';
|
|
28
|
+
export { getNLSLanguage, getNLSMessages } from '@theia/monaco-editor-core/esm/vs/nls.messages.js';
|
|
29
29
|
|
|
30
30
|
import { nls } from '@theia/core/lib/common/nls';
|
|
31
31
|
import { FormatType, Localization } from '@theia/core/lib/common/i18n/localization';
|