UNPKG

@theia/monaco

Version:
31 lines 2.25 kB
import { ColorTheme, CssStyleCollector, FrontendApplicationContribution, PreferenceSchemaProvider, QuickAccessRegistry, StylingParticipant } from '@theia/core/lib/browser'; import { MonacoSnippetSuggestProvider } from './monaco-snippet-suggest-provider'; import * as monaco from '@theia/monaco-editor-core'; import { MonacoTextModelService } from './monaco-text-model-service'; import { MonacoThemingService } from './monaco-theming-service'; import { WorkspaceFileService } from '@theia/workspace/lib/common/workspace-file-service'; import { SecondaryWindowHandler } from '@theia/core/lib/browser/secondary-window-handler'; import { SecondaryWindowService } from '@theia/core/lib/browser/window/secondary-window-service'; export declare class MonacoFrontendApplicationContribution implements FrontendApplicationContribution, StylingParticipant { protected readonly windowsById: Map<number, monaco.IDisposable>; protected nextWindowId: number; protected readonly textModelService: MonacoTextModelService; protected readonly snippetSuggestProvider: MonacoSnippetSuggestProvider; protected readonly preferenceSchema: PreferenceSchemaProvider; protected readonly quickAccessRegistry: QuickAccessRegistry; protected readonly monacoThemingService: MonacoThemingService; protected readonly workspaceFileService: WorkspaceFileService; protected readonly secondaryWindowHandler: SecondaryWindowHandler; protected readonly secondaryWindowService: SecondaryWindowService; protected init(): void; initialize(): void; onStart(): void; registerThemeStyle(theme: ColorTheme, collector: CssStyleCollector): void; /** * For reasons that are unclear, while most preferences that apply in editors are validated, a few are not. * There is a utility in `examples/api-samples/src/browser/monaco-editor-preferences/monaco-editor-preference-extractor.ts` to help determine which are not. * Check `src/vs/editor/common/config/editorOptions.ts` for constructor arguments and to make sure that the preference names used to extract constructors are still accurate. */ protected addAdditionalPreferenceValidations(): void; } //# sourceMappingURL=monaco-frontend-application-contribution.d.ts.map