@difizen/libro-language-client 0.1.18

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 (298) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +0 -0
  3. package/es/common/api.d.ts +38 -0
  4. package/es/common/api.d.ts.map +1 -0
  5. package/es/common/api.js +9 -0
  6. package/es/common/callHierarchy.d.ts +39 -0
  7. package/es/common/callHierarchy.d.ts.map +1 -0
  8. package/es/common/callHierarchy.js +139 -0
  9. package/es/common/client.d.ts +482 -0
  10. package/es/common/client.d.ts.map +1 -0
  11. package/es/common/client.js +2731 -0
  12. package/es/common/codeAction.d.ts +22 -0
  13. package/es/common/codeAction.d.ts.map +1 -0
  14. package/es/common/codeAction.js +149 -0
  15. package/es/common/codeConverter.d.ts +81 -0
  16. package/es/common/codeConverter.d.ts.map +1 -0
  17. package/es/common/codeConverter.js +1040 -0
  18. package/es/common/codeLens.d.ts +26 -0
  19. package/es/common/codeLens.d.ts.map +1 -0
  20. package/es/common/codeLens.js +125 -0
  21. package/es/common/colorProvider.d.ts +27 -0
  22. package/es/common/colorProvider.d.ts.map +1 -0
  23. package/es/common/colorProvider.js +104 -0
  24. package/es/common/completion.d.ts +22 -0
  25. package/es/common/completion.d.ts.map +1 -0
  26. package/es/common/completion.js +130 -0
  27. package/es/common/configuration.d.ts +71 -0
  28. package/es/common/configuration.d.ts.map +1 -0
  29. package/es/common/configuration.js +292 -0
  30. package/es/common/declaration.d.ts +18 -0
  31. package/es/common/declaration.d.ts.map +1 -0
  32. package/es/common/declaration.js +88 -0
  33. package/es/common/definition.d.ts +18 -0
  34. package/es/common/definition.d.ts.map +1 -0
  35. package/es/common/definition.js +80 -0
  36. package/es/common/diagnostic.d.ts +125 -0
  37. package/es/common/diagnostic.d.ts.map +1 -0
  38. package/es/common/diagnostic.js +1442 -0
  39. package/es/common/documentHighlight.d.ts +17 -0
  40. package/es/common/documentHighlight.d.ts.map +1 -0
  41. package/es/common/documentHighlight.js +73 -0
  42. package/es/common/documentLink.d.ts +21 -0
  43. package/es/common/documentLink.d.ts.map +1 -0
  44. package/es/common/documentLink.js +90 -0
  45. package/es/common/documentSymbol.d.ts +20 -0
  46. package/es/common/documentSymbol.d.ts.map +1 -0
  47. package/es/common/documentSymbol.js +134 -0
  48. package/es/common/executeCommand.d.ts +22 -0
  49. package/es/common/executeCommand.d.ts.map +1 -0
  50. package/es/common/executeCommand.js +117 -0
  51. package/es/common/features.d.ts +421 -0
  52. package/es/common/features.d.ts.map +1 -0
  53. package/es/common/features.js +576 -0
  54. package/es/common/fileOperations.d.ts +118 -0
  55. package/es/common/fileOperations.d.ts.map +1 -0
  56. package/es/common/fileOperations.js +705 -0
  57. package/es/common/fileSystemWatcher.d.ts +19 -0
  58. package/es/common/fileSystemWatcher.d.ts.map +1 -0
  59. package/es/common/fileSystemWatcher.js +173 -0
  60. package/es/common/foldingRange.d.ts +22 -0
  61. package/es/common/foldingRange.d.ts.map +1 -0
  62. package/es/common/foldingRange.js +127 -0
  63. package/es/common/formatting.d.ts +41 -0
  64. package/es/common/formatting.d.ts.map +1 -0
  65. package/es/common/formatting.js +233 -0
  66. package/es/common/hover.d.ts +18 -0
  67. package/es/common/hover.d.ts.map +1 -0
  68. package/es/common/hover.js +80 -0
  69. package/es/common/implementation.d.ts +18 -0
  70. package/es/common/implementation.d.ts.map +1 -0
  71. package/es/common/implementation.js +88 -0
  72. package/es/common/inlayHint.d.ts +23 -0
  73. package/es/common/inlayHint.d.ts.map +1 -0
  74. package/es/common/inlayHint.js +187 -0
  75. package/es/common/inlineCompletion.d.ts +20 -0
  76. package/es/common/inlineCompletion.d.ts.map +1 -0
  77. package/es/common/inlineCompletion.js +74 -0
  78. package/es/common/inlineValue.d.ts +21 -0
  79. package/es/common/inlineValue.d.ts.map +1 -0
  80. package/es/common/inlineValue.js +124 -0
  81. package/es/common/linkedEditingRange.d.ts +23 -0
  82. package/es/common/linkedEditingRange.d.ts.map +1 -0
  83. package/es/common/linkedEditingRange.js +94 -0
  84. package/es/common/notebook.d.ts +97 -0
  85. package/es/common/notebook.d.ts.map +1 -0
  86. package/es/common/notebook.js +1444 -0
  87. package/es/common/progress.d.ts +12 -0
  88. package/es/common/progress.d.ts.map +1 -0
  89. package/es/common/progress.js +75 -0
  90. package/es/common/progressPart.d.ts +25 -0
  91. package/es/common/progressPart.d.ts.map +1 -0
  92. package/es/common/progressPart.js +147 -0
  93. package/es/common/protocolCallHierarchyItem.d.ts +9 -0
  94. package/es/common/protocolCallHierarchyItem.d.ts.map +1 -0
  95. package/es/common/protocolCallHierarchyItem.js +34 -0
  96. package/es/common/protocolCodeAction.d.ts +7 -0
  97. package/es/common/protocolCodeAction.d.ts.map +1 -0
  98. package/es/common/protocolCodeAction.js +32 -0
  99. package/es/common/protocolCodeLens.d.ts +7 -0
  100. package/es/common/protocolCodeLens.d.ts.map +1 -0
  101. package/es/common/protocolCodeLens.js +29 -0
  102. package/es/common/protocolCompletionItem.d.ts +13 -0
  103. package/es/common/protocolCompletionItem.d.ts.map +1 -0
  104. package/es/common/protocolCompletionItem.js +29 -0
  105. package/es/common/protocolConverter.d.ts +174 -0
  106. package/es/common/protocolConverter.d.ts.map +1 -0
  107. package/es/common/protocolConverter.js +1982 -0
  108. package/es/common/protocolDiagnostic.d.ts +20 -0
  109. package/es/common/protocolDiagnostic.d.ts.map +1 -0
  110. package/es/common/protocolDiagnostic.js +46 -0
  111. package/es/common/protocolDocumentLink.d.ts +8 -0
  112. package/es/common/protocolDocumentLink.d.ts.map +1 -0
  113. package/es/common/protocolDocumentLink.js +29 -0
  114. package/es/common/protocolInlayHint.d.ts +8 -0
  115. package/es/common/protocolInlayHint.d.ts.map +1 -0
  116. package/es/common/protocolInlayHint.js +29 -0
  117. package/es/common/protocolTypeHierarchyItem.d.ts +9 -0
  118. package/es/common/protocolTypeHierarchyItem.d.ts.map +1 -0
  119. package/es/common/protocolTypeHierarchyItem.js +34 -0
  120. package/es/common/protocolWorkspaceSymbol.d.ts +9 -0
  121. package/es/common/protocolWorkspaceSymbol.d.ts.map +1 -0
  122. package/es/common/protocolWorkspaceSymbol.js +36 -0
  123. package/es/common/reference.d.ts +22 -0
  124. package/es/common/reference.d.ts.map +1 -0
  125. package/es/common/reference.js +78 -0
  126. package/es/common/rename.d.ts +29 -0
  127. package/es/common/rename.d.ts.map +1 -0
  128. package/es/common/rename.js +132 -0
  129. package/es/common/selectionRange.d.ts +18 -0
  130. package/es/common/selectionRange.d.ts.map +1 -0
  131. package/es/common/selectionRange.js +108 -0
  132. package/es/common/semanticTokens.d.ts +36 -0
  133. package/es/common/semanticTokens.d.ts.map +1 -0
  134. package/es/common/semanticTokens.js +226 -0
  135. package/es/common/signatureHelp.d.ts +18 -0
  136. package/es/common/signatureHelp.d.ts.map +1 -0
  137. package/es/common/signatureHelp.js +103 -0
  138. package/es/common/textSynchronization.d.ts +104 -0
  139. package/es/common/textSynchronization.d.ts.map +1 -0
  140. package/es/common/textSynchronization.js +771 -0
  141. package/es/common/typeDefinition.d.ts +18 -0
  142. package/es/common/typeDefinition.d.ts.map +1 -0
  143. package/es/common/typeDefinition.js +89 -0
  144. package/es/common/typeHierarchy.d.ts +33 -0
  145. package/es/common/typeHierarchy.d.ts.map +1 -0
  146. package/es/common/typeHierarchy.js +138 -0
  147. package/es/common/utils/async.d.ts +42 -0
  148. package/es/common/utils/async.d.ts.map +1 -0
  149. package/es/common/utils/async.js +441 -0
  150. package/es/common/utils/is.d.ts +13 -0
  151. package/es/common/utils/is.d.ts.map +1 -0
  152. package/es/common/utils/is.js +52 -0
  153. package/es/common/utils/uuid.d.ts +23 -0
  154. package/es/common/utils/uuid.d.ts.map +1 -0
  155. package/es/common/utils/uuid.js +85 -0
  156. package/es/common/vscodeAdaptor/convertor.d.ts +7 -0
  157. package/es/common/vscodeAdaptor/convertor.d.ts.map +1 -0
  158. package/es/common/vscodeAdaptor/convertor.js +66 -0
  159. package/es/common/vscodeAdaptor/diagnosticCollection.d.ts +33 -0
  160. package/es/common/vscodeAdaptor/diagnosticCollection.d.ts.map +1 -0
  161. package/es/common/vscodeAdaptor/diagnosticCollection.js +310 -0
  162. package/es/common/vscodeAdaptor/extHostTypes.d.ts +1496 -0
  163. package/es/common/vscodeAdaptor/extHostTypes.d.ts.map +1 -0
  164. package/es/common/vscodeAdaptor/extHostTypes.js +3825 -0
  165. package/es/common/vscodeAdaptor/fileWatcher.d.ts +19 -0
  166. package/es/common/vscodeAdaptor/fileWatcher.d.ts.map +1 -0
  167. package/es/common/vscodeAdaptor/fileWatcher.js +45 -0
  168. package/es/common/vscodeAdaptor/hostTypeUtil.d.ts +192 -0
  169. package/es/common/vscodeAdaptor/hostTypeUtil.d.ts.map +1 -0
  170. package/es/common/vscodeAdaptor/hostTypeUtil.js +566 -0
  171. package/es/common/vscodeAdaptor/libro-fs.d.ts +21 -0
  172. package/es/common/vscodeAdaptor/libro-fs.d.ts.map +1 -0
  173. package/es/common/vscodeAdaptor/libro-fs.js +64 -0
  174. package/es/common/vscodeAdaptor/libroWindow.d.ts +21 -0
  175. package/es/common/vscodeAdaptor/libroWindow.d.ts.map +1 -0
  176. package/es/common/vscodeAdaptor/libroWindow.js +75 -0
  177. package/es/common/vscodeAdaptor/libroWorkspace.d.ts +33 -0
  178. package/es/common/vscodeAdaptor/libroWorkspace.d.ts.map +1 -0
  179. package/es/common/vscodeAdaptor/libroWorkspace.js +250 -0
  180. package/es/common/vscodeAdaptor/lspEnv.d.ts +8 -0
  181. package/es/common/vscodeAdaptor/lspEnv.d.ts.map +1 -0
  182. package/es/common/vscodeAdaptor/lspEnv.js +31 -0
  183. package/es/common/vscodeAdaptor/monaco-converter.d.ts +229 -0
  184. package/es/common/vscodeAdaptor/monaco-converter.d.ts.map +1 -0
  185. package/es/common/vscodeAdaptor/monaco-converter.js +1613 -0
  186. package/es/common/vscodeAdaptor/monacoLanguages.d.ts +48 -0
  187. package/es/common/vscodeAdaptor/monacoLanguages.d.ts.map +1 -0
  188. package/es/common/vscodeAdaptor/monacoLanguages.js +484 -0
  189. package/es/common/vscodeAdaptor/services.d.ts +85 -0
  190. package/es/common/vscodeAdaptor/services.d.ts.map +1 -0
  191. package/es/common/vscodeAdaptor/services.js +3 -0
  192. package/es/common/vscodeAdaptor/typings.d.ts +10 -0
  193. package/es/common/vscodeAdaptor/util.d.ts +3 -0
  194. package/es/common/vscodeAdaptor/util.d.ts.map +1 -0
  195. package/es/common/vscodeAdaptor/util.js +6 -0
  196. package/es/common/vscodeAdaptor/vscodeAdaptor.d.ts +77 -0
  197. package/es/common/vscodeAdaptor/vscodeAdaptor.d.ts.map +1 -0
  198. package/es/common/vscodeAdaptor/vscodeAdaptor.js +124 -0
  199. package/es/common/workspaceFolder.d.ts +32 -0
  200. package/es/common/workspaceFolder.d.ts.map +1 -0
  201. package/es/common/workspaceFolder.js +204 -0
  202. package/es/common/workspaceSymbol.d.ts +21 -0
  203. package/es/common/workspaceSymbol.d.ts.map +1 -0
  204. package/es/common/workspaceSymbol.js +101 -0
  205. package/es/constants.d.ts +2 -0
  206. package/es/constants.d.ts.map +1 -0
  207. package/es/constants.js +1 -0
  208. package/es/index.d.ts +6 -0
  209. package/es/index.d.ts.map +1 -0
  210. package/es/index.js +5 -0
  211. package/es/libro-language-client-contribution.d.ts +10 -0
  212. package/es/libro-language-client-contribution.d.ts.map +1 -0
  213. package/es/libro-language-client-contribution.js +143 -0
  214. package/es/libro-language-client-manager.d.ts +34 -0
  215. package/es/libro-language-client-manager.d.ts.map +1 -0
  216. package/es/libro-language-client-manager.js +277 -0
  217. package/es/libro-language-client.d.ts +27 -0
  218. package/es/libro-language-client.d.ts.map +1 -0
  219. package/es/libro-language-client.js +141 -0
  220. package/es/module.d.ts +3 -0
  221. package/es/module.d.ts.map +1 -0
  222. package/es/module.js +13 -0
  223. package/package.json +69 -0
  224. package/src/common/api.ts +155 -0
  225. package/src/common/callHierarchy.ts +269 -0
  226. package/src/common/client.ts +3192 -0
  227. package/src/common/codeAction.ts +237 -0
  228. package/src/common/codeConverter.ts +1409 -0
  229. package/src/common/codeLens.ts +188 -0
  230. package/src/common/colorProvider.ts +192 -0
  231. package/src/common/completion.ts +281 -0
  232. package/src/common/configuration.ts +338 -0
  233. package/src/common/declaration.ts +140 -0
  234. package/src/common/definition.ts +138 -0
  235. package/src/common/diagnostic.ts +1408 -0
  236. package/src/common/documentHighlight.ts +140 -0
  237. package/src/common/documentLink.ts +180 -0
  238. package/src/common/documentSymbol.ts +186 -0
  239. package/src/common/executeCommand.ts +129 -0
  240. package/src/common/features.ts +1157 -0
  241. package/src/common/fileOperations.ts +635 -0
  242. package/src/common/fileSystemWatcher.ts +184 -0
  243. package/src/common/foldingRange.ts +160 -0
  244. package/src/common/formatting.ts +465 -0
  245. package/src/common/hover.ts +133 -0
  246. package/src/common/implementation.ts +142 -0
  247. package/src/common/inlayHint.ts +201 -0
  248. package/src/common/inlineCompletion.ts +160 -0
  249. package/src/common/inlineValue.ts +158 -0
  250. package/src/common/linkedEditingRange.ts +141 -0
  251. package/src/common/notebook.ts +1443 -0
  252. package/src/common/progress.ts +61 -0
  253. package/src/common/progressPart.ts +151 -0
  254. package/src/common/protocolCallHierarchyItem.ts +29 -0
  255. package/src/common/protocolCodeAction.ts +17 -0
  256. package/src/common/protocolCodeLens.ts +15 -0
  257. package/src/common/protocolCompletionItem.ts +22 -0
  258. package/src/common/protocolConverter.ts +2627 -0
  259. package/src/common/protocolDiagnostic.ts +47 -0
  260. package/src/common/protocolDocumentLink.ts +17 -0
  261. package/src/common/protocolInlayHint.ts +21 -0
  262. package/src/common/protocolTypeHierarchyItem.ts +29 -0
  263. package/src/common/protocolWorkspaceSymbol.ts +39 -0
  264. package/src/common/reference.ts +144 -0
  265. package/src/common/rename.ts +230 -0
  266. package/src/common/selectionRange.ts +136 -0
  267. package/src/common/semanticTokens.ts +383 -0
  268. package/src/common/signatureHelp.ts +170 -0
  269. package/src/common/textSynchronization.ts +819 -0
  270. package/src/common/typeDefinition.ts +146 -0
  271. package/src/common/typeHierarchy.ts +248 -0
  272. package/src/common/utils/async.ts +354 -0
  273. package/src/common/utils/is.ts +63 -0
  274. package/src/common/utils/uuid.ts +136 -0
  275. package/src/common/vscodeAdaptor/convertor.ts +73 -0
  276. package/src/common/vscodeAdaptor/diagnosticCollection.ts +238 -0
  277. package/src/common/vscodeAdaptor/extHostTypes.ts +4498 -0
  278. package/src/common/vscodeAdaptor/fileWatcher.ts +36 -0
  279. package/src/common/vscodeAdaptor/hostTypeUtil.ts +539 -0
  280. package/src/common/vscodeAdaptor/libro-fs.ts +51 -0
  281. package/src/common/vscodeAdaptor/libroWindow.ts +85 -0
  282. package/src/common/vscodeAdaptor/libroWorkspace.ts +261 -0
  283. package/src/common/vscodeAdaptor/lspEnv.ts +16 -0
  284. package/src/common/vscodeAdaptor/monaco-converter.ts +1800 -0
  285. package/src/common/vscodeAdaptor/monacoLanguages.ts +511 -0
  286. package/src/common/vscodeAdaptor/services.ts +278 -0
  287. package/src/common/vscodeAdaptor/typings.d.ts +10 -0
  288. package/src/common/vscodeAdaptor/util.ts +7 -0
  289. package/src/common/vscodeAdaptor/vscodeAdaptor.ts +122 -0
  290. package/src/common/workspaceFolder.ts +236 -0
  291. package/src/common/workspaceSymbol.ts +166 -0
  292. package/src/constants.ts +1 -0
  293. package/src/index.spec.ts +7 -0
  294. package/src/index.ts +5 -0
  295. package/src/libro-language-client-contribution.ts +49 -0
  296. package/src/libro-language-client-manager.ts +131 -0
  297. package/src/libro-language-client.ts +100 -0
  298. package/src/module.ts +19 -0
