@kroy665/code-editor-engine 1.0.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.
- package/README.md +127 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/__tests__/editor.spec.d.ts +2 -0
- package/dist/__tests__/editor.spec.d.ts.map +1 -0
- package/dist/__tests__/editor.spec.js +141 -0
- package/dist/__tests__/editor.spec.js.map +1 -0
- package/dist/core/CodeEditor.d.ts +70 -0
- package/dist/core/CodeEditor.d.ts.map +1 -0
- package/dist/core/CodeEditor.js +392 -0
- package/dist/core/CodeEditor.js.map +1 -0
- package/dist/core/CommandSystem.d.ts +158 -0
- package/dist/core/CommandSystem.d.ts.map +1 -0
- package/dist/core/CommandSystem.js +358 -0
- package/dist/core/CommandSystem.js.map +1 -0
- package/dist/core/EventSystem.d.ts +87 -0
- package/dist/core/EventSystem.d.ts.map +1 -0
- package/dist/core/EventSystem.js +330 -0
- package/dist/core/EventSystem.js.map +1 -0
- package/dist/core/TextDocument.d.ts +110 -0
- package/dist/core/TextDocument.d.ts.map +1 -0
- package/dist/core/TextDocument.js +340 -0
- package/dist/core/TextDocument.js.map +1 -0
- package/dist/index.d.ts +178 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +302 -0
- package/dist/index.js.map +1 -0
- package/dist/language/Extensions.d.ts +280 -0
- package/dist/language/Extensions.d.ts.map +1 -0
- package/dist/language/Extensions.js +368 -0
- package/dist/language/Extensions.js.map +1 -0
- package/dist/language/Tokenizer.d.ts +108 -0
- package/dist/language/Tokenizer.d.ts.map +1 -0
- package/dist/language/Tokenizer.js +630 -0
- package/dist/language/Tokenizer.js.map +1 -0
- package/dist/types/core.d.ts +355 -0
- package/dist/types/core.d.ts.map +1 -0
- package/dist/types/core.js +93 -0
- package/dist/types/core.js.map +1 -0
- package/package.json +82 -0
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Types for Headless Code Editor Engine
|
|
3
|
+
* Future-proof, platform-agnostic type definitions
|
|
4
|
+
*/
|
|
5
|
+
export interface Position {
|
|
6
|
+
readonly line: number;
|
|
7
|
+
readonly column: number;
|
|
8
|
+
}
|
|
9
|
+
export interface Range {
|
|
10
|
+
readonly start: Position;
|
|
11
|
+
readonly end: Position;
|
|
12
|
+
}
|
|
13
|
+
export interface Selection extends Range {
|
|
14
|
+
readonly anchor: Position;
|
|
15
|
+
readonly active: Position;
|
|
16
|
+
readonly isReversed: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface TextChange {
|
|
19
|
+
readonly range: Range;
|
|
20
|
+
readonly text: string;
|
|
21
|
+
readonly rangeLength?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface TextDocument {
|
|
24
|
+
readonly uri: string;
|
|
25
|
+
readonly languageId: string;
|
|
26
|
+
readonly version: number;
|
|
27
|
+
readonly lineCount: number;
|
|
28
|
+
getText(range?: Range): string;
|
|
29
|
+
getLineContent(line: number): string;
|
|
30
|
+
getWordRangeAtPosition(position: Position): Range | null;
|
|
31
|
+
validateRange(range: Range): Range;
|
|
32
|
+
validatePosition(position: Position): Position;
|
|
33
|
+
}
|
|
34
|
+
export interface Command {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly label: string;
|
|
37
|
+
execute(...args: any[]): Promise<any> | any;
|
|
38
|
+
undo?(): Promise<void> | void;
|
|
39
|
+
redo?(): Promise<void> | void;
|
|
40
|
+
}
|
|
41
|
+
export interface CommandContext {
|
|
42
|
+
readonly editor: CodeEditor;
|
|
43
|
+
readonly document: TextDocument;
|
|
44
|
+
readonly selections: readonly Selection[];
|
|
45
|
+
}
|
|
46
|
+
export type EventListener<T = any> = (event: T) => void;
|
|
47
|
+
export interface EventEmitter<TEvents = Record<string, any>> {
|
|
48
|
+
on<K extends keyof TEvents>(event: K, listener: EventListener<TEvents[K]>): Disposable;
|
|
49
|
+
off<K extends keyof TEvents>(event: K, listener: EventListener<TEvents[K]>): void;
|
|
50
|
+
emit<K extends keyof TEvents>(event: K, data: TEvents[K]): void;
|
|
51
|
+
once<K extends keyof TEvents>(event: K, listener: EventListener<TEvents[K]>): Disposable;
|
|
52
|
+
}
|
|
53
|
+
export interface Disposable {
|
|
54
|
+
dispose(): void;
|
|
55
|
+
}
|
|
56
|
+
export interface EditorEvents {
|
|
57
|
+
'text-changed': {
|
|
58
|
+
changes: TextChange[];
|
|
59
|
+
document: TextDocument;
|
|
60
|
+
};
|
|
61
|
+
'selection-changed': {
|
|
62
|
+
selections: Selection[];
|
|
63
|
+
document: TextDocument;
|
|
64
|
+
};
|
|
65
|
+
'cursor-moved': {
|
|
66
|
+
position: Position;
|
|
67
|
+
document: TextDocument;
|
|
68
|
+
};
|
|
69
|
+
'language-changed': {
|
|
70
|
+
languageId: string;
|
|
71
|
+
document: TextDocument;
|
|
72
|
+
};
|
|
73
|
+
'document-opened': {
|
|
74
|
+
document: TextDocument;
|
|
75
|
+
};
|
|
76
|
+
'document-closed': {
|
|
77
|
+
uri: string;
|
|
78
|
+
};
|
|
79
|
+
'document-saved': {
|
|
80
|
+
document: TextDocument;
|
|
81
|
+
};
|
|
82
|
+
undo: {
|
|
83
|
+
command: Command;
|
|
84
|
+
};
|
|
85
|
+
redo: {
|
|
86
|
+
command: Command;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export declare enum TokenType {
|
|
90
|
+
Text = "text",
|
|
91
|
+
Keyword = "keyword",
|
|
92
|
+
String = "string",
|
|
93
|
+
Comment = "comment",
|
|
94
|
+
Number = "number",
|
|
95
|
+
Operator = "operator",
|
|
96
|
+
Identifier = "identifier",
|
|
97
|
+
Type = "type",
|
|
98
|
+
Function = "function",
|
|
99
|
+
Variable = "variable",
|
|
100
|
+
Property = "property",
|
|
101
|
+
Class = "class",
|
|
102
|
+
Interface = "interface",
|
|
103
|
+
Enum = "enum",
|
|
104
|
+
Namespace = "namespace",
|
|
105
|
+
Parameter = "parameter",
|
|
106
|
+
TypeParameter = "typeParameter",
|
|
107
|
+
Decorator = "decorator",
|
|
108
|
+
Macro = "macro",
|
|
109
|
+
Regexp = "regexp"
|
|
110
|
+
}
|
|
111
|
+
export interface Token {
|
|
112
|
+
readonly type: TokenType;
|
|
113
|
+
readonly range: Range;
|
|
114
|
+
readonly text: string;
|
|
115
|
+
readonly modifiers?: string[];
|
|
116
|
+
}
|
|
117
|
+
export interface CompletionItem {
|
|
118
|
+
readonly label: string;
|
|
119
|
+
readonly kind: CompletionItemKind;
|
|
120
|
+
readonly detail?: string;
|
|
121
|
+
readonly documentation?: string;
|
|
122
|
+
readonly insertText: string;
|
|
123
|
+
readonly range?: Range;
|
|
124
|
+
readonly sortText?: string;
|
|
125
|
+
readonly filterText?: string;
|
|
126
|
+
readonly additionalTextEdits?: TextChange[];
|
|
127
|
+
}
|
|
128
|
+
export declare enum CompletionItemKind {
|
|
129
|
+
Text = "text",
|
|
130
|
+
Method = "method",
|
|
131
|
+
Function = "function",
|
|
132
|
+
Constructor = "constructor",
|
|
133
|
+
Field = "field",
|
|
134
|
+
Variable = "variable",
|
|
135
|
+
Class = "class",
|
|
136
|
+
Interface = "interface",
|
|
137
|
+
Module = "module",
|
|
138
|
+
Property = "property",
|
|
139
|
+
Unit = "unit",
|
|
140
|
+
Value = "value",
|
|
141
|
+
Enum = "enum",
|
|
142
|
+
Keyword = "keyword",
|
|
143
|
+
Snippet = "snippet",
|
|
144
|
+
Color = "color",
|
|
145
|
+
File = "file",
|
|
146
|
+
Reference = "reference",
|
|
147
|
+
Folder = "folder",
|
|
148
|
+
EnumMember = "enumMember",
|
|
149
|
+
Constant = "constant",
|
|
150
|
+
Struct = "struct",
|
|
151
|
+
Event = "event",
|
|
152
|
+
Operator = "operator",
|
|
153
|
+
TypeParameter = "typeParameter"
|
|
154
|
+
}
|
|
155
|
+
export interface Diagnostic {
|
|
156
|
+
readonly range: Range;
|
|
157
|
+
readonly message: string;
|
|
158
|
+
readonly severity: DiagnosticSeverity;
|
|
159
|
+
readonly code?: string | number;
|
|
160
|
+
readonly source?: string;
|
|
161
|
+
readonly relatedInformation?: DiagnosticRelatedInformation[];
|
|
162
|
+
}
|
|
163
|
+
export declare enum DiagnosticSeverity {
|
|
164
|
+
Error = "error",
|
|
165
|
+
Warning = "warning",
|
|
166
|
+
Information = "information",
|
|
167
|
+
Hint = "hint"
|
|
168
|
+
}
|
|
169
|
+
export interface DiagnosticRelatedInformation {
|
|
170
|
+
readonly location: {
|
|
171
|
+
uri: string;
|
|
172
|
+
range: Range;
|
|
173
|
+
};
|
|
174
|
+
readonly message: string;
|
|
175
|
+
}
|
|
176
|
+
export interface LanguageService {
|
|
177
|
+
readonly languageId: string;
|
|
178
|
+
tokenize?(document: TextDocument, range?: Range): Promise<Token[]>;
|
|
179
|
+
provideCompletions?(document: TextDocument, position: Position, context?: CompletionContext): Promise<CompletionItem[]>;
|
|
180
|
+
provideHover?(document: TextDocument, position: Position): Promise<Hover | null>;
|
|
181
|
+
provideDiagnostics?(document: TextDocument): Promise<Diagnostic[]>;
|
|
182
|
+
provideDefinition?(document: TextDocument, position: Position): Promise<Location[]>;
|
|
183
|
+
provideCodeActions?(document: TextDocument, range: Range, context: CodeActionContext): Promise<CodeAction[]>;
|
|
184
|
+
provideDocumentFormattingEdits?(document: TextDocument, options: FormattingOptions): Promise<TextChange[]>;
|
|
185
|
+
provideRenameEdits?(document: TextDocument, position: Position, newName: string): Promise<WorkspaceEdit | null>;
|
|
186
|
+
}
|
|
187
|
+
export interface CompletionContext {
|
|
188
|
+
readonly triggerKind: CompletionTriggerKind;
|
|
189
|
+
readonly triggerCharacter?: string;
|
|
190
|
+
}
|
|
191
|
+
export declare enum CompletionTriggerKind {
|
|
192
|
+
Invoked = "invoked",
|
|
193
|
+
TriggerCharacter = "triggerCharacter",
|
|
194
|
+
TriggerForIncompleteCompletions = "triggerForIncompleteCompletions"
|
|
195
|
+
}
|
|
196
|
+
export interface Hover {
|
|
197
|
+
readonly contents: string[];
|
|
198
|
+
readonly range?: Range;
|
|
199
|
+
}
|
|
200
|
+
export interface Location {
|
|
201
|
+
readonly uri: string;
|
|
202
|
+
readonly range: Range;
|
|
203
|
+
}
|
|
204
|
+
export interface CodeAction {
|
|
205
|
+
readonly title: string;
|
|
206
|
+
readonly kind?: CodeActionKind;
|
|
207
|
+
readonly diagnostics?: Diagnostic[];
|
|
208
|
+
readonly edit?: WorkspaceEdit;
|
|
209
|
+
readonly command?: Command;
|
|
210
|
+
readonly isPreferred?: boolean;
|
|
211
|
+
}
|
|
212
|
+
export declare enum CodeActionKind {
|
|
213
|
+
QuickFix = "quickfix",
|
|
214
|
+
Refactor = "refactor",
|
|
215
|
+
RefactorExtract = "refactor.extract",
|
|
216
|
+
RefactorInline = "refactor.inline",
|
|
217
|
+
RefactorRewrite = "refactor.rewrite",
|
|
218
|
+
Source = "source",
|
|
219
|
+
SourceOrganizeImports = "source.organizeImports",
|
|
220
|
+
SourceFixAll = "source.fixAll"
|
|
221
|
+
}
|
|
222
|
+
export interface CodeActionContext {
|
|
223
|
+
readonly diagnostics: Diagnostic[];
|
|
224
|
+
readonly only?: CodeActionKind[];
|
|
225
|
+
}
|
|
226
|
+
export interface WorkspaceEdit {
|
|
227
|
+
readonly changes?: {
|
|
228
|
+
[uri: string]: TextChange[];
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
export interface FormattingOptions {
|
|
232
|
+
readonly tabSize: number;
|
|
233
|
+
readonly insertSpaces: boolean;
|
|
234
|
+
readonly trimTrailingWhitespace?: boolean;
|
|
235
|
+
readonly insertFinalNewline?: boolean;
|
|
236
|
+
readonly trimFinalNewlines?: boolean;
|
|
237
|
+
}
|
|
238
|
+
export interface EditorOptions {
|
|
239
|
+
readonly tabSize: number;
|
|
240
|
+
readonly insertSpaces: boolean;
|
|
241
|
+
readonly autoIndent: boolean;
|
|
242
|
+
readonly wordWrap: boolean;
|
|
243
|
+
readonly lineNumbers: boolean;
|
|
244
|
+
readonly readOnly: boolean;
|
|
245
|
+
readonly undoStackSize: number;
|
|
246
|
+
}
|
|
247
|
+
export interface CodeEditor extends EventEmitter<EditorEvents> {
|
|
248
|
+
readonly document: TextDocument | null;
|
|
249
|
+
openDocument(uri: string, content: string, languageId: string): Promise<void>;
|
|
250
|
+
closeDocument(): void;
|
|
251
|
+
saveDocument(): Promise<void>;
|
|
252
|
+
readonly selections: readonly Selection[];
|
|
253
|
+
setSelections(selections: Selection[]): void;
|
|
254
|
+
insertText(text: string, position?: Position): Promise<void>;
|
|
255
|
+
deleteText(range: Range): Promise<void>;
|
|
256
|
+
replaceText(range: Range, text: string): Promise<void>;
|
|
257
|
+
executeCommand(commandId: string, ...args: any[]): Promise<any>;
|
|
258
|
+
registerCommand(command: Command): Disposable;
|
|
259
|
+
registerLanguageService(service: LanguageService): Disposable;
|
|
260
|
+
getLanguageService(languageId: string): LanguageService | null;
|
|
261
|
+
undo(): Promise<void>;
|
|
262
|
+
redo(): Promise<void>;
|
|
263
|
+
canUndo(): boolean;
|
|
264
|
+
canRedo(): boolean;
|
|
265
|
+
updateOptions(options: Partial<EditorOptions>): void;
|
|
266
|
+
getOptions(): EditorOptions;
|
|
267
|
+
dispose(): void;
|
|
268
|
+
}
|
|
269
|
+
export interface Extension {
|
|
270
|
+
readonly id: string;
|
|
271
|
+
readonly name: string;
|
|
272
|
+
readonly version: string;
|
|
273
|
+
readonly description?: string;
|
|
274
|
+
readonly activationEvents?: string[];
|
|
275
|
+
activate(context: ExtensionContext): Promise<void> | void;
|
|
276
|
+
deactivate?(): Promise<void> | void;
|
|
277
|
+
}
|
|
278
|
+
export interface ExtensionContext {
|
|
279
|
+
readonly extensionId: string;
|
|
280
|
+
readonly globalState: Memento;
|
|
281
|
+
readonly workspaceState: Memento;
|
|
282
|
+
registerCommand(commandId: string, command: Command): Disposable;
|
|
283
|
+
registerLanguageService(service: LanguageService): Disposable;
|
|
284
|
+
registerTextDocumentProvider(scheme: string, provider: TextDocumentProvider): Disposable;
|
|
285
|
+
}
|
|
286
|
+
export interface Memento {
|
|
287
|
+
get<T>(key: string): T | undefined;
|
|
288
|
+
get<T>(key: string, defaultValue: T): T;
|
|
289
|
+
update(key: string, value: any): Promise<void>;
|
|
290
|
+
keys(): readonly string[];
|
|
291
|
+
}
|
|
292
|
+
export interface TextDocumentProvider {
|
|
293
|
+
provideTextDocumentContent(uri: string): Promise<string>;
|
|
294
|
+
onDidChange?: EventEmitter<string>['emit'];
|
|
295
|
+
}
|
|
296
|
+
export interface ConfigurationTarget {
|
|
297
|
+
readonly global: 'global';
|
|
298
|
+
readonly workspace: 'workspace';
|
|
299
|
+
readonly workspaceFolder: 'workspaceFolder';
|
|
300
|
+
}
|
|
301
|
+
export interface Configuration {
|
|
302
|
+
get<T>(section: string): T | undefined;
|
|
303
|
+
get<T>(section: string, defaultValue: T): T;
|
|
304
|
+
has(section: string): boolean;
|
|
305
|
+
inspect<T>(section: string): ConfigurationInspectResult<T> | undefined;
|
|
306
|
+
update(section: string, value: any, target?: keyof ConfigurationTarget): Promise<void>;
|
|
307
|
+
}
|
|
308
|
+
export interface ConfigurationInspectResult<T> {
|
|
309
|
+
readonly key: string;
|
|
310
|
+
readonly defaultValue?: T;
|
|
311
|
+
readonly globalValue?: T;
|
|
312
|
+
readonly workspaceValue?: T;
|
|
313
|
+
readonly workspaceFolderValue?: T;
|
|
314
|
+
}
|
|
315
|
+
export interface FileSystemProvider {
|
|
316
|
+
readFile(uri: string): Promise<Uint8Array>;
|
|
317
|
+
writeFile(uri: string, content: Uint8Array): Promise<void>;
|
|
318
|
+
delete(uri: string): Promise<void>;
|
|
319
|
+
rename(oldUri: string, newUri: string): Promise<void>;
|
|
320
|
+
exists(uri: string): Promise<boolean>;
|
|
321
|
+
readDirectory(uri: string): Promise<[string, FileType][]>;
|
|
322
|
+
createDirectory(uri: string): Promise<void>;
|
|
323
|
+
stat(uri: string): Promise<FileStat>;
|
|
324
|
+
watch(uri: string, options: WatchOptions): Disposable;
|
|
325
|
+
}
|
|
326
|
+
export declare enum FileType {
|
|
327
|
+
Unknown = 0,
|
|
328
|
+
File = 1,
|
|
329
|
+
Directory = 2,
|
|
330
|
+
SymbolicLink = 64
|
|
331
|
+
}
|
|
332
|
+
export interface FileStat {
|
|
333
|
+
readonly type: FileType;
|
|
334
|
+
readonly ctime: number;
|
|
335
|
+
readonly mtime: number;
|
|
336
|
+
readonly size: number;
|
|
337
|
+
}
|
|
338
|
+
export interface WatchOptions {
|
|
339
|
+
readonly recursive: boolean;
|
|
340
|
+
readonly excludes: string[];
|
|
341
|
+
}
|
|
342
|
+
export interface WorkspaceFolder {
|
|
343
|
+
readonly uri: string;
|
|
344
|
+
readonly name: string;
|
|
345
|
+
readonly index: number;
|
|
346
|
+
}
|
|
347
|
+
export interface Workspace {
|
|
348
|
+
readonly folders: readonly WorkspaceFolder[];
|
|
349
|
+
readonly name?: string;
|
|
350
|
+
findFiles(include: string, exclude?: string, maxResults?: number): Promise<string[]>;
|
|
351
|
+
openTextDocument(uri: string): Promise<TextDocument>;
|
|
352
|
+
saveTextDocument(document: TextDocument): Promise<void>;
|
|
353
|
+
closeTextDocument(document: TextDocument): Promise<void>;
|
|
354
|
+
}
|
|
355
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/types/core.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,QAAQ;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,KAAK;IAClB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC;CAC1B;AAED,MAAM,WAAW,SAAU,SAAQ,KAAK;IACpC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE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AAQ;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;CAC/B;AAMD,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEvB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACrF,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACrD,gBAAgB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5D"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Core Types for Headless Code Editor Engine
|
|
4
|
+
* Future-proof, platform-agnostic type definitions
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.FileType = exports.CodeActionKind = exports.CompletionTriggerKind = exports.DiagnosticSeverity = exports.CompletionItemKind = exports.TokenType = void 0;
|
|
8
|
+
// ================================
|
|
9
|
+
// LANGUAGE FEATURES
|
|
10
|
+
// ================================
|
|
11
|
+
var TokenType;
|
|
12
|
+
(function (TokenType) {
|
|
13
|
+
TokenType["Text"] = "text";
|
|
14
|
+
TokenType["Keyword"] = "keyword";
|
|
15
|
+
TokenType["String"] = "string";
|
|
16
|
+
TokenType["Comment"] = "comment";
|
|
17
|
+
TokenType["Number"] = "number";
|
|
18
|
+
TokenType["Operator"] = "operator";
|
|
19
|
+
TokenType["Identifier"] = "identifier";
|
|
20
|
+
TokenType["Type"] = "type";
|
|
21
|
+
TokenType["Function"] = "function";
|
|
22
|
+
TokenType["Variable"] = "variable";
|
|
23
|
+
TokenType["Property"] = "property";
|
|
24
|
+
TokenType["Class"] = "class";
|
|
25
|
+
TokenType["Interface"] = "interface";
|
|
26
|
+
TokenType["Enum"] = "enum";
|
|
27
|
+
TokenType["Namespace"] = "namespace";
|
|
28
|
+
TokenType["Parameter"] = "parameter";
|
|
29
|
+
TokenType["TypeParameter"] = "typeParameter";
|
|
30
|
+
TokenType["Decorator"] = "decorator";
|
|
31
|
+
TokenType["Macro"] = "macro";
|
|
32
|
+
TokenType["Regexp"] = "regexp";
|
|
33
|
+
})(TokenType || (exports.TokenType = TokenType = {}));
|
|
34
|
+
var CompletionItemKind;
|
|
35
|
+
(function (CompletionItemKind) {
|
|
36
|
+
CompletionItemKind["Text"] = "text";
|
|
37
|
+
CompletionItemKind["Method"] = "method";
|
|
38
|
+
CompletionItemKind["Function"] = "function";
|
|
39
|
+
CompletionItemKind["Constructor"] = "constructor";
|
|
40
|
+
CompletionItemKind["Field"] = "field";
|
|
41
|
+
CompletionItemKind["Variable"] = "variable";
|
|
42
|
+
CompletionItemKind["Class"] = "class";
|
|
43
|
+
CompletionItemKind["Interface"] = "interface";
|
|
44
|
+
CompletionItemKind["Module"] = "module";
|
|
45
|
+
CompletionItemKind["Property"] = "property";
|
|
46
|
+
CompletionItemKind["Unit"] = "unit";
|
|
47
|
+
CompletionItemKind["Value"] = "value";
|
|
48
|
+
CompletionItemKind["Enum"] = "enum";
|
|
49
|
+
CompletionItemKind["Keyword"] = "keyword";
|
|
50
|
+
CompletionItemKind["Snippet"] = "snippet";
|
|
51
|
+
CompletionItemKind["Color"] = "color";
|
|
52
|
+
CompletionItemKind["File"] = "file";
|
|
53
|
+
CompletionItemKind["Reference"] = "reference";
|
|
54
|
+
CompletionItemKind["Folder"] = "folder";
|
|
55
|
+
CompletionItemKind["EnumMember"] = "enumMember";
|
|
56
|
+
CompletionItemKind["Constant"] = "constant";
|
|
57
|
+
CompletionItemKind["Struct"] = "struct";
|
|
58
|
+
CompletionItemKind["Event"] = "event";
|
|
59
|
+
CompletionItemKind["Operator"] = "operator";
|
|
60
|
+
CompletionItemKind["TypeParameter"] = "typeParameter";
|
|
61
|
+
})(CompletionItemKind || (exports.CompletionItemKind = CompletionItemKind = {}));
|
|
62
|
+
var DiagnosticSeverity;
|
|
63
|
+
(function (DiagnosticSeverity) {
|
|
64
|
+
DiagnosticSeverity["Error"] = "error";
|
|
65
|
+
DiagnosticSeverity["Warning"] = "warning";
|
|
66
|
+
DiagnosticSeverity["Information"] = "information";
|
|
67
|
+
DiagnosticSeverity["Hint"] = "hint";
|
|
68
|
+
})(DiagnosticSeverity || (exports.DiagnosticSeverity = DiagnosticSeverity = {}));
|
|
69
|
+
var CompletionTriggerKind;
|
|
70
|
+
(function (CompletionTriggerKind) {
|
|
71
|
+
CompletionTriggerKind["Invoked"] = "invoked";
|
|
72
|
+
CompletionTriggerKind["TriggerCharacter"] = "triggerCharacter";
|
|
73
|
+
CompletionTriggerKind["TriggerForIncompleteCompletions"] = "triggerForIncompleteCompletions";
|
|
74
|
+
})(CompletionTriggerKind || (exports.CompletionTriggerKind = CompletionTriggerKind = {}));
|
|
75
|
+
var CodeActionKind;
|
|
76
|
+
(function (CodeActionKind) {
|
|
77
|
+
CodeActionKind["QuickFix"] = "quickfix";
|
|
78
|
+
CodeActionKind["Refactor"] = "refactor";
|
|
79
|
+
CodeActionKind["RefactorExtract"] = "refactor.extract";
|
|
80
|
+
CodeActionKind["RefactorInline"] = "refactor.inline";
|
|
81
|
+
CodeActionKind["RefactorRewrite"] = "refactor.rewrite";
|
|
82
|
+
CodeActionKind["Source"] = "source";
|
|
83
|
+
CodeActionKind["SourceOrganizeImports"] = "source.organizeImports";
|
|
84
|
+
CodeActionKind["SourceFixAll"] = "source.fixAll";
|
|
85
|
+
})(CodeActionKind || (exports.CodeActionKind = CodeActionKind = {}));
|
|
86
|
+
var FileType;
|
|
87
|
+
(function (FileType) {
|
|
88
|
+
FileType[FileType["Unknown"] = 0] = "Unknown";
|
|
89
|
+
FileType[FileType["File"] = 1] = "File";
|
|
90
|
+
FileType[FileType["Directory"] = 2] = "Directory";
|
|
91
|
+
FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
|
|
92
|
+
})(FileType || (exports.FileType = FileType = {}));
|
|
93
|
+
//# sourceMappingURL=core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sourceRoot":"","sources":["../../src/types/core.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+FH,mCAAmC;AACnC,oBAAoB;AACpB,mCAAmC;AAEnC,IAAY,SAqBX;AArBD,WAAY,SAAS;IACjB,0BAAa,CAAA;IACb,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,sCAAyB,CAAA;IACzB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,4BAAe,CAAA;IACf,oCAAuB,CAAA;IACvB,0BAAa,CAAA;IACb,oCAAuB,CAAA;IACvB,oCAAuB,CAAA;IACvB,4CAA+B,CAAA;IAC/B,oCAAuB,CAAA;IACvB,4BAAe,CAAA;IACf,8BAAiB,CAAA;AACrB,C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6CAAW,CAAA;IACX,uCAAQ,CAAA;IACR,iDAAa,CAAA;IACb,wDAAiB,CAAA;AACrB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kroy665/code-editor-engine",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Future-proof headless code editor engine for any platform",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"require": "./dist/index.js",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"build:pack": "rm -rf dist && rm -rf code-editor-engine-*.tgz && npm run build && npm pack",
|
|
24
|
+
"clean": "rm -rf dist",
|
|
25
|
+
"prepare": "npm run build",
|
|
26
|
+
"prepublishOnly": "npm run lint && npm run test",
|
|
27
|
+
"preversion": "npm run lint",
|
|
28
|
+
"version": "npm run format && git add -A src",
|
|
29
|
+
"postversion": "git push && git push --tags",
|
|
30
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
31
|
+
"lint": "eslint src --ext .ts",
|
|
32
|
+
"test": "jest --passWithNoTests",
|
|
33
|
+
"test:watch": "jest --watch"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"code-editor",
|
|
37
|
+
"text-editor",
|
|
38
|
+
"monaco",
|
|
39
|
+
"headless",
|
|
40
|
+
"typescript",
|
|
41
|
+
"react-native",
|
|
42
|
+
"mobile",
|
|
43
|
+
"syntax-highlighting",
|
|
44
|
+
"language-server",
|
|
45
|
+
"lsp",
|
|
46
|
+
"intellisense",
|
|
47
|
+
"autocomplete",
|
|
48
|
+
"editor-engine",
|
|
49
|
+
"extensible",
|
|
50
|
+
"plugin-system"
|
|
51
|
+
],
|
|
52
|
+
"author": "Koushik Roy",
|
|
53
|
+
"license": "MIT",
|
|
54
|
+
"repository": {
|
|
55
|
+
"type": "git",
|
|
56
|
+
"url": "https://github.com/Kroy665/code-editor-engine.git"
|
|
57
|
+
},
|
|
58
|
+
"bugs": {
|
|
59
|
+
"url": "https://github.com/Kroy665/code-editor-engine/issues"
|
|
60
|
+
},
|
|
61
|
+
"homepage": "https://github.com/Kroy665/code-editor-engine#readme",
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"typescript": ">=4.5.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@types/jest": "^30.0.0",
|
|
67
|
+
"@types/node": "^24.10.0",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.46.3",
|
|
69
|
+
"@typescript-eslint/parser": "^8.46.3",
|
|
70
|
+
"eslint": "^9.39.1",
|
|
71
|
+
"globals": "^16.5.0",
|
|
72
|
+
"jest": "^30.2.0",
|
|
73
|
+
"prettier": "^3.6.2",
|
|
74
|
+
"ts-jest": "^29.4.5",
|
|
75
|
+
"ts-node": "^10.9.2",
|
|
76
|
+
"tslib": "^2.8.1",
|
|
77
|
+
"typescript": "^5.9.3"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=16.0.0"
|
|
81
|
+
}
|
|
82
|
+
}
|