aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js/xtext/xtext-codemirror.d.ts
blob: fff850b8321f02fd41fc5ee073c1738273cc3b63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Editor } from 'codemirror';

export function createEditor(options: IXtextOptions): IXtextCodeMirrorEditor;

export function createServices(editor: Editor, options: IXtextOptions): IXtextServices;

export function removeServices(editor: Editor): void;

export interface IXtextOptions {
  baseUrl?: string;
  contentType?: string;
  dirtyElement?: string | Element;
  dirtyStatusClass?: string;
  document?: Document;
  enableContentAssistService?: boolean;
  enableCors?: boolean;
  enableFormattingAction?: boolean;
  enableFormattingService?: boolean;
  enableGeneratorService?: boolean;
  enableHighlightingService?: boolean;
  enableOccurrencesService?: boolean;
  enableSaveAction?: boolean;
  enableValidationService?: boolean;
  loadFromServer?: boolean;
  mode?: string;
  parent?: string | Element;
  parentClass?: string;
  resourceId?: string;
  selectionUpdateDelay?: number;
  sendFullText?: boolean;
  serviceUrl?: string;
  showErrorDialogs?: boolean;
  syntaxDefinition?: string;
  textUpdateDelay?: number;
  xtextLang?: string;
}

export interface IXtextCodeMirrorEditor extends Editor {
  xtextServices: IXtextServices;
}

export interface IXtextServices {
}