@@ -0,0 +1,19 @@
1
+ import { LibroService } from '@difizen/libro-core';
2
+ import type { Event, FileSystemWatcher, GlobPattern, Uri } from 'vscode';
3
+ import { EventEmitter } from './vscodeAdaptor.js';
4
+ export declare class LibroFileWatcher implements FileSystemWatcher {
5
+ protected readonly libroService: LibroService;
6
+ create(globPattern: GlobPattern, ignoreCreateEvents?: boolean, ignoreChangeEvents?: boolean, ignoreDeleteEvents?: boolean): void;
7
+ globPattern: GlobPattern;
8
+ ignoreCreateEvents: boolean;
9
+ ignoreChangeEvents: boolean;
10
+ ignoreDeleteEvents: boolean;
11
+ protected onDidCreateEmitter: EventEmitter<Uri>;
12
+ onDidCreate: Event<Uri>;
13
+ protected onDidChangeEmitter: EventEmitter<Uri>;
14
+ onDidChange: Event<Uri>;
15
+ protected onDidDeleteEmitter: EventEmitter<Uri>;
16
+ onDidDelete: Event<Uri>;
17
+ dispose(): void;
18
+ }
19
+ //# sourceMappingURL=fileWatcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileWatcher.d.ts","sourceRoot":"","sources":["../../../src/common/vscodeAdaptor/fileWatcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,OAAO,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,qBACa,gBAAiB,YAAW,iBAAiB;IAClC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAEpE,MAAM,CACJ,WAAW,EAAE,WAAW,EACxB,kBAAkB,CAAC,EAAE,OAAO,EAC5B,kBAAkB,CAAC,EAAE,OAAO,EAC5B,kBAAkB,CAAC,EAAE,OAAO;IAQ9B,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,kBAAkB,oBAA2B;IACvD,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAiC;IACxD,SAAS,CAAC,kBAAkB,oBAA2B;IACvD,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAiC;IACxD,SAAS,CAAC,kBAAkB,oBAA2B;IACvD,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAiC;IACxD,OAAO;CAGR"}
@@ -0,0 +1,45 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _dec, _dec2, _class, _class2, _descriptor;
3
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
6
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
10
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
11
+ import { LibroService } from '@difizen/libro-core';
12
+ import { inject, singleton } from '@difizen/mana-app';
13
+ import { EventEmitter } from "./vscodeAdaptor.js";
14
+ export var LibroFileWatcher = (_dec = singleton(), _dec2 = inject(LibroService), _dec(_class = (_class2 = /*#__PURE__*/function () {
15
+ function LibroFileWatcher() {
16
+ _classCallCheck(this, LibroFileWatcher);
17
+ _initializerDefineProperty(this, "libroService", _descriptor, this);
18
+ this.onDidCreateEmitter = new EventEmitter();
19
+ this.onDidCreate = this.onDidCreateEmitter.event;
20
+ this.onDidChangeEmitter = new EventEmitter();
21
+ this.onDidChange = this.onDidChangeEmitter.event;
22
+ this.onDidDeleteEmitter = new EventEmitter();
23
+ this.onDidDelete = this.onDidDeleteEmitter.event;
24
+ }
25
+ _createClass(LibroFileWatcher, [{
26
+ key: "create",
27
+ value: function create(globPattern, ignoreCreateEvents, ignoreChangeEvents, ignoreDeleteEvents) {
28
+ this.globPattern = globPattern;
29
+ this.ignoreCreateEvents = ignoreCreateEvents !== null && ignoreCreateEvents !== void 0 ? ignoreCreateEvents : true;
30
+ this.ignoreChangeEvents = ignoreChangeEvents !== null && ignoreChangeEvents !== void 0 ? ignoreChangeEvents : true;
31
+ this.ignoreDeleteEvents = ignoreDeleteEvents !== null && ignoreDeleteEvents !== void 0 ? ignoreDeleteEvents : true;
32
+ }
33
+ }, {
34
+ key: "dispose",
35
+ value: function dispose() {
36
+ // console.log('Method not implemented.');
37
+ }
38
+ }]);
39
+ return LibroFileWatcher;
40
+ }(), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "libroService", [_dec2], {
41
+ configurable: true,
42
+ enumerable: true,
43
+ writable: true,
44
+ initializer: null
45
+ })), _class2)) || _class);
@@ -0,0 +1,192 @@
1
+ import type { UriComponents } from '@difizen/monaco-editor-core';
2
+ import type { Uri } from 'vscode';
3
+ export declare function asArray<T>(x: T | T[]): T[];
4
+ export declare function asArray<T>(x: T | readonly T[]): readonly T[];
5
+ /**
6
+ * Remove all falsy values from `array`. The original array IS modified.
7
+ */
8
+ export declare function coalesceInPlace<T>(array: Array<T | undefined | null>): asserts array is Array<T>;
9
+ export declare function equals<T>(one: ReadonlyArray<T> | undefined, other: ReadonlyArray<T> | undefined, itemEquals?: (a: T, b: T) => boolean): boolean;
10
+ export declare function illegalArgument(name?: string): Error;
11
+ export interface IRelativePattern {
12
+ /**
13
+ * A base file path to which this pattern will be matched against relatively.
14
+ */
15
+ readonly base: string;
16
+ /**
17
+ * A file glob pattern like `*.{ts,js}` that will be matched on file paths
18
+ * relative to the base path.
19
+ *
20
+ * Example: Given a base of `/home/work/folder` and a file path of `/home/work/folder/index.js`,
21
+ * the file glob pattern will match on `index.js`.
22
+ */
23
+ readonly pattern: string;
24
+ }
25
+ export interface MarkdownStringTrustedOptions {
26
+ readonly enabledCommands: readonly string[];
27
+ }
28
+ export interface IMarkdownString {
29
+ readonly value: string;
30
+ readonly isTrusted?: boolean | MarkdownStringTrustedOptions;
31
+ readonly supportThemeIcons?: boolean;
32
+ readonly supportHtml?: boolean;
33
+ readonly baseUri?: UriComponents;
34
+ uris?: {
35
+ [href: string]: UriComponents;
36
+ };
37
+ }
38
+ export declare const enum MarkdownStringTextNewlineStyle {
39
+ Paragraph = 0,
40
+ Break = 1
41
+ }
42
+ export declare class MarkdownString implements IMarkdownString {
43
+ value: string;
44
+ isTrusted?: boolean | MarkdownStringTrustedOptions;
45
+ supportThemeIcons?: boolean;
46
+ supportHtml?: boolean;
47
+ baseUri?: Uri;
48
+ constructor(value?: string, isTrustedOrOptions?: boolean | {
49
+ isTrusted?: boolean | MarkdownStringTrustedOptions;
50
+ supportThemeIcons?: boolean;
51
+ supportHtml?: boolean;
52
+ });
53
+ appendText(value: string, newlineStyle?: MarkdownStringTextNewlineStyle): MarkdownString;
54
+ appendMarkdown(value: string): MarkdownString;
55
+ appendCodeblock(langId: string, code: string): MarkdownString;
56
+ appendLink(target: Uri | string, label: string, title?: string): MarkdownString;
57
+ private _escape;
58
+ }
59
+ export declare function isEmptyMarkdownString(oneOrMany: IMarkdownString | IMarkdownString[] | null | undefined): boolean;
60
+ export declare function isMarkdownString(thing: any): thing is IMarkdownString;
61
+ export declare function escapeMarkdownSyntaxTokens(text: string): string;
62
+ /**
63
+ * @see https://github.com/microsoft/vscode/issues/193746
64
+ */
65
+ export declare function appendEscapedMarkdownCodeBlockFence(code: string, langId: string): string;
66
+ export declare function escapeDoubleQuotes(input: string): string;
67
+ export declare function removeMarkdownEscapes(text: string): string;
68
+ export declare function parseHrefAndDimensions(href: string): {
69
+ href: string;
70
+ dimensions: string[];
71
+ };
72
+ export declare const iconNameExpression = "[A-Za-z0-9-]+";
73
+ export declare const iconModifierExpression = "~[A-Za-z]+";
74
+ export declare function escapeIcons(text: string): string;
75
+ /**
76
+ * Escapes regular expression characters in a given string
77
+ */
78
+ export declare function escapeRegExpCharacters(value: string): string;
79
+ interface ResourceMapKeyFn {
80
+ (resource: Uri): string;
81
+ }
82
+ export declare class ResourceMap<T> implements Map<Uri, T> {
83
+ private static readonly defaultToKey;
84
+ readonly [Symbol.toStringTag] = "ResourceMap";
85
+ private readonly map;
86
+ private readonly toKey;
87
+ /**
88
+ *
89
+ * @param toKey Custom uri identity function, e.g use an existing `IExtUri#getComparison`-util
90
+ */
91
+ constructor(toKey?: ResourceMapKeyFn);
92
+ /**
93
+ *
94
+ * @param other Another resource which this maps is created from
95
+ * @param toKey Custom uri identity function, e.g use an existing `IExtUri#getComparison`-util
96
+ */
97
+ constructor(other?: ResourceMap<T>, toKey?: ResourceMapKeyFn);
98
+ /**
99
+ *
100
+ * @param other Another resource which this maps is created from
101
+ * @param toKey Custom uri identity function, e.g use an existing `IExtUri#getComparison`-util
102
+ */
103
+ constructor(entries?: readonly (readonly [Uri, T])[], toKey?: ResourceMapKeyFn);
104
+ set(resource: Uri, value: T): this;
105
+ get(resource: Uri): T | undefined;
106
+ has(resource: Uri): boolean;
107
+ get size(): number;
108
+ clear(): void;
109
+ delete(resource: Uri): boolean;
110
+ forEach(clb: (value: T, key: Uri, map: Map<Uri, T>) => void, thisArg?: any): void;
111
+ values(): IterableIterator<T>;
112
+ keys(): IterableIterator<Uri>;
113
+ entries(): IterableIterator<[Uri, T]>;
114
+ [Symbol.iterator](): IterableIterator<[Uri, T]>;
115
+ }
116
+ export declare const Mimes: Readonly<{
117
+ text: "text/plain";
118
+ binary: "application/octet-stream";
119
+ unknown: "application/unknown";
120
+ markdown: "text/markdown";
121
+ latex: "text/latex";
122
+ uriList: "text/uri-list";
123
+ }>;
124
+ export declare function normalizeMimeType(mimeType: string): string;
125
+ export declare function normalizeMimeType(mimeType: string, strict: true): string | undefined;
126
+ /**
127
+ * @returns whether the provided parameter is a JavaScript String or not.
128
+ */
129
+ export declare function isString(str: unknown): str is string;
130
+ /**
131
+ * @returns whether the provided parameter is a JavaScript Array and each element in the array is a string.
132
+ */
133
+ export declare function isStringArray(value: unknown): value is string[];
134
+ /**
135
+ * @returns whether the provided parameter is of type `object` but **not**
136
+ * `null`, an `array`, a `regexp`, nor a `date`.
137
+ */
138
+ export declare function isObject(obj: unknown): obj is Object;
139
+ /**
140
+ * In **contrast** to just checking `typeof` this will return `false` for `NaN`.
141
+ * @returns whether the provided parameter is a JavaScript Number or not.
142
+ */
143
+ export declare function isNumber(obj: unknown): obj is number;
144
+ export declare const enum CellEditType {
145
+ Replace = 1,
146
+ Output = 2,
147
+ Metadata = 3,
148
+ CellLanguage = 4,
149
+ DocumentMetadata = 5,
150
+ Move = 6,
151
+ OutputItems = 7,
152
+ PartialMetadata = 8,
153
+ PartialInternalMetadata = 9
154
+ }
155
+ export interface NotebookCellMetadata {
156
+ /**
157
+ * custom metadata
158
+ */
159
+ [key: string]: unknown;
160
+ }
161
+ export interface ICellMetadataEdit {
162
+ editType: CellEditType.Metadata;
163
+ index: number;
164
+ metadata: NotebookCellMetadata;
165
+ }
166
+ export interface IDocumentMetadataEdit {
167
+ editType: CellEditType.DocumentMetadata;
168
+ metadata: NotebookDocumentMetadata;
169
+ }
170
+ export type NotebookDocumentMetadata = Record<string, unknown>;
171
+ /**
172
+ * Whether the provided mime type is a text stream like `stdout`, `stderr`.
173
+ */
174
+ export declare function isTextStreamMime(mimeType: string): boolean;
175
+ export interface IRelativePatternDto extends IRelativePattern {
176
+ baseUri: UriComponents;
177
+ }
178
+ export declare enum FileSystemProviderErrorCode {
179
+ FileExists = "EntryExists",
180
+ FileNotFound = "EntryNotFound",
181
+ FileNotADirectory = "EntryNotADirectory",
182
+ FileIsADirectory = "EntryIsADirectory",
183
+ FileExceedsStorageQuota = "EntryExceedsStorageQuota",
184
+ FileTooLarge = "EntryTooLarge",
185
+ FileWriteLocked = "EntryWriteLocked",
186
+ NoPermissions = "NoPermissions",
187
+ Unavailable = "Unavailable",
188
+ Unknown = "Unknown"
189
+ }
190
+ export declare function markAsFileSystemProviderError(error: Error, code: FileSystemProviderErrorCode): Error;
191
+ export {};
192
+ //# sourceMappingURL=hostTypeUtil.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hostTypeUtil.d.ts","sourceRoot":"","sources":["../../../src/common/vscodeAdaptor/hostTypeUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAElC,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC;AAC5C,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,E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