@theia/monaco 1.65.0-next.19 → 1.65.0-next.39
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/markdown-renderer/monaco-markdown-renderer.d.ts +2 -2
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.d.ts.map +1 -1
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.js +1 -1
- package/lib/browser/markdown-renderer/monaco-markdown-renderer.js.map +1 -1
- package/lib/browser/monaco-code-action-service.d.ts +1 -1
- package/lib/browser/monaco-code-action-service.d.ts.map +1 -1
- package/lib/browser/monaco-code-action-service.js +2 -2
- package/lib/browser/monaco-code-action-service.js.map +1 -1
- package/lib/browser/monaco-editor-model.d.ts +2 -1
- package/lib/browser/monaco-editor-model.d.ts.map +1 -1
- package/lib/browser/monaco-editor-model.js +1 -1
- package/lib/browser/monaco-editor-model.js.map +1 -1
- package/lib/browser/monaco-editor-provider.d.ts +3 -2
- package/lib/browser/monaco-editor-provider.d.ts.map +1 -1
- package/lib/browser/monaco-editor-provider.js +9 -9
- package/lib/browser/monaco-editor-provider.js.map +1 -1
- package/lib/browser/monaco-editor-service.d.ts +2 -2
- package/lib/browser/monaco-editor-service.d.ts.map +1 -1
- package/lib/browser/monaco-editor-service.js +1 -1
- package/lib/browser/monaco-editor-service.js.map +1 -1
- package/lib/browser/monaco-formatting-conflicts.d.ts +2 -1
- package/lib/browser/monaco-formatting-conflicts.d.ts.map +1 -1
- package/lib/browser/monaco-formatting-conflicts.js +7 -7
- package/lib/browser/monaco-formatting-conflicts.js.map +1 -1
- package/lib/browser/monaco-frontend-application-contribution.d.ts +3 -2
- package/lib/browser/monaco-frontend-application-contribution.d.ts.map +1 -1
- package/lib/browser/monaco-frontend-application-contribution.js +3 -3
- package/lib/browser/monaco-frontend-application-contribution.js.map +1 -1
- package/lib/browser/monaco-frontend-module.js +8 -8
- package/lib/browser/monaco-frontend-module.js.map +1 -1
- package/lib/browser/monaco-text-model-service.d.ts +1 -1
- package/lib/browser/monaco-text-model-service.d.ts.map +1 -1
- package/lib/browser/monaco-text-model-service.js +2 -2
- package/lib/browser/monaco-text-model-service.js.map +1 -1
- package/lib/browser/monaco-workspace.d.ts +3 -2
- package/lib/browser/monaco-workspace.d.ts.map +1 -1
- package/lib/browser/monaco-workspace.js +20 -19
- package/lib/browser/monaco-workspace.js.map +1 -1
- package/lib/browser/textmate/monaco-textmate-service.d.ts +1 -1
- package/lib/browser/textmate/monaco-textmate-service.d.ts.map +1 -1
- package/lib/browser/textmate/monaco-textmate-service.js +1 -1
- package/lib/browser/textmate/monaco-textmate-service.js.map +1 -1
- package/package.json +8 -8
- package/src/browser/markdown-renderer/monaco-markdown-renderer.ts +2 -2
- package/src/browser/monaco-code-action-service.ts +1 -1
- package/src/browser/monaco-editor-model.ts +3 -2
- package/src/browser/monaco-editor-provider.ts +3 -2
- package/src/browser/monaco-editor-service.ts +2 -2
- package/src/browser/monaco-formatting-conflicts.ts +2 -1
- package/src/browser/monaco-frontend-application-contribution.ts +5 -5
- package/src/browser/monaco-frontend-module.ts +8 -8
- package/src/browser/monaco-text-model-service.ts +1 -1
- package/src/browser/monaco-workspace.ts +3 -2
- package/src/browser/textmate/monaco-textmate-service.ts +1 -1
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { Position, Range, TextDocumentSaveReason } from '@theia/core/shared/vscode-languageserver-protocol';
|
|
18
|
-
import { TextEditorDocument, EncodingMode, FindMatchesOptions, FindMatch
|
|
18
|
+
import { TextEditorDocument, EncodingMode, FindMatchesOptions, FindMatch } from '@theia/editor/lib/browser';
|
|
19
19
|
import { DisposableCollection, Disposable } from '@theia/core/lib/common/disposable';
|
|
20
20
|
import { Emitter, Event } from '@theia/core/lib/common/event';
|
|
21
21
|
import { CancellationTokenSource, CancellationToken } from '@theia/core/lib/common/cancellation';
|
|
@@ -31,10 +31,11 @@ import { StandaloneServices } from '@theia/monaco-editor-core/esm/vs/editor/stan
|
|
|
31
31
|
import { ILanguageService } from '@theia/monaco-editor-core/esm/vs/editor/common/languages/language';
|
|
32
32
|
import { IModelService } from '@theia/monaco-editor-core/esm/vs/editor/common/services/model';
|
|
33
33
|
import { createTextBufferFactoryFromStream } from '@theia/monaco-editor-core/esm/vs/editor/common/model/textModel';
|
|
34
|
-
import { editorGeneratedPreferenceProperties } from '@theia/editor/lib/
|
|
34
|
+
import { editorGeneratedPreferenceProperties } from '@theia/editor/lib/common/editor-generated-preference-schema';
|
|
35
35
|
import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
36
36
|
import { BinaryBuffer } from '@theia/core/lib/common/buffer';
|
|
37
37
|
import { Listener, ListenerList } from '@theia/core';
|
|
38
|
+
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
38
39
|
|
|
39
40
|
export {
|
|
40
41
|
TextDocumentSaveReason
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
18
18
|
import URI from '@theia/core/lib/common/uri';
|
|
19
|
-
import {
|
|
19
|
+
import { TextEditor, DiffNavigator } from '@theia/editor/lib/browser';
|
|
20
20
|
import { DiffUris } from '@theia/core/lib/browser/diff-uris';
|
|
21
21
|
import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
|
22
22
|
import { DisposableCollection, deepClone, Disposable, CancellationToken } from '@theia/core/lib/common';
|
|
@@ -44,8 +44,9 @@ import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
|
|
|
44
44
|
import { SimpleMonacoEditor } from './simple-monaco-editor';
|
|
45
45
|
import { ICodeEditorWidgetOptions } from '@theia/monaco-editor-core/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget';
|
|
46
46
|
import { timeoutReject } from '@theia/core/lib/common/promise-util';
|
|
47
|
-
import { FileSystemPreferences } from '@theia/filesystem/lib/
|
|
47
|
+
import { FileSystemPreferences } from '@theia/filesystem/lib/common';
|
|
48
48
|
import { insertFinalNewline } from './monaco-utilities';
|
|
49
|
+
import { EditorPreferenceChange, EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
49
50
|
|
|
50
51
|
export const MonacoEditorFactory = Symbol('MonacoEditorFactory');
|
|
51
52
|
export interface MonacoEditorFactory {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { injectable, inject, decorate, named } from '@theia/core/shared/inversify';
|
|
18
18
|
import URI from '@theia/core/lib/common/uri';
|
|
19
|
-
import { OpenerService, open, WidgetOpenMode, ApplicationShell
|
|
19
|
+
import { OpenerService, open, WidgetOpenMode, ApplicationShell } from '@theia/core/lib/browser';
|
|
20
20
|
import { EditorWidget, EditorOpenerOptions, EditorManager, CustomEditorWidget } from '@theia/editor/lib/browser';
|
|
21
21
|
import { MonacoEditor } from './monaco-editor';
|
|
22
22
|
import { MonacoToProtocolConverter } from './monaco-to-protocol-converter';
|
|
@@ -27,7 +27,7 @@ import { StandaloneCodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/st
|
|
|
27
27
|
import { ICodeEditor } from '@theia/monaco-editor-core/esm/vs/editor/browser/editorBrowser';
|
|
28
28
|
import { IContextKeyService } from '@theia/monaco-editor-core/esm/vs/platform/contextkey/common/contextkey';
|
|
29
29
|
import { IThemeService } from '@theia/monaco-editor-core/esm/vs/platform/theme/common/themeService';
|
|
30
|
-
import { ContributionProvider } from '@theia/core';
|
|
30
|
+
import { ContributionProvider, PreferenceService } from '@theia/core';
|
|
31
31
|
|
|
32
32
|
decorate(injectable(), StandaloneCodeEditorService);
|
|
33
33
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable, inject } from '@theia/core/shared/inversify';
|
|
18
|
-
import {
|
|
18
|
+
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
19
19
|
import { EditorManager } from '@theia/editor/lib/browser';
|
|
20
20
|
import { MonacoQuickInputService } from './monaco-quick-input-service';
|
|
21
21
|
import * as monaco from '@theia/monaco-editor-core';
|
|
@@ -23,6 +23,7 @@ import { FormattingConflicts, FormattingMode } from '@theia/monaco-editor-core/e
|
|
|
23
23
|
import { DocumentFormattingEditProvider, DocumentRangeFormattingEditProvider } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
24
24
|
import { ITextModel } from '@theia/monaco-editor-core/esm/vs/editor/common/model';
|
|
25
25
|
import { nls } from '@theia/core/lib/common/nls';
|
|
26
|
+
import { PreferenceService, PreferenceLanguageOverrideService } from '@theia/core';
|
|
26
27
|
|
|
27
28
|
type FormattingEditProvider = DocumentFormattingEditProvider | DocumentRangeFormattingEditProvider;
|
|
28
29
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
|
|
18
|
-
import { ColorTheme, CssStyleCollector, FrontendApplicationContribution,
|
|
18
|
+
import { ColorTheme, CssStyleCollector, FrontendApplicationContribution, QuickAccessRegistry, StylingParticipant } from '@theia/core/lib/browser';
|
|
19
19
|
import { MonacoSnippetSuggestProvider } from './monaco-snippet-suggest-provider';
|
|
20
20
|
import * as monaco from '@theia/monaco-editor-core';
|
|
21
21
|
import { setSnippetSuggestSupport } from '@theia/monaco-editor-core/esm/vs/editor/contrib/suggest/browser/suggest';
|
|
@@ -24,8 +24,8 @@ import { MonacoTextModelService } from './monaco-text-model-service';
|
|
|
24
24
|
import { MonacoThemingService } from './monaco-theming-service';
|
|
25
25
|
import { isHighContrast } from '@theia/core/lib/common/theme';
|
|
26
26
|
import { editorOptionsRegistry, IEditorOption } from '@theia/monaco-editor-core/esm/vs/editor/common/config/editorOptions';
|
|
27
|
-
import { MAX_SAFE_INTEGER } from '@theia/core';
|
|
28
|
-
import { editorGeneratedPreferenceProperties } from '@theia/editor/lib/
|
|
27
|
+
import { MAX_SAFE_INTEGER, PreferenceSchemaService } from '@theia/core';
|
|
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
30
|
import { SecondaryWindowHandler } from '@theia/core/lib/browser/secondary-window-handler';
|
|
31
31
|
import { EditorWidget } from '@theia/editor/lib/browser';
|
|
@@ -51,8 +51,8 @@ export class MonacoFrontendApplicationContribution implements FrontendApplicatio
|
|
|
51
51
|
@inject(MonacoSnippetSuggestProvider)
|
|
52
52
|
protected readonly snippetSuggestProvider: MonacoSnippetSuggestProvider;
|
|
53
53
|
|
|
54
|
-
@inject(
|
|
55
|
-
protected readonly preferenceSchema:
|
|
54
|
+
@inject(PreferenceSchemaService)
|
|
55
|
+
protected readonly preferenceSchema: PreferenceSchemaService;
|
|
56
56
|
|
|
57
57
|
@inject(QuickAccessRegistry)
|
|
58
58
|
protected readonly quickAccessRegistry: QuickAccessRegistry;
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
|
|
17
17
|
import '../../src/browser/style/index.css';
|
|
18
18
|
import { ContainerModule, interfaces } from '@theia/core/shared/inversify';
|
|
19
|
-
import { MenuContribution, CommandContribution, quickInputServicePath } from '@theia/core/lib/common';
|
|
20
19
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
MenuContribution, CommandContribution, quickInputServicePath, createPreferenceProxy,
|
|
21
|
+
OVERRIDE_PROPERTY_PATTERN, PreferenceChange, PreferenceScope, PreferenceService,
|
|
22
|
+
PreferenceSchemaService
|
|
23
|
+
} from '@theia/core/lib/common';
|
|
24
|
+
import {
|
|
25
|
+
FrontendApplicationContribution, KeybindingContribution, QuickInputService, StylingParticipant, WebSocketConnectionProvider, UndoRedoHandler, WidgetStatusBarContribution
|
|
26
26
|
} from '@theia/core/lib/browser';
|
|
27
27
|
import { TextEditorProvider, DiffNavigatorProvider, TextEditor } from '@theia/editor/lib/browser';
|
|
28
28
|
import { MonacoEditorProvider, MonacoEditorFactory, SaveParticipant } from './monaco-editor-provider';
|
|
@@ -214,7 +214,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
|
214
214
|
export const MonacoConfigurationService = Symbol('MonacoConfigurationService');
|
|
215
215
|
export function createMonacoConfigurationService(container: interfaces.Container): IConfigurationService {
|
|
216
216
|
const preferences = container.get<PreferenceService>(PreferenceService);
|
|
217
|
-
const
|
|
217
|
+
const preferenceSchemaService = container.get<PreferenceSchemaService>(PreferenceSchemaService);
|
|
218
218
|
const service = new StandaloneConfigurationService(StandaloneServices.get(ILogService));
|
|
219
219
|
const _configuration: Configuration = service['_configuration'];
|
|
220
220
|
|
|
@@ -224,7 +224,7 @@ export function createMonacoConfigurationService(container: interfaces.Container
|
|
|
224
224
|
: undefined;
|
|
225
225
|
const resourceUri: string | undefined = (overrides && 'resource' in overrides && !!overrides['resource']) ? overrides['resource'].toString() : undefined;
|
|
226
226
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
227
|
-
const proxy = createPreferenceProxy<{ [key: string]: any }>(preferences,
|
|
227
|
+
const proxy = createPreferenceProxy<{ [key: string]: any }>(preferences, preferenceSchemaService.getJSONSchema(PreferenceScope.Folder), {
|
|
228
228
|
resourceUri, overrideIdentifier, style: 'both'
|
|
229
229
|
});
|
|
230
230
|
if (section) {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
|
|
18
18
|
import URI from '@theia/core/lib/common/uri';
|
|
19
19
|
import { ResourceProvider, ReferenceCollection, Event, MaybePromise, Resource, ContributionProvider, OS, Emitter } from '@theia/core';
|
|
20
|
-
import { EditorPreferences, EditorPreferenceChange } from '@theia/editor/lib/
|
|
20
|
+
import { EditorPreferences, EditorPreferenceChange } from '@theia/editor/lib/common/editor-preferences';
|
|
21
21
|
import { MonacoEditorModel } from './monaco-editor-model';
|
|
22
22
|
import { IDisposable, IReference } from '@theia/monaco-editor-core/esm/vs/base/common/lifecycle';
|
|
23
23
|
import { MonacoToProtocolConverter } from './monaco-to-protocol-converter';
|
|
@@ -20,8 +20,8 @@ import { URI as Uri } from '@theia/core/shared/vscode-uri';
|
|
|
20
20
|
import { injectable, inject, postConstruct } from '@theia/core/shared/inversify';
|
|
21
21
|
import URI from '@theia/core/lib/common/uri';
|
|
22
22
|
import { Emitter } from '@theia/core/lib/common/event';
|
|
23
|
-
import { FileSystemPreferences } from '@theia/filesystem/lib/
|
|
24
|
-
import { EditorManager
|
|
23
|
+
import { FileSystemPreferences } from '@theia/filesystem/lib/common';
|
|
24
|
+
import { EditorManager } from '@theia/editor/lib/browser';
|
|
25
25
|
import { MonacoTextModelService } from './monaco-text-model-service';
|
|
26
26
|
import { MonacoEditorModel, MonacoModelContentChangedEvent } from './monaco-editor-model';
|
|
27
27
|
import { MonacoEditor } from './monaco-editor';
|
|
@@ -43,6 +43,7 @@ import { TextEdit } from '@theia/monaco-editor-core/esm/vs/editor/common/languag
|
|
|
43
43
|
import { SnippetController2 } from '@theia/monaco-editor-core/esm/vs/editor/contrib/snippet/browser/snippetController2';
|
|
44
44
|
import { isObject, MaybePromise, nls } from '@theia/core/lib/common';
|
|
45
45
|
import { SaveableService } from '@theia/core/lib/browser';
|
|
46
|
+
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
46
47
|
|
|
47
48
|
export namespace WorkspaceFileEdit {
|
|
48
49
|
export function is(arg: Edit): arg is monaco.languages.IWorkspaceFileEdit {
|
|
@@ -23,7 +23,7 @@ import { LanguageGrammarDefinitionContribution, getEncodedLanguageId } from './t
|
|
|
23
23
|
import { createTextmateTokenizer, TokenizerOption } from './textmate-tokenizer';
|
|
24
24
|
import { TextmateRegistry } from './textmate-registry';
|
|
25
25
|
import { MonacoThemeRegistry } from './monaco-theme-registry';
|
|
26
|
-
import { EditorPreferences } from '@theia/editor/lib/
|
|
26
|
+
import { EditorPreferences } from '@theia/editor/lib/common/editor-preferences';
|
|
27
27
|
import * as monaco from '@theia/monaco-editor-core';
|
|
28
28
|
import { TokenizationRegistry } from '@theia/monaco-editor-core/esm/vs/editor/common/languages';
|
|
29
29
|
import { IStandaloneThemeService } from '@theia/monaco-editor-core/esm/vs/editor/standalone/common/standaloneTheme';
|