@codingame/monaco-languageclient-wrapper 1.4.2 → 1.7.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.
Files changed (171) hide show
  1. package/dist/BSV.tmLanguage.js +299 -0
  2. package/dist/COBOL Copybook.js +2017 -0
  3. package/dist/COBOL.js +2017 -0
  4. package/dist/COBOL.tmLanguage.js +149 -0
  5. package/dist/CodinGameMonacoWorkspace.d.ts +13 -0
  6. package/dist/Configuration.d.ts +15 -0
  7. package/dist/Erlang.plist.js +1752 -0
  8. package/dist/JSON.tmLanguage.js +221 -0
  9. package/dist/JSONC.tmLanguage.js +221 -0
  10. package/dist/JavaScript.tmLanguage.js +5894 -0
  11. package/dist/Kotlin.tmLanguage.js +724 -0
  12. package/dist/MagicPython.tmLanguage.js +5340 -0
  13. package/dist/MagicRegExp.tmLanguage.js +505 -0
  14. package/dist/Regular Expressions (JavaScript).tmLanguage.js +166 -0
  15. package/dist/SQL.plist.js +482 -0
  16. package/dist/Scala.tmLanguage.js +1255 -0
  17. package/dist/TypeScript.tmLanguage.js +5641 -0
  18. package/dist/WatchableConsoleWindow.d.ts +22 -0
  19. package/dist/_rollupPluginBabelHelpers.js +54 -0
  20. package/dist/asp-vb-net.tmlanguage.js +247 -0
  21. package/dist/bsv.js +49 -0
  22. package/dist/c.js +18 -0
  23. package/dist/c.tmLanguage.js +3347 -0
  24. package/dist/cabal.tmLanguage.js +66 -0
  25. package/dist/clojure.tmLanguage.js +443 -0
  26. package/dist/codeblock-cabal.js +42 -0
  27. package/dist/codeblock-haskell.js +42 -0
  28. package/dist/codeblock-literate-haskell.js +42 -0
  29. package/dist/codeblock.js +36 -0
  30. package/dist/codeblock2.js +95 -0
  31. package/dist/coffeescript.js +18 -0
  32. package/dist/coffeescript.tmLanguage.js +1324 -0
  33. package/dist/configuration/index.d.ts +5 -0
  34. package/dist/cpp.js +18 -0
  35. package/dist/cpp.tmLanguage.js +19996 -0
  36. package/dist/createLanguageClient.d.ts +3 -3
  37. package/dist/csharp.js +18 -0
  38. package/dist/csharp.tmLanguage.js +4750 -0
  39. package/dist/css.tmLanguage.js +1873 -0
  40. package/dist/css.worker.js +6 -0
  41. package/dist/cssContribution.js +10 -0
  42. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  43. package/dist/d.js +3159 -0
  44. package/dist/dart.js +530 -0
  45. package/dist/diet.js +758 -0
  46. package/dist/diet2.js +92 -0
  47. package/dist/dml.js +169 -0
  48. package/dist/eex.js +55 -0
  49. package/dist/elixir.js +2341 -0
  50. package/dist/elixir2.js +184 -0
  51. package/dist/erlang.js +195 -0
  52. package/dist/expression.js +846 -0
  53. package/dist/extensionConfiguration.d.ts +1 -1
  54. package/dist/extensions/autofold.d.ts +2 -0
  55. package/dist/extensions/cobol.d.ts +2 -0
  56. package/dist/extensions/index.d.ts +2 -0
  57. package/dist/features/cssContribution.d.ts +1 -0
  58. package/dist/features/htmlContribution.d.ts +1 -0
  59. package/dist/features/jsonContribution.d.ts +1 -0
  60. package/dist/features/typescriptContribution.d.ts +1 -0
  61. package/dist/fsharp.js +18 -0
  62. package/dist/fsharp.tmLanguage.js +1811 -0
  63. package/dist/go.tmLanguage.js +1025 -0
  64. package/dist/groovy.js +229 -0
  65. package/dist/groovy.tmLanguage.js +1391 -0
  66. package/dist/haskell.tmLanguage.js +629 -0
  67. package/dist/html (eex).js +31 -0
  68. package/dist/html-derivative.tmLanguage.js +57 -0
  69. package/dist/html.tmLanguage.js +2652 -0
  70. package/dist/html.tmLanguage2.js +97 -0
  71. package/dist/html.worker.js +6 -0
  72. package/dist/htmlContribution.js +10 -0
  73. package/dist/index.d.ts +4 -3
  74. package/dist/inline-styles.js +104 -0
  75. package/dist/inline-template.js +88 -0
  76. package/dist/java.js +18 -0
  77. package/dist/java.tmLanguage.js +1863 -0
  78. package/dist/javascript.js +196 -0
  79. package/dist/javascriptreact.js +196 -0
  80. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  81. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  82. package/dist/json.worker.js +6 -0
  83. package/dist/jsonContribution.js +78 -0
  84. package/dist/keybindings/index.d.ts +2 -0
  85. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  86. package/dist/keybindings/vim.d.ts +3 -0
  87. package/dist/kotlin.js +117 -0
  88. package/dist/kotlinscript.js +117 -0
  89. package/dist/languageClient.d.ts +4 -7
  90. package/dist/languageClientOptions.d.ts +9 -0
  91. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  92. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  93. package/dist/languages/index.d.ts +3 -0
  94. package/dist/languages/monarch/index.d.ts +7 -0
  95. package/dist/languages/monarch/list.d.ts +7 -0
  96. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  97. package/dist/languages/snippets/index.d.ts +1 -0
  98. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  99. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  100. package/dist/languages/textMate/index.d.ts +2 -0
  101. package/dist/literateHaskell.tmLanguage.js +70 -0
  102. package/dist/lua.tmLanguage.js +289 -0
  103. package/dist/main.js +619 -761
  104. package/dist/markdown.js +103 -0
  105. package/dist/markdown.tmLanguage.js +2784 -0
  106. package/dist/merlin.js +111 -0
  107. package/dist/monaco.d.ts +8 -0
  108. package/dist/objective-c.tmLanguage.js +3618 -0
  109. package/dist/ocaml-hover-info.js +34 -0
  110. package/dist/ocaml-hover-type.js +24 -0
  111. package/dist/ocaml-markdown-codeblock.js +42 -0
  112. package/dist/ocaml.js +2979 -0
  113. package/dist/ocamlbuild.js +239 -0
  114. package/dist/opam.js +149 -0
  115. package/dist/pascal.js +382 -0
  116. package/dist/pascal.tmLanguage.js +169 -0
  117. package/dist/perl.tmLanguage.js +2986 -0
  118. package/dist/perl6.tmLanguage.js +323 -0
  119. package/dist/pgsql.tmLanguage.js +284 -0
  120. package/dist/php.js +265 -0
  121. package/dist/php.tmLanguage.js +3791 -0
  122. package/dist/platform.tmLanguage.js +1135 -0
  123. package/dist/powershell.js +18 -0
  124. package/dist/powershell.tmLanguage.js +1037 -0
  125. package/dist/r.tmLanguage.js +551 -0
  126. package/dist/reason-hover-info.js +34 -0
  127. package/dist/reason-hover-signature.js +21 -0
  128. package/dist/reason-hover-type.js +21 -0
  129. package/dist/reason-markdown-codeblock.js +42 -0
  130. package/dist/reason.js +100 -0
  131. package/dist/ruby.tmLanguage.js +2784 -0
  132. package/dist/rust.tmLanguage.js +1178 -0
  133. package/dist/sassdoc.tmLanguage.js +362 -0
  134. package/dist/scss.tmLanguage.js +1887 -0
  135. package/dist/sdc.tmLanguage.js +712 -0
  136. package/dist/sdl.js +162 -0
  137. package/dist/services/EditorModelResolverService.d.ts +8 -0
  138. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  139. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  140. package/dist/sql.js +21 -0
  141. package/dist/staticOptions.d.ts +4 -8
  142. package/dist/stub-generator.js +15 -0
  143. package/dist/swift.js +183 -0
  144. package/dist/swift.tmLanguage.js +3288 -0
  145. package/dist/systemverilog.js +208 -0
  146. package/dist/systemverilog.tmLanguage.js +1067 -0
  147. package/dist/tcl.js +151 -0
  148. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  149. package/dist/template.js +207 -0
  150. package/dist/theme/index.d.ts +3 -0
  151. package/dist/theme/registry.d.ts +4 -0
  152. package/dist/theme/semanticHighlight.d.ts +1 -0
  153. package/dist/theme/tools.d.ts +13 -0
  154. package/dist/tools.d.ts +3 -0
  155. package/dist/ts.worker.js +6 -0
  156. package/dist/typescript.js +312 -0
  157. package/dist/typescriptContribution.js +36 -0
  158. package/dist/typescriptreact.js +312 -0
  159. package/dist/ucf.tmLanguage.js +36 -0
  160. package/dist/vb.js +88 -0
  161. package/dist/verilog.js +432 -0
  162. package/dist/verilog.tmLanguage.js +321 -0
  163. package/dist/worker.d.ts +6 -0
  164. package/dist/worker.js +54 -0
  165. package/dist/xml.tmLanguage.js +395 -0
  166. package/dist/xsl.tmLanguage.js +102 -0
  167. package/dist/yaml.tmLanguage.js +629 -0
  168. package/package.json +17 -14
  169. package/stats.html +1 -1
  170. package/dist/monaco-languageclient-wrapper.d.ts +0 -1478
  171. package/dist/tsdoc-metadata.json +0 -11
