aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/editor/editor.ts
blob: fbf8796b5d437c8ec5c304406671063a3bfbc73a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import 'codemirror/addon/selection/active-line';
import 'mode-problem';
import { Controlled } from 'react-codemirror2';
import { createServices, removeServices } from 'xtext/xtext-codemirror';

export interface IEditorChunk {
  CodeMirror: typeof Controlled;

  createServices: typeof createServices;

  removeServices: typeof removeServices;
}

export const editorChunk: IEditorChunk = {
  CodeMirror: Controlled,
  createServices,
  removeServices,
};