@codingame/monaco-editor-wrapper
Advanced tools
Comparing version 1.0.4 to 1.0.5
import * as monaco from 'monaco-editor'; | ||
import { createEditor, registerTextModelContentProvider } from './monaco'; | ||
import { createEditor, registerEditorOpenHandler, registerTextModelContentProvider } from './monaco'; | ||
import { addVSCodeTheme } from './theme'; | ||
@@ -10,3 +10,3 @@ import { updateUserConfiguration, registerDefaultConfigurations, onConfigurationChanged, getConfiguration } from './configuration'; | ||
export * from './tools'; | ||
export { monaco, createEditor, addVSCodeTheme, getThemeData, registerDefaultConfigurations, updateUserConfiguration, getConfiguration, onConfigurationChanged, updateEditorKeybindings, getMonacoLanguage, registerTextModelContentProvider }; | ||
export { monaco, createEditor, addVSCodeTheme, getThemeData, registerDefaultConfigurations, updateUserConfiguration, getConfiguration, onConfigurationChanged, updateEditorKeybindings, getMonacoLanguage, registerTextModelContentProvider, registerEditorOpenHandler }; | ||
export type { IVSCodeTheme }; |
@@ -5,5 +5,7 @@ import * as monaco from 'monaco-editor'; | ||
import './theme'; | ||
import { EditorOpenHandler } from './services/MultiEditorStandaloneCodeEditorService'; | ||
import './worker'; | ||
declare function createEditor(domElement: HTMLElement, options?: monaco.editor.IStandaloneEditorConstructionOptions, override?: monaco.editor.IEditorOverrideServices): monaco.editor.IStandaloneCodeEditor; | ||
declare function registerTextModelContentProvider(scheme: string, provider: monaco.extra.ITextModelContentProvider): monaco.IDisposable; | ||
export { createEditor, registerTextModelContentProvider }; | ||
declare function registerEditorOpenHandler(handler: EditorOpenHandler): monaco.IDisposable; | ||
export { createEditor, registerTextModelContentProvider, registerEditorOpenHandler }; |
import * as monaco from 'monaco-editor'; | ||
import EditorModelResolverService from './EditorModelResolverService'; | ||
export declare type EditorOpenHandler = (model: monaco.editor.ITextModel, input: monaco.extra.IResourceEditorInput, editor: monaco.editor.ICodeEditor, sideBySide?: boolean) => Promise<monaco.editor.ICodeEditor | null>; | ||
export default class MultiEditorStandaloneCodeEditorServiceImpl extends monaco.extra.StandaloneCodeEditorServiceImpl { | ||
private modelResolverService; | ||
constructor(styleSheet: monaco.extra.GlobalStyleSheet | null, contextKeyService: monaco.extra.IContextKeyService, themeService: monaco.editor.IThemeService, modelResolverService: EditorModelResolverService); | ||
openCodeEditor(input: monaco.extra.IResourceEditorInput, editor: monaco.editor.ICodeEditor): Promise<monaco.editor.ICodeEditor | null>; | ||
private handlers; | ||
registerEditorOpenHandler(handler: EditorOpenHandler): monaco.IDisposable; | ||
openCodeEditor(input: monaco.extra.IResourceEditorInput, editor: monaco.editor.ICodeEditor, sideBySide?: boolean): Promise<monaco.editor.ICodeEditor | null>; | ||
} |
{ | ||
"name": "@codingame/monaco-editor-wrapper", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Enhanced Monaco editor with TextMate grammars and more", |
@@ -18,3 +18,3 @@ # @codingame/monaco-editor-wrapper · [![monthly downloads](https://img.shields.io/npm/dm/@codingame/monaco-editor-wrapper)](https://www.npmjs.com/package/@codingame/monaco-editor-wrapper) [![npm version](https://img.shields.io/npm/v/@codingame/monaco-editor-wrapper.svg?style=flat)](https://www.npmjs.com/package/@codingame/monaco-editor-wrapper) [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/codingame/monaco-editor-wrapper/pulls) | ||
- `editor.foldAllAutofoldRegions` action | ||
- A way to register a text model content provider | ||
- A way to register a text model content provider and a editor open handler | ||
- It allows the opening of an overlay editor when navigating to an external file | ||
@@ -21,0 +21,0 @@ - It adds some language aliases |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
30779827
277658
161