@lvce-editor/editor-worker 19.80.3 → 19.81.1

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,19 @@ 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
+ /**
103
+ The ranges are only valid for exactly these lines.
104
+ */
105
+ readonly lines: readonly string[];
106
+ readonly ranges: readonly LinkedEditingRange[];
107
+ readonly wordPattern: RegExp;
108
+ }
73
109
  export interface MergeConflict {
74
110
  readonly baseEndRowIndex: number;
75
111
  readonly baseStartRowIndex: number;
@@ -110,6 +146,10 @@ export interface EditorState {
110
146
  readonly diagnostics: readonly any[];
111
147
  readonly diagnosticsEnabled: boolean;
112
148
  differences: any[];
149
+ readonly documentHighlightInfos?: readonly DocumentHighlightInfo[];
150
+ readonly documentHighlights?: readonly DocumentHighlight[];
151
+ readonly documentHighlightsEnabled?: boolean;
152
+ readonly documentLinks?: readonly DocumentLink[];
113
153
  readonly documentSymbols?: readonly DocumentSymbol[];
114
154
  readonly dragAndDropEnabled: boolean;
115
155
  readonly editorFileCacheEnabled?: boolean;
@@ -169,6 +209,8 @@ export interface EditorState {
169
209
  readonly lineCache: readonly any[];
170
210
  readonly lineNumbers: boolean;
171
211
  readonly lines: readonly string[];
212
+ readonly linkedEditing?: LinkedEditingState | undefined;
213
+ readonly linkedEditingEnabled?: boolean;
172
214
  readonly loadError?: string;
173
215
  readonly longestLineWidth: number;
174
216
  readonly maxLineY: number;
@@ -242,10 +284,10 @@ export interface EmbeddedEditor {
242
284
  readonly getState: () => EditorState;
243
285
  }
244
286
  /**
245
- * Creates an editor owned by the caller, without starting a worker or installing
246
- * message listeners. The host initializes the shared rpc-registry connections.
247
- * Commands use document coordinates; the host owns display coordinate mapping.
248
- */
287
+ Creates an editor owned by the caller, without starting a worker or installing
288
+ message listeners. The host initializes the shared rpc-registry connections.
289
+ Commands use document coordinates; the host owns display coordinate mapping.
290
+ */
249
291
  export declare const createEmbeddedEditor: (options: StandaloneEditorOptions) => Promise<EmbeddedEditor>;
250
292
 
251
293
  export {};