@codingame/monaco-languageclient-wrapper 1.4.0 → 1.4.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 (167) 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/csharp.js +18 -0
  37. package/dist/csharp.tmLanguage.js +4750 -0
  38. package/dist/css.tmLanguage.js +1873 -0
  39. package/dist/css.worker.js +6 -0
  40. package/dist/cssContribution.js +10 -0
  41. package/dist/cuda-cpp.tmLanguage.js +19993 -0
  42. package/dist/d.js +3159 -0
  43. package/dist/dart.js +530 -0
  44. package/dist/diet.js +758 -0
  45. package/dist/diet2.js +92 -0
  46. package/dist/dml.js +169 -0
  47. package/dist/eex.js +55 -0
  48. package/dist/elixir.js +2341 -0
  49. package/dist/elixir2.js +184 -0
  50. package/dist/erlang.js +195 -0
  51. package/dist/expression.js +846 -0
  52. package/dist/extensionConfiguration.d.ts +6 -1
  53. package/dist/extensions/autofold.d.ts +2 -0
  54. package/dist/extensions/cobol.d.ts +2 -0
  55. package/dist/extensions/index.d.ts +2 -0
  56. package/dist/features/cssContribution.d.ts +1 -0
  57. package/dist/features/htmlContribution.d.ts +1 -0
  58. package/dist/features/jsonContribution.d.ts +1 -0
  59. package/dist/features/typescriptContribution.d.ts +1 -0
  60. package/dist/fsharp.js +18 -0
  61. package/dist/fsharp.tmLanguage.js +1811 -0
  62. package/dist/go.tmLanguage.js +1025 -0
  63. package/dist/groovy.js +229 -0
  64. package/dist/groovy.tmLanguage.js +1391 -0
  65. package/dist/haskell.tmLanguage.js +629 -0
  66. package/dist/html (eex).js +31 -0
  67. package/dist/html-derivative.tmLanguage.js +57 -0
  68. package/dist/html.tmLanguage.js +2652 -0
  69. package/dist/html.tmLanguage2.js +97 -0
  70. package/dist/html.worker.js +6 -0
  71. package/dist/htmlContribution.js +10 -0
  72. package/dist/inline-styles.js +104 -0
  73. package/dist/inline-template.js +88 -0
  74. package/dist/java.js +18 -0
  75. package/dist/java.tmLanguage.js +1863 -0
  76. package/dist/javascript.js +196 -0
  77. package/dist/javascriptreact.js +196 -0
  78. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  79. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  80. package/dist/json.worker.js +6 -0
  81. package/dist/jsonContribution.js +78 -0
  82. package/dist/keybindings/index.d.ts +2 -0
  83. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  84. package/dist/keybindings/vim.d.ts +3 -0
  85. package/dist/kotlin.js +117 -0
  86. package/dist/kotlinscript.js +117 -0
  87. package/dist/languageClient.d.ts +16 -4
  88. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  89. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  90. package/dist/languages/index.d.ts +3 -0
  91. package/dist/languages/monarch/index.d.ts +7 -0
  92. package/dist/languages/monarch/list.d.ts +7 -0
  93. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  94. package/dist/languages/snippets/index.d.ts +1 -0
  95. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  96. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  97. package/dist/languages/textMate/index.d.ts +2 -0
  98. package/dist/literateHaskell.tmLanguage.js +70 -0
  99. package/dist/lua.tmLanguage.js +289 -0
  100. package/dist/main.js +56 -21
  101. package/dist/markdown.js +103 -0
  102. package/dist/markdown.tmLanguage.js +2784 -0
  103. package/dist/merlin.js +111 -0
  104. package/dist/monaco.d.ts +8 -0
  105. package/dist/objective-c.tmLanguage.js +3618 -0
  106. package/dist/ocaml-hover-info.js +34 -0
  107. package/dist/ocaml-hover-type.js +24 -0
  108. package/dist/ocaml-markdown-codeblock.js +42 -0
  109. package/dist/ocaml.js +2979 -0
  110. package/dist/ocamlbuild.js +239 -0
  111. package/dist/opam.js +149 -0
  112. package/dist/pascal.js +382 -0
  113. package/dist/pascal.tmLanguage.js +169 -0
  114. package/dist/perl.tmLanguage.js +2986 -0
  115. package/dist/perl6.tmLanguage.js +323 -0
  116. package/dist/pgsql.tmLanguage.js +284 -0
  117. package/dist/php.js +265 -0
  118. package/dist/php.tmLanguage.js +3791 -0
  119. package/dist/platform.tmLanguage.js +1135 -0
  120. package/dist/powershell.js +18 -0
  121. package/dist/powershell.tmLanguage.js +1037 -0
  122. package/dist/r.tmLanguage.js +551 -0
  123. package/dist/reason-hover-info.js +34 -0
  124. package/dist/reason-hover-signature.js +21 -0
  125. package/dist/reason-hover-type.js +21 -0
  126. package/dist/reason-markdown-codeblock.js +42 -0
  127. package/dist/reason.js +100 -0
  128. package/dist/ruby.tmLanguage.js +2784 -0
  129. package/dist/rust.tmLanguage.js +1178 -0
  130. package/dist/sassdoc.tmLanguage.js +362 -0
  131. package/dist/scss.tmLanguage.js +1887 -0
  132. package/dist/sdc.tmLanguage.js +712 -0
  133. package/dist/sdl.js +162 -0
  134. package/dist/services/EditorModelResolverService.d.ts +8 -0
  135. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  136. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  137. package/dist/sql.js +21 -0
  138. package/dist/stub-generator.js +15 -0
  139. package/dist/swift.js +183 -0
  140. package/dist/swift.tmLanguage.js +3288 -0
  141. package/dist/systemverilog.js +208 -0
  142. package/dist/systemverilog.tmLanguage.js +1067 -0
  143. package/dist/tcl.js +151 -0
  144. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  145. package/dist/template.js +207 -0
  146. package/dist/theme/index.d.ts +3 -0
  147. package/dist/theme/registry.d.ts +4 -0
  148. package/dist/theme/semanticHighlight.d.ts +1 -0
  149. package/dist/theme/tools.d.ts +13 -0
  150. package/dist/tools.d.ts +3 -0
  151. package/dist/ts.worker.js +6 -0
  152. package/dist/typescript.js +312 -0
  153. package/dist/typescriptContribution.js +36 -0
  154. package/dist/typescriptreact.js +312 -0
  155. package/dist/ucf.tmLanguage.js +36 -0
  156. package/dist/vb.js +88 -0
  157. package/dist/verilog.js +432 -0
  158. package/dist/verilog.tmLanguage.js +321 -0
  159. package/dist/worker.d.ts +6 -0
  160. package/dist/worker.js +54 -0
  161. package/dist/xml.tmLanguage.js +395 -0
  162. package/dist/xsl.tmLanguage.js +102 -0
  163. package/dist/yaml.tmLanguage.js +629 -0
  164. package/package.json +1 -1
  165. package/stats.html +1 -1
  166. package/dist/monaco-languageclient-wrapper.d.ts +0 -1478
  167. package/dist/tsdoc-metadata.json +0 -11