@@ -0,0 +1,78 @@
1
+ import { _ as _objectSpread2 } from './_rollupPluginBabelHelpers.js';
2
+ import 'monaco-editor/esm/vs/language/json/monaco.contribution';
3
+ import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
4
+ import { r as registerWorkerLoader } from './worker.js';
5
+
6
+ const schemasById = monaco.extra.Registry.as(monaco.extra.JsonContributionExtensions.JSONContribution).getSchemaContributions().schemas; // Hack because the commands are filled by a code not run in monaco-editor
7
+
8
+ {
9
+ const allCommands = monaco.extra.CommandsRegistry.getCommands();
10
+ const keybindingsCommandSchema = schemasById['vscode://schemas/keybindings'].items.properties.command.anyOf[0];
11
+ keybindingsCommandSchema.enum = Array.from(allCommands.keys());
12
+ keybindingsCommandSchema.enumDescriptions = Array.from(allCommands.values()).map(command => {
13
+ var _command$description;
14
+
15
+ return (_command$description = command.description) === null || _command$description === void 0 ? void 0 : _command$description.description;
16
+ });
17
+ }
18
+ const vimKeybindingsSchema = {
19
+ type: 'object',
20
+ properties: {
21
+ before: {
22
+ type: 'array',
23
+ items: {
24
+ type: 'string'
25
+ }
26
+ },
27
+ after: {
28
+ type: 'array',
29
+ items: {
30
+ type: 'string'
31
+ }
32
+ }
33
+ }
34
+ };
35
+ monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
36
+ comments: 'ignore',
37
+ validate: true,
38
+ schemas: [{
39
+ uri: 'vscode://schemas/settings/resourceLanguage',
40
+ schema: schemasById['vscode://schemas/settings/resourceLanguage']
41
+ }, {
42
+ uri: 'vscode://schemas/keybindings',
43
+ fileMatch: ['file:///keybindings.json'],
44
+ schema: schemasById['vscode://schemas/keybindings']
45
+ }, {
46
+ uri: 'vscode://schemas/settings/user',
47
+ fileMatch: ['file:///settings.json'],
48
+ schema: {
49
+ properties: _objectSpread2(_objectSpread2({}, monaco.extra.allSettings.properties), {}, {
50
+ 'vim.normalModeKeyBindings': {
51
+ type: 'array',
52
+ description: 'Remapped keys in Normal mode.',
53
+ items: vimKeybindingsSchema
54
+ },
55
+ 'vim.insertModeKeyBindings': {
56
+ type: 'array',
57
+ description: 'Remapped keys in Insert mode.',
58
+ items: vimKeybindingsSchema
59
+ },
60
+ 'vim.visualModeKeyBindings': {
61
+ type: 'array',
62
+ description: 'Remapped keys in Visual mode.',
63
+ items: vimKeybindingsSchema
64
+ }
65
+ }),
66
+ patternProperties: monaco.extra.allSettings.patternProperties,
67
+ additionalProperties: true,
68
+ allowTrailingCommas: true,
69
+ allowComments: true
70
+ }
71
+ }]
72
+ });
73
+
74
+ const workerLoader = async () => (await import(
75
+ /* webpackChunkName: "MonacoJsonWorker" */
76
+ './json.worker.js').then(module => module)).default;
77
+
78
+ registerWorkerLoader('json', workerLoader);
@@ -0,0 +1,2 @@
1
+ import * as monaco from 'monaco-editor';
2
+ export declare function updateEditorKeybindings(editor: monaco.editor.IStandaloneCodeEditor, keyBindingsMode: "vim" | "classic" | "emacs" | undefined, statusBarElement: Element, keyBindings?: monaco.extra.IUserFriendlyKeybinding[]): monaco.IDisposable;
@@ -0,0 +1,2 @@
1
+ import * as monaco from 'monaco-editor';
2
+ export declare function updateKeybindings(editor: monaco.editor.IStandaloneCodeEditor, bindings: monaco.extra.IUserFriendlyKeybinding[]): void;
@@ -0,0 +1,3 @@
1
+ import { IDisposable } from 'monaco-editor';
2
+ import * as monaco from 'monaco-editor';
3
+ export declare function initVimMode(editor: monaco.editor.IStandaloneCodeEditor, statusBarElement: Element): IDisposable;
package/dist/kotlin.js ADDED
@@ -0,0 +1,117 @@
1
+ var fun = {
2
+ prefix: "fun",
3
+ body: [
4
+ "fun ${1:foo}() = ${0}"
5
+ ],
6
+ description: "One line fucntion"
7
+ };
8
+ var fun2 = {
9
+ prefix: "fun",
10
+ body: [
11
+ "fun ${1:foo}(${2:bar}: ${3:Any}, ${4:baz}: ${5:Any}): ${6:Unit} {",
12
+ "\t${0}",
13
+ "}"
14
+ ],
15
+ description: "Function with 2 parameters"
16
+ };
17
+ var fun1 = {
18
+ prefix: "fun",
19
+ body: [
20
+ "fun ${1:foo}(${2:bar}: ${3:Any}): ${4:Unit} {",
21
+ "\t${0}",
22
+ "}"
23
+ ],
24
+ description: "Function with 1 parameter"
25
+ };
26
+ var fun0 = {
27
+ prefix: "fun",
28
+ body: [
29
+ "fun ${1:foo}(): Unit {",
30
+ "\t${0}",
31
+ "}"
32
+ ],
33
+ description: "Function with 0 parameters"
34
+ };
35
+ var main = {
36
+ prefix: "main",
37
+ body: [
38
+ "fun main(args: Array<String>) {",
39
+ "\t${0}",
40
+ "}"
41
+ ],
42
+ description: "main() function"
43
+ };
44
+ var class1 = {
45
+ prefix: "class",
46
+ body: [
47
+ "class ${1:foo}(${2:bar}) {",
48
+ "\t${0}",
49
+ "}"
50
+ ],
51
+ description: "Class with constructor"
52
+ };
53
+ var data = {
54
+ prefix: "class",
55
+ body: [
56
+ "data class ${1:foo}(${0})"
57
+ ],
58
+ description: "Empty data class"
59
+ };
60
+ var singleton = {
61
+ prefix: "singleton",
62
+ body: [
63
+ "object ${1:foo} {",
64
+ "\t${0}",
65
+ "}"
66
+ ],
67
+ description: "Empty singleton"
68
+ };
69
+ var kotlin = {
70
+ fun: fun,
71
+ fun2: fun2,
72
+ fun1: fun1,
73
+ fun0: fun0,
74
+ "void": {
75
+ prefix: "void",
76
+ body: [
77
+ "fun ${1:foo}() {",
78
+ "\t${0}",
79
+ "}"
80
+ ],
81
+ description: "Function that returns nothing"
82
+ },
83
+ main: main,
84
+ "for": {
85
+ prefix: "for",
86
+ body: [
87
+ "for (${1:i} in ${2:iterable}) {",
88
+ "\t${0}",
89
+ "}"
90
+ ]
91
+ },
92
+ "try": {
93
+ prefix: "try",
94
+ body: [
95
+ "try {",
96
+ "\t${0}",
97
+ "}",
98
+ "catch(Exception e) {",
99
+ "\t${0}",
100
+ "}"
101
+ ]
102
+ },
103
+ "class": {
104
+ prefix: "class",
105
+ body: [
106
+ "class ${1:foo} {",
107
+ "\t${0}",
108
+ "}"
109
+ ],
110
+ description: "Class without contructor"
111
+ },
112
+ class1: class1,
113
+ data: data,
114
+ singleton: singleton
115
+ };
116
+
117
+ export { class1, data, kotlin as default, fun, fun0, fun1, fun2, main, singleton };
@@ -0,0 +1,117 @@
1
+ var fun = {
2
+ prefix: "fun",
3
+ body: [
4
+ "fun ${1:foo}() = ${0}"
5
+ ],
6
+ description: "One line fucntion"
7
+ };
8
+ var fun2 = {
9
+ prefix: "fun",
10
+ body: [
11
+ "fun ${1:foo}(${2:bar}: ${3:Any}, ${4:baz}: ${5:Any}): ${6:Unit} {",
12
+ "\t${0}",
13
+ "}"
14
+ ],
15
+ description: "Function with 2 parameters"
16
+ };
17
+ var fun1 = {
18
+ prefix: "fun",
19
+ body: [
20
+ "fun ${1:foo}(${2:bar}: ${3:Any}): ${4:Unit} {",
21
+ "\t${0}",
22
+ "}"
23
+ ],
24
+ description: "Function with 1 parameter"
25
+ };
26
+ var fun0 = {
27
+ prefix: "fun",
28
+ body: [
29
+ "fun ${1:foo}(): Unit {",
30
+ "\t${0}",
31
+ "}"
32
+ ],
33
+ description: "Function with 0 parameters"
34
+ };
35
+ var main = {
36
+ prefix: "main",
37
+ body: [
38
+ "fun main(args: Array<String>) {",
39
+ "\t${0}",
40
+ "}"
41
+ ],
42
+ description: "main() function"
43
+ };
44
+ var class1 = {
45
+ prefix: "class",
46
+ body: [
47
+ "class ${1:foo}(${2:bar}) {",
48
+ "\t${0}",
49
+ "}"
50
+ ],
51
+ description: "Class with constructor"
52
+ };
53
+ var data = {
54
+ prefix: "class",
55
+ body: [
56
+ "data class ${1:foo}(${0})"
57
+ ],
58
+ description: "Empty data class"
59
+ };
60
+ var singleton = {
61
+ prefix: "singleton",
62
+ body: [
63
+ "object ${1:foo} {",
64
+ "\t${0}",
65
+ "}"
66
+ ],
67
+ description: "Empty singleton"
68
+ };
69
+ var kotlinscript = {
70
+ fun: fun,
71
+ fun2: fun2,
72
+ fun1: fun1,
73
+ fun0: fun0,
74
+ "void": {
75
+ prefix: "void",
76
+ body: [
77
+ "fun ${1:foo}() {",
78
+ "\t${0}",
79
+ "}"
80
+ ],
81
+ description: "Function that returns nothing"
82
+ },
83
+ main: main,
84
+ "for": {
85
+ prefix: "for",
86
+ body: [
87
+ "for (${1:i} in ${2:iterable}) {",
88
+ "\t${0}",
89
+ "}"
90
+ ]
91
+ },
92
+ "try": {
93
+ prefix: "try",
94
+ body: [
95
+ "try {",
96
+ "\t${0}",
97
+ "}",
98
+ "catch(Exception e) {",
99
+ "\t${0}",
100
+ "}"
101
+ ]
102
+ },
103
+ "class": {
104
+ prefix: "class",
105
+ body: [
106
+ "class ${1:foo} {",
107
+ "\t${0}",
108
+ "}"
109
+ ],
110
+ description: "Class without contructor"
111
+ },
112
+ class1: class1,
113
+ data: data,
114
+ singleton: singleton
115
+ };
116
+
117
+ export { class1, data, kotlinscript as default, fun, fun0, fun1, fun2, main, singleton };
@@ -1,14 +1,11 @@
1
1
  import { MonacoLanguageClient, Emitter, Event, TextDocument } from '@codingame/monaco-languageclient';
