@codingame/monaco-vscode-editor-api 11.1.2 → 12.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.
Files changed (35) hide show
  1. package/esm/vs/editor/browser/config/tabFocus.d.ts +1 -0
  2. package/esm/vs/editor/browser/coreCommands.d.ts +1 -0
  3. package/esm/vs/editor/common/commands/shiftCommand.d.ts +1 -0
  4. package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.d.ts +1 -0
  5. package/esm/vs/editor/contrib/clipboard/browser/clipboard.d.ts +1 -0
  6. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.d.ts +1 -0
  7. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.d.ts +1 -0
  8. package/esm/vs/editor/contrib/find/browser/findController.d.ts +1 -0
  9. package/esm/vs/editor/contrib/format/browser/formatActions.d.ts +1 -0
  10. package/esm/vs/editor/contrib/hover/browser/hoverContribution.d.ts +1 -0
  11. package/esm/vs/editor/contrib/hover/browser/hoverContribution.js +1 -0
  12. package/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.d.ts +1 -0
  13. package/esm/vs/editor/editor.api.d.ts +7 -2
  14. package/esm/vs/editor/editor.api.js +4 -2311
  15. package/package.json +14 -9
  16. package/vscode/src/vs/editor/editor.api.d.ts +9338 -0
  17. package/vscode/src/vs/editor/editor.api.js +35 -0
  18. package/vscode/src/vs/editor/standalone/browser/colorizer.d.ts +17 -0
  19. package/vscode/src/vs/editor/standalone/browser/colorizer.js +178 -0
  20. package/vscode/src/vs/editor/standalone/browser/standalone-tokens.css.js +6 -0
  21. package/vscode/src/vs/editor/standalone/browser/standaloneEditor.d.ts +73 -0
  22. package/vscode/src/vs/editor/standalone/browser/standaloneEditor.js +347 -0
  23. package/vscode/src/vs/editor/standalone/browser/standaloneLanguages.d.ts +114 -0
  24. package/vscode/src/vs/editor/standalone/browser/standaloneLanguages.js +444 -0
  25. package/vscode/src/vs/editor/standalone/browser/standaloneWebWorker.d.ts +15 -0
  26. package/vscode/src/vs/editor/standalone/browser/standaloneWebWorker.js +66 -0
  27. package/vscode/src/vs/editor/standalone/common/monarch/monarchCommon.d.ts +72 -0
  28. package/vscode/src/vs/editor/standalone/common/monarch/monarchCommon.js +111 -0
  29. package/vscode/src/vs/editor/standalone/common/monarch/monarchCompile.d.ts +3 -0
  30. package/vscode/src/vs/editor/standalone/common/monarch/monarchCompile.js +476 -0
  31. package/vscode/src/vs/editor/standalone/common/monarch/monarchLexer.d.ts +33 -0
  32. package/vscode/src/vs/editor/standalone/common/monarch/monarchLexer.js +707 -0
  33. package/vscode/src/vs/editor/standalone/common/monarch/monarchTypes.d.ts +46 -0
  34. package/editor.api.d.ts +0 -7
  35. package/monaco.d.ts +0 -10
@@ -0,0 +1,46 @@
1
+ export interface IMonarchLanguage {
2
+ tokenizer: {
3
+ [name: string]: IMonarchLanguageRule[];
4
+ };
5
+ ignoreCase?: boolean;
6
+ unicode?: boolean;
7
+ defaultToken?: string;
8
+ brackets?: IMonarchLanguageBracket[];
9
+ start?: string;
10
+ tokenPostfix?: string;
11
+ includeLF?: boolean;
12
+ [key: string]: any;
13
+ }
14
+ export type IShortMonarchLanguageRule1 = [
15
+ string | RegExp,
16
+ IMonarchLanguageAction
17
+ ];
18
+ export type IShortMonarchLanguageRule2 = [
19
+ string | RegExp,
20
+ IMonarchLanguageAction,
21
+ string
22
+ ];
23
+ export interface IExpandedMonarchLanguageRule {
24
+ regex?: string | RegExp;
25
+ action?: IMonarchLanguageAction;
26
+ include?: string;
27
+ }
28
+ export type IMonarchLanguageRule = IShortMonarchLanguageRule1 | IShortMonarchLanguageRule2 | IExpandedMonarchLanguageRule;
29
+ export type IShortMonarchLanguageAction = string;
30
+ export interface IExpandedMonarchLanguageAction {
31
+ group?: IMonarchLanguageAction[];
32
+ cases?: Object;
33
+ token?: string;
34
+ next?: string;
35
+ switchTo?: string;
36
+ goBack?: number;
37
+ bracket?: string;
38
+ nextEmbedded?: string;
39
+ log?: string;
40
+ }
41
+ export type IMonarchLanguageAction = IShortMonarchLanguageAction | IExpandedMonarchLanguageAction | (IShortMonarchLanguageAction | IExpandedMonarchLanguageAction)[];
42
+ export interface IMonarchLanguageBracket {
43
+ open: string;
44
+ close: string;
45
+ token: string;
46
+ }
package/editor.api.d.ts DELETED
@@ -1,7 +0,0 @@
1
- import { createModelReference, writeFile } from './monaco.js';
2
-
3
- declare module 'vscode/vscode/vs/editor/editor.api' {
4
- namespace editor {
5
- export { createModelReference, writeFile };
6
- }
7
- }
package/monaco.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
2
- export { DisposableStore, IReference } from 'vscode/vscode/vs/base/common/lifecycle';
3
- import { URI } from 'vscode/vscode/vs/base/common/uri';
4
- import { ITextFileEditorModel } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
5
- export { ITextFileEditorModel } from 'vscode/vscode/vs/workbench/services/textfile/common/textfiles';
6
-
7
- declare function writeFile(uri: URI, content: string): Promise<void>;
8
- declare function createModelReference(resource: URI, content?: string): Promise<IReference<ITextFileEditorModel>>;
9
-
10
- export { createModelReference, writeFile };