@@ -0,0 +1,3 @@
1
+ import './snippets';
2
+ declare function getMonacoLanguage(languageOrModeId: string): string;
3
+ export { getMonacoLanguage };
@@ -0,0 +1,7 @@
1
+ import * as monaco from 'monaco-editor';
2
+ interface MonarchLanguage {
3
+ conf?: monaco.languages.LanguageConfiguration;
4
+ language: monaco.languages.IMonarchLanguage;
5
+ }
6
+ export declare const languageLoader: Partial<Record<string, () => Promise<MonarchLanguage>>>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import * as monaco from 'monaco-editor';
2
+ interface Language {
3
+ conf?: monaco.languages.LanguageConfiguration;
4
+ monarch: monaco.languages.IMonarchLanguage;
5
+ }
6
+ declare const languages: Partial<Record<string, Language>>;
7
+ export default languages;
@@ -0,0 +1,2 @@
1
+ import * as monaco from 'monaco-editor';
2
+ export declare const language: monaco.languages.IMonarchLanguage;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import * as monaco from 'monaco-editor';
2
+ export declare type GrammarLoader = Partial<Record<string, () => Promise<object>>>;
3
+ export default class CGTMGrammarFactory extends monaco.extra.TMGrammarFactory {
4
+ constructor(grammarDefinitions: monaco.extra.IValidGrammarDefinition[], scopeGrammarLoader: GrammarLoader, onigasmBinaryUrl: string);
5
+ }
@@ -0,0 +1,11 @@
1
+ import { IGrammar } from 'vscode-textmate';
2
+ import * as monaco from 'monaco-editor';
3
+ export default class TextMateTokensProvider extends monaco.Disposable implements monaco.languages.EncodedTokensProvider {
4
+ private grammar;
5
+ private maxTokenizationLineLength;
6
+ constructor(grammar: IGrammar, languageId: string);
7
+ getInitialState(): monaco.languages.IState;
8
+ tokenizeEncoded(line: string, state: monaco.languages.IState): monaco.languages.IEncodedLineTokens;
9
+ private toMonacoToken;
10
+ tokenize(line: string, state: monaco.languages.IState): monaco.languages.ILineTokens;
11
+ }
@@ -0,0 +1,2 @@
1
+ import * as monaco from 'monaco-editor';
2
+ export declare function createTextMateTokensProvider(languageId: string): Promise<monaco.languages.ITokenizationSupport>;
@@ -0,0 +1,70 @@
1
+ var fileTypes = [
2
+ "lhs"
3
+ ];
4
+ var keyEquivalent = "^~H";
5
+ var name = "Literate Haskell";
6
+ var patterns = [
7
+ {
8
+ begin: "^((\\\\)begin)({)code(})(\\s*\\n)?",
9
+ captures: {
10
+ "1": {
11
+ name: "support.function.be.latex"
12
+ },
13
+ "2": {
14
+ name: "punctuation.definition.function.latex"
15
+ },
16
+ "3": {
17
+ name: "punctuation.definition.arguments.begin.latex"
18
+ },
19
+ "4": {
20
+ name: "punctuation.definition.arguments.end.latex"
21
+ }
22
+ },
23
+ contentName: "source.haskell.embedded.latex",
24
+ end: "^((\\\\)end)({)code(})",
25
+ name: "meta.embedded.block.haskell.latex",
26
+ patterns: [
27
+ {
28
+ include: "source.haskell"
29
+ }
30
+ ]
31
+ },
32
+ {
33
+ begin: "^(> )",
34
+ beginCaptures: {
35
+ "1": {
36
+ name: "punctuation.definition.bird-track.haskell"
37
+ }
38
+ },
39
+ comment: "This breaks type signature detection for now, but it's better than having no highlighting whatsoever.",
40
+ contentName: "source.haskell",
41
+ end: "$",
42
+ name: "meta.embedded.haskell",
43
+ patterns: [
44
+ {
45
+ include: "source.haskell"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ include: "text.tex.latex"
51
+ }
52
+ ];
53
+ var scopeName = "text.tex.latex.haskell";
54
+ var uuid = "439807F5-7129-487D-B5DC-95D5272B43DD";
55
+ var information_for_contributors = [
56
+ "This file has been converted from https://github.com/JustusAdam/language-haskell/blob/df29e5733bd5b31c59af7404306e0759431c33ea/",
57
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
58
+ "Once accepted there, we are happy to receive an update request."
59
+ ];
60
+ var literateHaskell_tmLanguage = {
61
+ fileTypes: fileTypes,
62
+ keyEquivalent: keyEquivalent,
63
+ name: name,
64
+ patterns: patterns,
65
+ scopeName: scopeName,
66
+ uuid: uuid,
67
+ information_for_contributors: information_for_contributors
68
+ };
69
+
70
+ export { literateHaskell_tmLanguage as default, fileTypes, information_for_contributors, keyEquivalent, name, patterns, scopeName, uuid };
@@ -0,0 +1,289 @@
1
+ var information_for_contributors = [
2
+ "This file has been converted from https://github.com/microsoft/vscode/blob/master/extensions/lua/",
3
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
4
+ "Once accepted there, we are happy to receive an update request."
5
+ ];
6
+ var version = "https://github.com/textmate/lua.tmbundle/commit/8ae5641365b28f697121ba1133890e8d81f5b00e";
7
+ var name = "Lua";
8
+ var scopeName = "source.lua";
9
+ var patterns = [
10
+ {
11
+ begin: "\\b(?:(local)\\s+)?(function)\\s*(?:\\s+([a-zA-Z_][a-zA-Z0-9_]*(?:([\\.:])[a-zA-Z_][a-zA-Z0-9_]*)?)\\s*)?(\\()",
12
+ beginCaptures: {
13
+ "1": {
14
+ name: "storage.modifier.local.lua"
15
+ },
16
+ "2": {
17
+ name: "keyword.control.lua"
18
+ },
19
+ "3": {
20
+ name: "entity.name.function.lua"
21
+ },
22
+ "4": {
23
+ name: "punctuation.separator.parameter.lua"
24
+ },
25
+ "5": {
26
+ name: "punctuation.definition.parameters.begin.lua"
27
+ }
28
+ },
29
+ end: "\\)",
30
+ endCaptures: {
31
+ "0": {
32
+ name: "punctuation.definition.parameters.end.lua"
33
+ }
34
+ },
35
+ name: "meta.function.lua",
36
+ patterns: [
37
+ {
38
+ match: "[a-zA-Z_][a-zA-Z0-9_]*",
39
+ name: "variable.parameter.function.lua"
40
+ },
41
+ {
42
+ match: ",",
43
+ name: "punctuation.separator.arguments.lua"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ match: "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])",
49
+ name: "constant.numeric.integer.hexadecimal.lua"
50
+ },
51
+ {
52
+ match: "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(\\.[0-9A-Fa-f]+)?([eE]-?\\d*)?([pP][-+]\\d+)?",
53
+ name: "constant.numeric.float.hexadecimal.lua"
54
+ },
55
+ {
56
+ match: "(?<![\\w\\d.])\\d+(?![pPeE.0-9])",
57
+ name: "constant.numeric.integer.lua"
58
+ },
59
+ {
60
+ match: "(?<![\\w\\d.])\\d+(\\.\\d+)?([eE]-?\\d*)?",
61
+ name: "constant.numeric.float.lua"
62
+ },
63
+ {
64
+ begin: "'",
65
+ beginCaptures: {
66
+ "0": {
67
+ name: "punctuation.definition.string.begin.lua"
68
+ }
69
+ },
70
+ end: "'",
71
+ endCaptures: {
72
+ "0": {
73
+ name: "punctuation.definition.string.end.lua"
74
+ }
75
+ },
76
+ name: "string.quoted.single.lua",
77
+ patterns: [
78
+ {
79
+ include: "#escaped_char"
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ begin: "\"",
85
+ beginCaptures: {
86
+ "0": {
87
+ name: "punctuation.definition.string.begin.lua"
88
+ }
89
+ },
90
+ end: "\"",
91
+ endCaptures: {
92
+ "0": {
93
+ name: "punctuation.definition.string.end.lua"
94
+ }
95
+ },
96
+ name: "string.quoted.double.lua",
97
+ patterns: [
98
+ {
99
+ include: "#escaped_char"
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ begin: "(?<=\\.cdef)\\s*(\\[(=*)\\[)",
105
+ beginCaptures: {
106
+ "0": {
107
+ name: "string.quoted.other.multiline.lua"
108
+ },
109
+ "1": {
110
+ name: "punctuation.definition.string.begin.lua"
111
+ }
112
+ },
113
+ contentName: "meta.embedded.lua",
114
+ end: "(\\]\\2\\])",
115
+ endCaptures: {
116
+ "0": {
117
+ name: "string.quoted.other.multiline.lua"
118
+ },
119
+ "1": {
120
+ name: "punctuation.definition.string.end.lua"
121
+ }
122
+ },
123
+ patterns: [
124
+ {
125
+ include: "source.c"
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ begin: "(?<!--)\\[(=*)\\[",
131
+ beginCaptures: {
132
+ "0": {
133
+ name: "punctuation.definition.string.begin.lua"
134
+ }
135
+ },
136
+ end: "\\]\\1\\]",
137
+ endCaptures: {
138
+ "0": {
139
+ name: "punctuation.definition.string.end.lua"
140
+ }
141
+ },
142
+ name: "string.quoted.other.multiline.lua"
143
+ },
144
+ {
145
+ captures: {
146
+ "1": {
147
+ name: "punctuation.definition.comment.lua"
148
+ }
149
+ },
150
+ match: "\\A(#!).*$\\n?",
151
+ name: "comment.line.shebang.lua"
152
+ },
153
+ {
154
+ begin: "(^[ \\t]+)?(?=--)",
155
+ beginCaptures: {
156
+ "1": {
157
+ name: "punctuation.whitespace.comment.leading.lua"
158
+ }
159
+ },
160
+ end: "(?!\\G)((?!^)[ \\t]+\\n)?",
161
+ endCaptures: {
162
+ "1": {
163
+ name: "punctuation.whitespace.comment.trailing.lua"
164
+ }
165
+ },
166
+ patterns: [
167
+ {
168
+ begin: "--\\[(=*)\\[",
169
+ beginCaptures: {
170
+ "0": {
171
+ name: "punctuation.definition.comment.begin.lua"
172
+ }
173
+ },
174
+ end: "\\]\\1\\]",
175
+ endCaptures: {
176
+ "0": {
177
+ name: "punctuation.definition.comment.end.lua"
178
+ }
179
+ },
180
+ name: "comment.block.lua"
181
+ },
182
+ {
183
+ begin: "--",
184
+ beginCaptures: {
185
+ "0": {
186
+ name: "punctuation.definition.comment.lua"
187
+ }
188
+ },
189
+ end: "\\n",
190
+ name: "comment.line.double-dash.lua"
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ captures: {
196
+ "1": {
197
+ name: "keyword.control.goto.lua"
198
+ },
199
+ "2": {
200
+ name: "constant.other.placeholder.lua"
201
+ }
202
+ },
203
+ match: "\\b(goto)\\s+([a-zA-Z_][a-zA-Z0-9_]*)"
204
+ },
205
+ {
206
+ captures: {
207
+ "1": {
208
+ name: "punctuation.definition.label.begin.lua"
209
+ },
210
+ "2": {
211
+ name: "punctuation.definition.label.end.lua"
212
+ }
213
+ },
214
+ match: "(::)[a-zA-Z_][a-zA-Z0-9_]*(::)",
215
+ name: "constant.other.placeholder.lua"
216
+ },
217
+ {
218
+ match: "\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|function|local|in)\\b",
219
+ name: "keyword.control.lua"
220
+ },
221
+ {
222
+ match: "(?<![^.]\\.|:)\\b(false|nil|true|_G|_VERSION|math\\.(pi|huge))\\b|(?<![.])\\.{3}(?!\\.)",
223
+ name: "constant.language.lua"
224
+ },
225
+ {
226
+ match: "(?<![^.]\\.|:)\\b(self)\\b",
227
+ name: "variable.language.self.lua"
228
+ },
229
+ {
230
+ match: "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?=\\s*(?:[({\"']|\\[\\[))",
231
+ name: "support.function.lua"
232
+ },
233
+ {
234
+ match: "(?<![^.]\\.|:)\\b(coroutine\\.(create|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\\.(concat|insert|maxn|remove|sort)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(cpath|loaded|loadlib|path|preload|seeall)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\\b(?=\\s*(?:[({\"']|\\[\\[))",
235
+ name: "support.function.library.lua"
236
+ },
237
+ {
238
+ match: "\\b(and|or|not)\\b",
239
+ name: "keyword.operator.lua"
240
+ },
241
+ {
242
+ match: "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
243
+ name: "support.function.any-method.lua"
244
+ },
245
+ {
246
+ match: "(?<=[^.]\\.|:)\\b([a-zA-Z_][a-zA-Z0-9_]*)",
247
+ name: "variable.other.lua"
248
+ },
249
+ {
250
+ match: "\\+|-|%|#|\\*|\\/|\\^|==?|~=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
251
+ name: "keyword.operator.lua"
252
+ }
253
+ ];
254
+ var repository = {
255
+ escaped_char: {
256
+ patterns: [
257
+ {
258
+ match: "\\\\[abfnrtvz\\\\\"'\\n]",
259
+ name: "constant.character.escape.lua"
260
+ },
261
+ {
262
+ match: "\\\\\\d{1,3}",
263
+ name: "constant.character.escape.byte.lua"
264
+ },
265
+ {
266
+ match: "\\\\x[0-9A-Fa-f][0-9A-Fa-f]",
267
+ name: "constant.character.escape.byte.lua"
268
+ },
269
+ {
270
+ match: "\\\\u\\{[0-9A-Fa-f]+\\}",
271
+ name: "constant.character.escape.unicode.lua"
272
+ },
273
+ {
274
+ match: "\\\\.",
275
+ name: "invalid.illegal.character.escape.lua"
276
+ }
277
+ ]
278
+ }
279
+ };
280
+ var lua_tmLanguage = {
281
+ information_for_contributors: information_for_contributors,
282
+ version: version,
283
+ name: name,
284
+ scopeName: scopeName,
285
+ patterns: patterns,
286
+ repository: repository
287
+ };
288
+
289
+ export { lua_tmLanguage as default, information_for_contributors, name, patterns, repository, scopeName, version };
package/dist/main.js CHANGED
@@ -315,8 +315,9 @@ const staticOptions = asLanguageClientOptionsById({
315
315
  scheme: 'file',
316
316
  language: 'cpp'
317
317
  }],
318
- mutualizable: false,
319
- vscodeExtensionIds: ['cpptools']
318
+ mutualizable: false // The extension is cpptools BUT the language server is unable to use the configuration
319
+ // vscodeExtensionIds: ['cpptools']
320
+
320
321
  },
321
322
  csharp: {
322
323
  documentSelector: [{
@@ -336,8 +337,9 @@ const staticOptions = asLanguageClientOptionsById({
336
337
  scheme: 'file',
337
338
  language: 'cuda-cpp'
338
339
  }],
339
- mutualizable: false,
340
- vscodeExtensionIds: ['cpptools']
340
+ mutualizable: false // The extension is cpptools BUT the language server is unable to use the configuration
341
+ // vscodeExtensionIds: ['cpptools']
342
+
341
343
  },
342
344
  clojure: {
343
345
  documentSelector: [{
@@ -576,16 +578,22 @@ const staticOptions = asLanguageClientOptionsById({
576
578
  }
577
579
  });
578
580
 
579
- async function loadExtensionConfigurations(forLanguageClientIds, nonMutualizableOnly) {
581
+ /**
582
+ * Load the configuration schemas from vscode extensions
583
+ * @param forLanguageClientIds Load the extensions related to these language client ids
584
+ * @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
585
+ */
586
+
587
+ async function loadExtensionConfigurations(forLanguageClientIds, useMutualizedProxy) {
580
588
  const extensionConfigurationToLoad = new Set();
581
589
 
582
590
  for (const languageClientId of forLanguageClientIds) {
583
591
  const config = staticOptions[languageClientId];
584
592
 
585
- if (!config.mutualizable || !nonMutualizableOnly) {
593
+ if (!config.mutualizable || !useMutualizedProxy) {
586
594
  var _config$vscodeExtensi;
587
595
 
588
- ((_config$vscodeExtensi = config.vscodeExtensionIds) !== null && _config$vscodeExtensi !== void 0 ? _config$vscodeExtensi : []).forEach(extensionId => {
596
+ (_config$vscodeExtensi = config.vscodeExtensionIds) === null || _config$vscodeExtensi === void 0 ? void 0 : _config$vscodeExtensi.forEach(extensionId => {
589
597
  extensionConfigurationToLoad.add(extensionId);
590
598
  });
591
599
  }
@@ -21205,17 +21213,19 @@ function createLanguageClient(id, sessionId, _ref, languageServerAddress, getSec
21205
21213
  }
21206
21214
 
21207
21215
  class LanguageClientManager {
21208
- constructor(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls, mutualized) {
21216
+ constructor(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls, useMutualizedProxy) {
21209
21217
  this.id = id;
21210
21218
  this.sessionId = sessionId;
21211
21219
  this.languageServerAddress = languageServerAddress;
21212
21220
  this.getSecurityToken = getSecurityToken;
21213
21221
  this.languageServerOptions = languageServerOptions;
21214
21222
  this.libraryUrls = libraryUrls;
21215
- this.mutualized = mutualized;
21223
+ this.useMutualizedProxy = useMutualizedProxy;
21216
21224
 
21217
21225
  _defineProperty(this, "languageClient", void 0);
21218
21226
 
21227
+ _defineProperty(this, "disposed", false);
21228
+
21219
21229
  _defineProperty(this, "onDidChangeStatusEmitter", new lib$1.Emitter());
21220
21230
 
21221
21231
  _defineProperty(this, "onErrorEmitter", new lib$1.Emitter());
@@ -21264,6 +21274,7 @@ class LanguageClientManager {
21264
21274
  }
21265
21275
 
21266
21276
  async dispose() {
21277
+ this.disposed = true;
21267
21278
  this.onWillCloseEmitter.fire();
21268
21279
 
21269
21280
  if (this.languageClient != null) {
@@ -21298,10 +21309,22 @@ class LanguageClientManager {
21298
21309
  }
21299
21310
 
21300
21311
  isDisposed() {
21301
- return this.languageClient == null;
21312
+ return this.disposed;
21302
21313
  }
21303
21314
 
21304
- start() {
21315
+ async start() {
21316
+ try {
21317
+ await loadExtensionConfigurations([this.id], this.useMutualizedProxy);
21318
+ } catch (error) {
21319
+ console.error('Unable to load extension configuration', error);
21320
+ }
21321
+
21322
+ if (!this.isDisposed()) {
21323
+ this._start();
21324
+ }
21325
+ }
21326
+
21327
+ _start() {
21305
21328
  var _this$languageServerO;
21306
21329
 
21307
21330
  const onServerResponse = new lib$1.Emitter();
@@ -21433,13 +21456,7 @@ class LanguageClientManager {
21433
21456
  }
21434
21457
  });
21435
21458
  this.languageClient.registerFeature(new WillDisposeFeature(this.languageClient, this.onWillShutdownEmitter));
21436
- loadExtensionConfigurations([this.id], this.mutualized).catch(error => {
21437
- console.error('Unable to load extension configuration', error);
21438
- }).finally(() => {
21439
- if (!this.isDisposed()) {
21440
- this.languageClient.start();
21441
- }
21442
- });
21459
+ this.languageClient.start();
21443
21460
  }
21444
21461
 
21445
21462
  sendNotification(method, params) {
@@ -21452,22 +21469,40 @@ class LanguageClientManager {
21452
21469
 
21453
21470
  }
21454
21471
  const languageClientManagerByLanguageId = {};
21472
+ /**
21473
+ * Create a language client manager
21474
+ * @param id The predefined id of the language client
21475
+ * @param sessionId An optional sessionId when connecting to the session-mutualized server
21476
+ * @param languageServerAddress The domain of the server
21477
+ * @param getSecurityToken A function which returns a valid JWT token to use to connect to the server
21478
+ * @param libraryUrls A list of urls which link to zip files containing libraries/resources
21479
+ * @param useMutualizedProxy The language server proxy is used, so we only need to load configurations for language servers which are not mutualized
21480
+ * @returns A language client manager
21481
+ */
21455
21482
 
21456
21483
  function createLanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, libraryUrls) {
21457
- let mutualized = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : languageServerAddress.includes('mutualized');
21484
+ let useMutualizedProxy = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : languageServerAddress.includes('mutualized');
21458
21485
 
21459
21486
  if (languageClientManagerByLanguageId[id] != null) {
21460
21487
  throw new Error("Language client for language ".concat(id, " already started"));
21461
21488
  }
21462
21489
 
21463
- const languageServerOptions = staticOptions[id]; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
21490
+ let languageServerOptions = staticOptions[id]; // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
21464
21491
 
21465
21492
  if (languageServerOptions == null) {
21466
21493
  throw new Error("Unknown ".concat(id, " language server"));
21467
21494
  }
21468
21495
 
21496
+ if (useMutualizedProxy && languageServerOptions.mutualizable) {
21497
+ // When using the mutualized proxy, we don't need to synchronize the configuration nor send the initialization options
21498
+ languageServerOptions = _objectSpread2(_objectSpread2({}, languageServerOptions), {}, {
21499
+ synchronize: undefined,
21500
+ initializationOptions: undefined
21501
+ });
21502
+ }
21503
+
21469
21504
  installServices();
21470
- const languageClientManager = new LanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls, mutualized);
21505
+ const languageClientManager = new LanguageClientManager(id, sessionId, languageServerAddress, getSecurityToken, languageServerOptions, libraryUrls, useMutualizedProxy);
21471
21506
  languageClientManagerByLanguageId[id] = languageClientManager;
21472
21507
  const textModelContentProviderDisposable = registerTextModelContentProvider('file', {
21473
21508
  async provideTextContent(resource) {
@@ -0,0 +1,103 @@
1
+ var markdown = {
2
+ "Insert bold text": {
3
+ prefix: "bold",
4
+ body: "**${1:${TM_SELECTED_TEXT}}**$0",
5
+ description: "Insert bold text"
6
+ },
7
+ "Insert italic text": {
8
+ prefix: "italic",
9
+ body: "*${1:${TM_SELECTED_TEXT}}*$0",
10
+ description: "Insert italic text"
11
+ },
12
+ "Insert quoted text": {
13
+ prefix: "quote",
14
+ body: "> ${1:${TM_SELECTED_TEXT}}",
15
+ description: "Insert quoted text"
16
+ },
17
+ "Insert inline code": {
18
+ prefix: "code",
19
+ body: "`${1:${TM_SELECTED_TEXT}}`$0",
20
+ description: "Insert inline code"
21
+ },
22
+ "Insert fenced code block": {
23
+ prefix: "fenced codeblock",
24
+ body: [
25
+ "```${1|python,c,c++,c#,ruby,go,java,php,htm,css,javascript,json,markdown,console|}",
26
+ "${TM_SELECTED_TEXT}$0",
27
+ "```"
28
+ ],
29
+ description: "Insert fenced code block"
30
+ },
31
+ "Insert heading level 1": {
32
+ prefix: "heading1",
33
+ body: "# ${1:${TM_SELECTED_TEXT}}",
34
+ description: "Insert heading level 1"
35
+ },
36
+ "Insert heading level 2": {
37
+ prefix: "heading2",
38
+ body: "## ${1:${TM_SELECTED_TEXT}}",
39
+ description: "Insert heading level 2"
40
+ },
41
+ "Insert heading level 3": {
42
+ prefix: "heading3",
43
+ body: "### ${1:${TM_SELECTED_TEXT}}",
44
+ description: "Insert heading level 3"
45
+ },
46
+ "Insert heading level 4": {
47
+ prefix: "heading4",
48
+ body: "#### ${1:${TM_SELECTED_TEXT}}",
49
+ description: "Insert heading level 4"
50
+ },
51
+ "Insert heading level 5": {
52
+ prefix: "heading5",
53
+ body: "##### ${1:${TM_SELECTED_TEXT}}",
54
+ description: "Insert heading level 5"
55
+ },
56
+ "Insert heading level 6": {
57
+ prefix: "heading6",
58
+ body: "###### ${1:${TM_SELECTED_TEXT}}",
59
+ description: "Insert heading level 6"
60
+ },
61
+ "Insert unordered list": {
62
+ prefix: "unordered list",
63
+ body: [
64
+ "- ${1:first}",
65
+ "- ${2:second}",
66
+ "- ${3:third}",
67
+ "$0"
68
+ ],
69
+ description: "Insert unordered list"
70
+ },
71
+ "Insert ordered list": {
72
+ prefix: "ordered list",
73
+ body: [
74
+ "1. ${1:first}",
75
+ "2. ${2:second}",
76
+ "3. ${3:third}",
77
+ "$0"
78
+ ],
79
+ description: "Insert ordered list"
80
+ },
81
+ "Insert horizontal rule": {
82
+ prefix: "horizontal rule",
83
+ body: "----------\n",
84
+ description: "Insert horizontal rule"
85
+ },
86
+ "Insert link": {
87
+ prefix: "link",
88
+ body: "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
89
+ description: "Insert link"
90
+ },
91
+ "Insert image": {
92
+ prefix: "image",
93
+ body: "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
94
+ description: "Insert image"
95
+ },
96
+ "Insert strikethrough": {
97
+ prefix: "strikethrough",
98
+ body: "~~${1:${TM_SELECTED_TEXT}}~~",
99
+ description: "Insert strikethrough"
100
+ }
101
+ };
102
+
103
+ export { markdown as default };