@lvce-editor/editor-worker 19.80.2 → 19.81.0

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.
@@ -28,6 +28,29 @@ export interface BracketMatchInfo {
28
28
  readonly x: number;
29
29
  readonly y: number;
30
30
  }
31
+ export type DocumentHighlightKind = "read" | "text" | "write";
32
+ export interface DocumentHighlight {
33
+ readonly endColumnIndex: number;
34
+ readonly endRowIndex: number;
35
+ readonly kind: DocumentHighlightKind;
36
+ readonly startColumnIndex: number;
37
+ readonly startRowIndex: number;
38
+ }
39
+ export interface DocumentHighlightInfo {
40
+ readonly height: number;
41
+ readonly kind: DocumentHighlightKind;
42
+ readonly width: number;
43
+ readonly x: number;
44
+ readonly y: number;
45
+ }
46
+ export interface DocumentLink {
47
+ readonly columnIndex: number;
48
+ readonly endColumnIndex: number;
49
+ readonly endRowIndex: number;
50
+ readonly rowIndex: number;
51
+ readonly target: string;
52
+ readonly tooltip?: string;
53
+ }
31
54
  export interface DocumentSymbol {
32
55
  readonly children?: readonly DocumentSymbol[];
33
56
  readonly detail?: string;
@@ -70,6 +93,17 @@ export interface EditorTextDecoration {
70
93
  declare const Lf = "lf";
71
94
  declare const Crlf = "crlf";
72
95
  export type EndOfLine = typeof Lf | typeof Crlf;
96
+ export interface LinkedEditingRange {
97
+ readonly endColumnIndex: number;
98
+ readonly rowIndex: number;
99
+ readonly startColumnIndex: number;
100
+ }
101
+ export interface LinkedEditingState {
102
+ /** The ranges are only valid for exactly these lines. */
103
+ readonly lines: readonly string[];
104
+ readonly ranges: readonly LinkedEditingRange[];
105
+ readonly wordPattern: RegExp;
106
+ }
73
107
  export interface MergeConflict {
74
108
  readonly baseEndRowIndex: number;
75
109
  readonly baseStartRowIndex: number;
@@ -110,6 +144,10 @@ export interface EditorState {
110
144
  readonly diagnostics: readonly any[];
111
145
  readonly diagnosticsEnabled: boolean;
112
146
  differences: any[];
147
+ readonly documentHighlightInfos?: readonly DocumentHighlightInfo[];
148
+ readonly documentHighlights?: readonly DocumentHighlight[];
149
+ readonly documentHighlightsEnabled?: boolean;
150
+ readonly documentLinks?: readonly DocumentLink[];
113
151
  readonly documentSymbols?: readonly DocumentSymbol[];
114
152
  readonly dragAndDropEnabled: boolean;
115
153
  readonly editorFileCacheEnabled?: boolean;
@@ -169,6 +207,8 @@ export interface EditorState {
169
207
  readonly lineCache: readonly any[];
170
208
  readonly lineNumbers: boolean;
171
209
  readonly lines: readonly string[];
210
+ readonly linkedEditing?: LinkedEditingState | undefined;
211
+ readonly linkedEditingEnabled?: boolean;
172
212
  readonly loadError?: string;
173
213
  readonly longestLineWidth: number;
174
214
  readonly maxLineY: number;