@codingame/monaco-languageclient-wrapper 1.0.9 → 1.1.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 (170) 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 +2 -2
  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/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/index.d.ts +2 -2
  73. package/dist/inline-styles.js +104 -0
  74. package/dist/inline-template.js +88 -0
  75. package/dist/java.js +18 -0
  76. package/dist/java.tmLanguage.js +1863 -0
  77. package/dist/javascript.js +196 -0
  78. package/dist/javascriptreact.js +196 -0
  79. package/dist/jsdoc.js.injection.tmLanguage.js +32 -0
  80. package/dist/jsdoc.ts.injection.tmLanguage.js +32 -0
  81. package/dist/json.worker.js +6 -0
  82. package/dist/jsonContribution.js +78 -0
  83. package/dist/keybindings/index.d.ts +2 -0
  84. package/dist/keybindings/keybindingHelper.d.ts +2 -0
  85. package/dist/keybindings/vim.d.ts +3 -0
  86. package/dist/kotlin.js +117 -0
  87. package/dist/kotlinscript.js +117 -0
  88. package/dist/languageClient.d.ts +8 -14
  89. package/dist/languages/extensions/grammarLoader.d.ts +91037 -0
  90. package/dist/languages/extensions/snippetLoader.d.ts +4578 -0
  91. package/dist/languages/index.d.ts +3 -0
  92. package/dist/languages/monarch/index.d.ts +7 -0
  93. package/dist/languages/monarch/list.d.ts +7 -0
  94. package/dist/languages/monarch/stub-generator.d.ts +2 -0
  95. package/dist/languages/snippets/index.d.ts +1 -0
  96. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +5 -0
  97. package/dist/languages/textMate/TextMateTokensProvider.d.ts +11 -0
  98. package/dist/languages/textMate/index.d.ts +2 -0
  99. package/dist/literateHaskell.tmLanguage.js +70 -0
  100. package/dist/lua.tmLanguage.js +289 -0
  101. package/dist/main.js +619 -314
  102. package/dist/markdown.js +103 -0
  103. package/dist/markdown.tmLanguage.js +2784 -0
  104. package/dist/merlin.js +111 -0
  105. package/dist/monaco.d.ts +8 -0
  106. package/dist/objective-c.tmLanguage.js +3618 -0
  107. package/dist/ocaml-hover-info.js +34 -0
  108. package/dist/ocaml-hover-type.js +24 -0
  109. package/dist/ocaml-markdown-codeblock.js +42 -0
  110. package/dist/ocaml.js +2979 -0
  111. package/dist/ocamlbuild.js +239 -0
  112. package/dist/opam.js +149 -0
  113. package/dist/pascal.js +382 -0
  114. package/dist/pascal.tmLanguage.js +169 -0
  115. package/dist/perl.tmLanguage.js +2986 -0
  116. package/dist/perl6.tmLanguage.js +323 -0
  117. package/dist/pgsql.tmLanguage.js +284 -0
  118. package/dist/php.js +265 -0
  119. package/dist/php.tmLanguage.js +3791 -0
  120. package/dist/platform.tmLanguage.js +1135 -0
  121. package/dist/powershell.js +18 -0
  122. package/dist/powershell.tmLanguage.js +1037 -0
  123. package/dist/r.tmLanguage.js +551 -0
  124. package/dist/reason-hover-info.js +34 -0
  125. package/dist/reason-hover-signature.js +21 -0
  126. package/dist/reason-hover-type.js +21 -0
  127. package/dist/reason-markdown-codeblock.js +42 -0
  128. package/dist/reason.js +100 -0
  129. package/dist/ruby.tmLanguage.js +2784 -0
  130. package/dist/rust.tmLanguage.js +1178 -0
  131. package/dist/sassdoc.tmLanguage.js +362 -0
  132. package/dist/scss.tmLanguage.js +1887 -0
  133. package/dist/sdc.tmLanguage.js +712 -0
  134. package/dist/sdl.js +162 -0
  135. package/dist/services/Configuration.d.ts +2 -3
  136. package/dist/services/EditorModelResolverService.d.ts +8 -0
  137. package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +7 -0
  138. package/dist/services/WatchableConsoleWindow.d.ts +2 -0
  139. package/dist/services.d.ts +1 -2
  140. package/dist/shell-unix-bash.tmLanguage.js +1291 -0
  141. package/dist/sql.js +21 -0
  142. package/dist/staticOptions.d.ts +9 -0
  143. package/dist/stub-generator.js +15 -0
  144. package/dist/swift.js +183 -0
  145. package/dist/swift.tmLanguage.js +3288 -0
  146. package/dist/systemverilog.js +208 -0
  147. package/dist/systemverilog.tmLanguage.js +1067 -0
  148. package/dist/tcl.js +151 -0
  149. package/dist/tcl.tmlanguage.yaml.js +5484 -0
  150. package/dist/template.js +207 -0
  151. package/dist/theme/index.d.ts +3 -0
  152. package/dist/theme/registry.d.ts +4 -0
  153. package/dist/theme/semanticHighlight.d.ts +1 -0
  154. package/dist/theme/tools.d.ts +13 -0
  155. package/dist/tools.d.ts +3 -0
  156. package/dist/ts.worker.js +6 -0
  157. package/dist/typescript.js +312 -0
  158. package/dist/typescriptContribution.js +36 -0
  159. package/dist/typescriptreact.js +312 -0
  160. package/dist/ucf.tmLanguage.js +36 -0
  161. package/dist/vb.js +88 -0
  162. package/dist/verilog.js +432 -0
  163. package/dist/verilog.tmLanguage.js +321 -0
  164. package/dist/worker.d.ts +6 -0
  165. package/dist/worker.js +54 -0
  166. package/dist/xml.tmLanguage.js +395 -0
  167. package/dist/xsl.tmLanguage.js +102 -0
  168. package/dist/yaml.tmLanguage.js +629 -0
  169. package/package.json +19 -20
  170. package/stats.html +1 -1