2
- import { LanguageClientId, StaticLanguageClientOptions } from './staticOptions';
3
2
  import { WillShutdownParams } from './extensions';
4
- declare type Status = {
5
- type: string;
6
- message: string;
7
- };
3
+ import { LanguageClientId, LanguageClientOptions } from './languageClientOptions';
8
4
  export interface LanguageClient {
9
5
  sendNotification(method: string, params: unknown): void;
10
6
  sendRequest<R>(method: string, params: unknown): Promise<R>;
11
7
  }
8
+ declare type Status = 'ready' | 'error' | 'connecting' | 'connected' | 'closed';
12
9
  export interface StatusChangeEvent {
13
10
  status: Status;
14
11
  }
@@ -26,8 +23,8 @@ export declare class LanguageClientManager implements LanguageClient {
26
23
  protected readonly onErrorEmitter: Emitter<Error>;
27
24
  protected readonly onWillCloseEmitter: Emitter<void>;
28
25
  protected readonly onWillShutdownEmitter: Emitter<WillShutdownParams>;
29
- protected currentStatus?: Status;
30
- constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: StaticLanguageClientOptions, libraryUrls: string[], useMutualizedProxy: boolean);
26
+ protected currentStatus: Status;
27
+ constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: LanguageClientOptions, libraryUrls: string[], useMutualizedProxy: boolean);
31
28
  private updateStatus;
32
29
  private notifyStatusChanged;
33
30
  isReady(): boolean;
@@ -0,0 +1,9 @@
1
+ import { Disposable, LanguageClientOptions as MonacoLanguageClientOptions } from '@codingame/monaco-languageclient';
2
+ import { StaticLanguageClientId } from './staticOptions';
3
+ export declare type LanguageClientOptions = Pick<MonacoLanguageClientOptions, 'documentSelector' | 'synchronize' | 'initializationOptions' | 'middleware'> & {
4
+ vscodeExtensionIds?: string[];
5
+ mutualizable: boolean;
6
+ };
7
+ export declare function registerLanguageClient(id: string, options: LanguageClientOptions): Disposable;
8
+ export declare type LanguageClientId = StaticLanguageClientId | string;
9
+ export declare function getLanguageClientOptions(id: LanguageClientId): LanguageClientOptions;