package/dist/sdl.js ADDED
@@ -0,0 +1,162 @@
1
+ var fileTypes = [
2
+ "sdl"
3
+ ];
4
+ var name = "Simple Declarative Language";
5
+ var scopeName = "source.sdl";
6
+ var repository = {
7
+ string_escaped_char: {
8
+ patterns: [
9
+ {
10
+ match: "\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{,2}|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|&\\w+;)",
11
+ name: "constant.character.escape.sdl"
12
+ },
13
+ {
14
+ match: "\\\\.",
15
+ name: "invalid.illegal.unknown-escape.sdl"
16
+ }
17
+ ]
18
+ },
19
+ binarychar: {
20
+ patterns: [
21
+ {
22
+ match: "[^a-zA-Z0-9\\-\\+\\/]",
23
+ name: "invalid.illegal.invalid-character.sdl"
24
+ }
25
+ ]
26
+ }
27
+ };
28
+ var patterns = [
29
+ {
30
+ match: "\\b(true|false|on|off|null)\\b",
31
+ name: "constant.language.sdl"
32
+ },
33
+ {
34
+ match: "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfDd]|BD|bd)?\\b",
35
+ name: "constant.numeric.sdl"
36
+ },
37
+ {
38
+ match: "([a-zA-Z_][a-zA-Z0-9_\\-\\.\\$]*)",
39
+ name: "entity.tag.name.sdl"
40
+ },
41
+ {
42
+ match: "\\d{4}\\/\\d{2}\\/\\d{2} (\\d+d:)?\\d{2}:\\d{2}(:\\d{2}(:\\d{3})?)?(-[A-Z0-9]{3})?",
43
+ name: "constant.other.datetime.sdl"
44
+ },
45
+ {
46
+ match: "\\d{4}\\/\\d{2}\\/\\d{2}",
47
+ name: "constant.other.date.sdl"
48
+ },
49
+ {
50
+ match: "(\\d+d:)?\\d{2}:\\d{2}:\\d{2}(:\\d{3})?",
51
+ name: "constant.other.timespan.sdl"
52
+ },
53
+ {
54
+ begin: "`",
55
+ beginCaptures: {
56
+ "0": {
57
+ name: "punctuation.definition.string.escaped.begin.sdl"
58
+ }
59
+ },
60
+ end: "`",
61
+ endCaptures: {
62
+ "0": {
63
+ name: "punctuation.definition.string.escaped.end.sdl"
64
+ }
65
+ },
66
+ name: "string.escaped.sdl"
67
+ },
68
+ {
69
+ begin: "\"",
70
+ beginCaptures: {
71
+ "0": {
72
+ name: "punctuation.definition.string.begin.sdl"
73
+ }
74
+ },
75
+ end: "\"",
76
+ endCaptures: {
77
+ "0": {
78
+ name: "punctuation.definition.string.end.sdl"
79
+ }
80
+ },
81
+ patterns: [
82
+ {
83
+ include: "#string_escaped_char"
84
+ }
85
+ ],
86
+ name: "string.quoted.double.sdl"
87
+ },
88
+ {
89
+ begin: "'",
90
+ beginCaptures: {
91
+ "0": {
92
+ name: "punctuation.definition.string.begin.sdl"
93
+ }
94
+ },
95
+ end: "'",
96
+ endCaptures: {
97
+ "0": {
98
+ name: "punctuation.definition.string.end.sdl"
99
+ }
100
+ },
101
+ patterns: [
102
+ {
103
+ include: "#string_escaped_char"
104
+ }
105
+ ],
106
+ name: "string.quoted.single.sdl"
107
+ },
108
+ {
109
+ begin: "\\[",
110
+ beginCaptures: {
111
+ "0": {
112
+ name: "punctuation.definition.string.binary.begin.sdl"
113
+ }
114
+ },
115
+ end: "\\]",
116
+ endCaptures: {
117
+ "0": {
118
+ name: "punctuation.definition.string.binary.end.sdl"
119
+ }
120
+ },
121
+ patterns: [
122
+ {
123
+ include: "#binarychar"
124
+ }
125
+ ],
126
+ name: "string.base64.sdl"
127
+ },
128
+ {
129
+ begin: "/\\*",
130
+ beginCaptures: {
131
+ "0": {
132
+ name: "punctuation.definition.comment.begin.sdl"
133
+ }
134
+ },
135
+ end: "\\*/",
136
+ endCaptures: {
137
+ "0": {
138
+ name: "punctuation.definition.comment.end.sdl"
139
+ }
140
+ },
141
+ name: "comment.block.sdl"
142
+ },
143
+ {
144
+ match: "(//|--|#).*$\\n?",
145
+ name: "comment.line.double-slash.sdl"
146
+ }
147
+ ];
148
+ var information_for_contributors = [
149
+ "This file has been converted from https://github.com/Pure-D/code-d/blob/master/",
150
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
151
+ "Once accepted there, we are happy to receive an update request."
152
+ ];
153
+ var sdl = {
154
+ fileTypes: fileTypes,
155
+ name: name,
156
+ scopeName: scopeName,
157
+ repository: repository,
158
+ patterns: patterns,
159
+ information_for_contributors: information_for_contributors
160
+ };
161
+
162
+ export { sdl as default, fileTypes, information_for_contributors, name, patterns, repository, scopeName };
@@ -7,9 +7,8 @@ declare class MemoryWorkspaceConfiguration implements WorkspaceConfiguration {
7
7
  }
8
8
  declare class Configuration implements Configurations {
9
9
  protected readonly onDidChangeConfigurationEmitter: Emitter<ConfigurationChangeEvent>;
10
- private configurations;
11
- getConfiguration(section?: string): MemoryWorkspaceConfiguration;
12
- update(section: string, value: unknown): void;
10
+ getConfiguration(section?: string, resource?: string): MemoryWorkspaceConfiguration;
11
+ private getValue;
13
12
  get onDidChangeConfiguration(): Event<ConfigurationChangeEvent>;
14
13
  }
15
14
  export default Configuration;
@@ -0,0 +1,8 @@
1
+ import * as monaco from 'monaco-editor';
2
+ export default class EditorModelResolverService extends monaco.extra.SimpleEditorModelResolverService {
3
+ constructor(modelService: monaco.extra.IModelService);
4
+ private providers;
5
+ registerTextModelContentProvider(scheme: string, provider: monaco.extra.ITextModelContentProvider): monaco.IDisposable;
6
+ fetchModel(resource: monaco.Uri): Promise<monaco.editor.ITextModel | null>;
7
+ createModelReference(resource: monaco.Uri): Promise<monaco.IReference<monaco.extra.IResolvedTextEditorModel>>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import * as monaco from 'monaco-editor';
2
+ import EditorModelResolverService from './EditorModelResolverService';
3
+ export default class MultiEditorStandaloneCodeEditorServiceImpl extends monaco.extra.StandaloneCodeEditorServiceImpl {
4
+ private modelResolverService;
5
+ constructor(styleSheet: monaco.extra.GlobalStyleSheet | null, contextKeyService: monaco.extra.IContextKeyService, themeService: monaco.editor.IThemeService, modelResolverService: EditorModelResolverService);
6
+ openCodeEditor(input: monaco.extra.IResourceEditorInput, editor: monaco.editor.ICodeEditor): Promise<monaco.editor.ICodeEditor | null>;
7
+ }
@@ -1,4 +1,5 @@
1
1
  import { MessageType, OutputChannel, Window, MessageActionItem, Emitter, Event } from '@codingame/monaco-languageclient';
2
+ import type * as vscode from 'vscode';
2
3
  declare class WatchableOutputChannel implements OutputChannel {
3
4
  logs: string;
4
5
  readonly name: string;
@@ -18,5 +19,6 @@ export default class WatchableConsoleWindow implements Window {
18
19
  showMessage<T extends MessageActionItem>(type: MessageType, message: string, ...actions: T[]): Promise<T | undefined>;
19
20
  createOutputChannel(name: string): OutputChannel;
20
21
  get onDidChangeChannels(): Event<void>;
22
+ withProgress: typeof vscode.window.withProgress;
21
23
  }
22
24
  export {};
@@ -1,5 +1,4 @@
1
1
  import { TextDocumentSaveReason, TextDocument } from '@codingame/monaco-languageclient';
2
2
  declare function installServices(): void;
3
- declare function updateConfiguration(section: string, value: unknown): void;
4
3
  declare function saveDocument(document: TextDocument, reason: TextDocumentSaveReason): Promise<void>;
5
- export { installServices, saveDocument, updateConfiguration };
4
+ export { installServices, saveDocument };