@opensumi/ide-core-common 2.17.1 → 2.17.3-next-1651908670.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 (285) hide show
  1. package/lib/command.d.ts +1 -2
  2. package/lib/command.d.ts.map +1 -1
  3. package/lib/command.js +4 -4
  4. package/lib/command.js.map +1 -1
  5. package/lib/{utils/comparers.d.ts → comparers.d.ts} +1 -1
  6. package/lib/comparers.d.ts.map +1 -0
  7. package/lib/{utils/comparers.js → comparers.js} +5 -5
  8. package/lib/comparers.js.map +1 -0
  9. package/lib/const/index.d.ts +1 -1
  10. package/lib/const/index.d.ts.map +1 -1
  11. package/lib/const/index.js +1 -1
  12. package/lib/const/index.js.map +1 -1
  13. package/lib/crypto.d.ts +7 -0
  14. package/lib/{cryptr.d.ts.map → crypto.d.ts.map} +1 -1
  15. package/lib/crypto.js +6 -0
  16. package/lib/crypto.js.map +1 -0
  17. package/lib/electron.d.ts +2 -2
  18. package/lib/electron.d.ts.map +1 -1
  19. package/lib/electron.js.map +1 -1
  20. package/lib/event-bus/event-bus-types.d.ts +1 -2
  21. package/lib/event-bus/event-bus-types.d.ts.map +1 -1
  22. package/lib/event-bus/event-bus.d.ts +3 -3
  23. package/lib/event-bus/event-bus.d.ts.map +1 -1
  24. package/lib/event-bus/event-bus.js +3 -3
  25. package/lib/event-bus/event-bus.js.map +1 -1
  26. package/lib/event-bus/event-decorator.d.ts +1 -1
  27. package/lib/event-bus/event-decorator.d.ts.map +1 -1
  28. package/lib/event-bus/event-decorator.js +2 -2
  29. package/lib/event-bus/event-decorator.js.map +1 -1
  30. package/lib/hash-calculate/hash-calculate.d.ts.map +1 -1
  31. package/lib/hash-calculate/hash-calculate.js +2 -2
  32. package/lib/hash-calculate/hash-calculate.js.map +1 -1
  33. package/lib/index.d.ts +4 -18
  34. package/lib/index.d.ts.map +1 -1
  35. package/lib/index.js +4 -18
  36. package/lib/index.js.map +1 -1
  37. package/lib/keyboard/keyboard-layout-provider.d.ts +1 -1
  38. package/lib/keyboard/keyboard-layout-provider.d.ts.map +1 -1
  39. package/lib/keyboard/keymap.js +4 -4
  40. package/lib/keyboard/keymap.js.map +1 -1
  41. package/lib/localize.d.ts.map +1 -1
  42. package/lib/localize.js +7 -7
  43. package/lib/localize.js.map +1 -1
  44. package/lib/log.d.ts +1 -1
  45. package/lib/log.d.ts.map +1 -1
  46. package/lib/{utils/markdown.d.ts → markdown.d.ts} +1 -1
  47. package/lib/markdown.d.ts.map +1 -0
  48. package/lib/{utils/markdown.js → markdown.js} +0 -0
  49. package/lib/markdown.js.map +1 -0
  50. package/lib/menu.d.ts +1 -1
  51. package/lib/menu.d.ts.map +1 -1
  52. package/lib/menu.js.map +1 -1
  53. package/lib/problem-matcher.d.ts +1 -3
  54. package/lib/problem-matcher.d.ts.map +1 -1
  55. package/lib/problem-matcher.js +5 -6
  56. package/lib/problem-matcher.js.map +1 -1
  57. package/lib/problem-pattern.d.ts +1 -2
  58. package/lib/problem-pattern.d.ts.map +1 -1
  59. package/lib/problem-pattern.js +9 -10
  60. package/lib/problem-pattern.js.map +1 -1
  61. package/lib/reference.d.ts +1 -3
  62. package/lib/reference.d.ts.map +1 -1
  63. package/lib/reference.js +4 -5
  64. package/lib/reference.js.map +1 -1
  65. package/lib/reporter.d.ts +1 -1
  66. package/lib/reporter.d.ts.map +1 -1
  67. package/lib/storage.d.ts +1 -4
  68. package/lib/storage.d.ts.map +1 -1
  69. package/lib/storage.js +11 -11
  70. package/lib/storage.js.map +1 -1
  71. package/lib/task-definition.d.ts +1 -1
  72. package/lib/task-definition.d.ts.map +1 -1
  73. package/lib/task-definition.js +6 -6
  74. package/lib/task-definition.js.map +1 -1
  75. package/lib/types/application.d.ts +4 -4
  76. package/lib/types/application.d.ts.map +1 -1
  77. package/lib/types/authentication.d.ts +1 -2
  78. package/lib/types/authentication.d.ts.map +1 -1
  79. package/lib/types/authentication.js.map +1 -1
  80. package/lib/types/common.d.ts +2 -2
  81. package/lib/types/common.d.ts.map +1 -1
  82. package/lib/types/extension.d.ts +1 -1
  83. package/lib/types/extension.d.ts.map +1 -1
  84. package/lib/types/extension.js.map +1 -1
  85. package/lib/types/file-watch.d.ts +1 -1
  86. package/lib/types/file-watch.d.ts.map +1 -1
  87. package/lib/types/file-watch.js +2 -2
  88. package/lib/types/file-watch.js.map +1 -1
  89. package/lib/types/file.d.ts +1 -1
  90. package/lib/types/file.d.ts.map +1 -1
  91. package/lib/types/index.d.ts +1 -0
  92. package/lib/types/index.d.ts.map +1 -1
  93. package/lib/types/index.js +1 -0
  94. package/lib/types/index.js.map +1 -1
  95. package/lib/types/markdown.d.ts +2 -1
  96. package/lib/types/markdown.d.ts.map +1 -1
  97. package/lib/types/markers/markers-manager.d.ts +2 -2
  98. package/lib/types/markers/markers-manager.d.ts.map +1 -1
  99. package/lib/types/markers/markers-manager.js +25 -23
  100. package/lib/types/markers/markers-manager.js.map +1 -1
  101. package/lib/types/markers/markers.js +2 -2
  102. package/lib/types/markers/markers.js.map +1 -1
  103. package/lib/utils/ipc.d.ts.map +1 -1
  104. package/lib/utils/ipc.js +7 -8
  105. package/lib/utils/ipc.js.map +1 -1
  106. package/package.json +4 -7
  107. package/lib/arrays.d.ts +0 -134
  108. package/lib/arrays.d.ts.map +0 -1
  109. package/lib/arrays.js +0 -545
  110. package/lib/arrays.js.map +0 -1
  111. package/lib/async.d.ts +0 -185
  112. package/lib/async.d.ts.map +0 -1
  113. package/lib/async.js +0 -469
  114. package/lib/async.js.map +0 -1
  115. package/lib/cache.d.ts +0 -12
  116. package/lib/cache.d.ts.map +0 -1
  117. package/lib/cache.js +0 -37
  118. package/lib/cache.js.map +0 -1
  119. package/lib/cancellation.d.ts +0 -23
  120. package/lib/cancellation.d.ts.map +0 -1
  121. package/lib/cancellation.js +0 -120
  122. package/lib/cancellation.js.map +0 -1
  123. package/lib/charCode.d.ts +0 -406
  124. package/lib/charCode.d.ts.map +0 -1
  125. package/lib/charCode.js +0 -8
  126. package/lib/charCode.js.map +0 -1
  127. package/lib/character-classifier.d.ts +0 -25
  128. package/lib/character-classifier.d.ts.map +0 -1
  129. package/lib/character-classifier.js +0 -59
  130. package/lib/character-classifier.js.map +0 -1
  131. package/lib/const/encodings.d.ts +0 -10
  132. package/lib/const/encodings.d.ts.map +0 -1
  133. package/lib/const/encodings.js +0 -244
  134. package/lib/const/encodings.js.map +0 -1
  135. package/lib/cryptr.d.ts +0 -7
  136. package/lib/cryptr.js +0 -6
  137. package/lib/cryptr.js.map +0 -1
  138. package/lib/date.d.ts +0 -2
  139. package/lib/date.d.ts.map +0 -1
  140. package/lib/date.js +0 -22
  141. package/lib/date.js.map +0 -1
  142. package/lib/disposable.d.ts +0 -88
  143. package/lib/disposable.d.ts.map +0 -1
  144. package/lib/disposable.js +0 -316
  145. package/lib/disposable.js.map +0 -1
  146. package/lib/encoding/index.d.ts +0 -34
  147. package/lib/encoding/index.d.ts.map +0 -1
  148. package/lib/encoding/index.js +0 -219
  149. package/lib/encoding/index.js.map +0 -1
  150. package/lib/errors.d.ts +0 -56
  151. package/lib/errors.d.ts.map +0 -1
  152. package/lib/errors.js +0 -148
  153. package/lib/errors.js.map +0 -1
  154. package/lib/event.d.ts +0 -268
  155. package/lib/event.d.ts.map +0 -1
  156. package/lib/event.js +0 -816
  157. package/lib/event.js.map +0 -1
  158. package/lib/filters.d.ts +0 -47
  159. package/lib/filters.d.ts.map +0 -1
  160. package/lib/filters.js +0 -699
  161. package/lib/filters.js.map +0 -1
  162. package/lib/functional.d.ts +0 -4
  163. package/lib/functional.d.ts.map +0 -1
  164. package/lib/functional.js +0 -45
  165. package/lib/functional.js.map +0 -1
  166. package/lib/iterator.d.ts +0 -17
  167. package/lib/iterator.d.ts.map +0 -1
  168. package/lib/iterator.js +0 -24
  169. package/lib/iterator.js.map +0 -1
  170. package/lib/lifecycle.d.ts +0 -17
  171. package/lib/lifecycle.d.ts.map +0 -1
  172. package/lib/lifecycle.js +0 -39
  173. package/lib/lifecycle.js.map +0 -1
  174. package/lib/linked-list.d.ts +0 -18
  175. package/lib/linked-list.d.ts.map +0 -1
  176. package/lib/linked-list.js +0 -138
  177. package/lib/linked-list.js.map +0 -1
  178. package/lib/linkedText.d.ts +0 -13
  179. package/lib/linkedText.d.ts.map +0 -1
  180. package/lib/linkedText.js +0 -50
  181. package/lib/linkedText.js.map +0 -1
  182. package/lib/map.d.ts +0 -124
  183. package/lib/map.d.ts.map +0 -1
  184. package/lib/map.js +0 -819
  185. package/lib/map.js.map +0 -1
  186. package/lib/path.d.ts +0 -92
  187. package/lib/path.d.ts.map +0 -1
  188. package/lib/path.js +0 -1695
  189. package/lib/path.js.map +0 -1
  190. package/lib/platform.d.ts +0 -48
  191. package/lib/platform.d.ts.map +0 -1
  192. package/lib/platform.js +0 -153
  193. package/lib/platform.js.map +0 -1
  194. package/lib/process.d.ts +0 -5
  195. package/lib/process.d.ts.map +0 -1
  196. package/lib/process.js +0 -23
  197. package/lib/process.js.map +0 -1
  198. package/lib/progress.d.ts +0 -56
  199. package/lib/progress.d.ts.map +0 -1
  200. package/lib/progress.js +0 -27
  201. package/lib/progress.js.map +0 -1
  202. package/lib/sequence.d.ts +0 -20
  203. package/lib/sequence.d.ts.map +0 -1
  204. package/lib/sequence.js +0 -17
  205. package/lib/sequence.js.map +0 -1
  206. package/lib/uint.d.ts +0 -32
  207. package/lib/uint.d.ts.map +0 -1
  208. package/lib/uint.js +0 -28
  209. package/lib/uint.js.map +0 -1
  210. package/lib/uri.d.ts +0 -94
  211. package/lib/uri.d.ts.map +0 -1
  212. package/lib/uri.js +0 -231
  213. package/lib/uri.js.map +0 -1
  214. package/lib/utils/ansi.d.ts +0 -5
  215. package/lib/utils/ansi.d.ts.map +0 -1
  216. package/lib/utils/ansi.js +0 -14
  217. package/lib/utils/ansi.js.map +0 -1
  218. package/lib/utils/arrays.d.ts +0 -66
  219. package/lib/utils/arrays.d.ts.map +0 -1
  220. package/lib/utils/arrays.js +0 -260
  221. package/lib/utils/arrays.js.map +0 -1
  222. package/lib/utils/buffer.d.ts +0 -35
  223. package/lib/utils/buffer.d.ts.map +0 -1
  224. package/lib/utils/buffer.js +0 -174
  225. package/lib/utils/buffer.js.map +0 -1
  226. package/lib/utils/comparers.d.ts.map +0 -1
  227. package/lib/utils/comparers.js.map +0 -1
  228. package/lib/utils/decorators.d.ts +0 -11
  229. package/lib/utils/decorators.d.ts.map +0 -1
  230. package/lib/utils/decorators.js +0 -151
  231. package/lib/utils/decorators.js.map +0 -1
  232. package/lib/utils/file-uri.d.ts +0 -15
  233. package/lib/utils/file-uri.d.ts.map +0 -1
  234. package/lib/utils/file-uri.js +0 -46
  235. package/lib/utils/file-uri.js.map +0 -1
  236. package/lib/utils/glob.d.ts +0 -46
  237. package/lib/utils/glob.d.ts.map +0 -1
  238. package/lib/utils/glob.js +0 -556
  239. package/lib/utils/glob.js.map +0 -1
  240. package/lib/utils/hash.d.ts +0 -38
  241. package/lib/utils/hash.d.ts.map +0 -1
  242. package/lib/utils/hash.js +0 -294
  243. package/lib/utils/hash.js.map +0 -1
  244. package/lib/utils/index.d.ts +0 -15
  245. package/lib/utils/index.d.ts.map +0 -1
  246. package/lib/utils/index.js +0 -18
  247. package/lib/utils/index.js.map +0 -1
  248. package/lib/utils/json.d.ts +0 -76
  249. package/lib/utils/json.d.ts.map +0 -1
  250. package/lib/utils/json.js +0 -188
  251. package/lib/utils/json.js.map +0 -1
  252. package/lib/utils/markdown.d.ts.map +0 -1
  253. package/lib/utils/markdown.js.map +0 -1
  254. package/lib/utils/marshalling.d.ts +0 -7
  255. package/lib/utils/marshalling.d.ts.map +0 -1
  256. package/lib/utils/marshalling.js +0 -59
  257. package/lib/utils/marshalling.js.map +0 -1
  258. package/lib/utils/objects.d.ts +0 -6
  259. package/lib/utils/objects.d.ts.map +0 -1
  260. package/lib/utils/objects.js +0 -103
  261. package/lib/utils/objects.js.map +0 -1
  262. package/lib/utils/os.d.ts +0 -49
  263. package/lib/utils/os.d.ts.map +0 -1
  264. package/lib/utils/os.js +0 -98
  265. package/lib/utils/os.js.map +0 -1
  266. package/lib/utils/paths.d.ts +0 -35
  267. package/lib/utils/paths.d.ts.map +0 -1
  268. package/lib/utils/paths.js +0 -313
  269. package/lib/utils/paths.js.map +0 -1
  270. package/lib/utils/promise-util.d.ts +0 -10
  271. package/lib/utils/promise-util.d.ts.map +0 -1
  272. package/lib/utils/promise-util.js +0 -17
  273. package/lib/utils/promise-util.js.map +0 -1
  274. package/lib/utils/strings.d.ts +0 -181
  275. package/lib/utils/strings.d.ts.map +0 -1
  276. package/lib/utils/strings.js +0 -858
  277. package/lib/utils/strings.js.map +0 -1
  278. package/lib/utils/types.d.ts +0 -69
  279. package/lib/utils/types.d.ts.map +0 -1
  280. package/lib/utils/types.js +0 -201
  281. package/lib/utils/types.js.map +0 -1
  282. package/lib/uuid.d.ts +0 -2
  283. package/lib/uuid.d.ts.map +0 -1
  284. package/lib/uuid.js +0 -10
  285. package/lib/uuid.js.map +0 -1
@@ -1,151 +0,0 @@
1
- "use strict";
2
- /* ---------------------------------------------------------------------------------------------
3
- * Copyright (c) Microsoft Corporation. All rights reserved.
4
- * Licensed under the MIT License. See License.txt in the project root for license information.
5
- *--------------------------------------------------------------------------------------------*/
6
- // Some code copied and modified from https://github.com/microsoft/vscode/blob/1.44.0/src/vs/base/common/decorators.ts
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.es5ClassCompat = exports.throttle = exports.debounce = exports.memoize = exports.createMemoizer = exports.createDecorator = void 0;
9
- function createDecorator(mapFn) {
10
- return (target, key, descriptor) => {
11
- let fnKey = null;
12
- let fn = null;
13
- if (typeof descriptor.value === 'function') {
14
- fnKey = 'value';
15
- fn = descriptor.value;
16
- }
17
- else if (typeof descriptor.get === 'function') {
18
- fnKey = 'get';
19
- fn = descriptor.get;
20
- }
21
- if (!fn) {
22
- throw new Error('not supported');
23
- }
24
- descriptor[fnKey] = mapFn(fn, key);
25
- };
26
- }
27
- exports.createDecorator = createDecorator;
28
- let memoizeId = 0;
29
- function createMemoizer() {
30
- const memoizeKeyPrefix = `$memoize${memoizeId++}`;
31
- let self;
32
- const result = function memoize(target, key, descriptor) {
33
- let fnKey = null;
34
- let fn = null;
35
- if (typeof descriptor.value === 'function') {
36
- fnKey = 'value';
37
- fn = descriptor.value;
38
- if (fn.length !== 0) {
39
- // eslint-disable-next-line no-console
40
- console.warn('Memoize should only be used in functions with zero parameters');
41
- }
42
- }
43
- else if (typeof descriptor.get === 'function') {
44
- fnKey = 'get';
45
- fn = descriptor.get;
46
- }
47
- if (!fn) {
48
- throw new Error('not supported');
49
- }
50
- const memoizeKey = `${memoizeKeyPrefix}:${key}`;
51
- descriptor[fnKey] = function (...args) {
52
- self = this;
53
- if (!this.hasOwnProperty(memoizeKey)) {
54
- Object.defineProperty(this, memoizeKey, {
55
- configurable: true,
56
- enumerable: false,
57
- writable: true,
58
- value: fn.apply(this, args),
59
- });
60
- }
61
- return this[memoizeKey];
62
- };
63
- };
64
- result.clear = () => {
65
- if (typeof self === 'undefined') {
66
- return;
67
- }
68
- Object.getOwnPropertyNames(self).forEach((property) => {
69
- if (property.indexOf(memoizeKeyPrefix) === 0) {
70
- delete self[property];
71
- }
72
- });
73
- };
74
- return result;
75
- }
76
- exports.createMemoizer = createMemoizer;
77
- function memoize(target, key, descriptor) {
78
- return createMemoizer()(target, key, descriptor);
79
- }
80
- exports.memoize = memoize;
81
- function debounce(delay, reducer, initialValueProvider) {
82
- return createDecorator((fn, key) => {
83
- const timerKey = `$debounce$${key}`;
84
- const resultKey = `$debounce$result$${key}`;
85
- return function (...args) {
86
- if (!this[resultKey]) {
87
- this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
88
- }
89
- clearTimeout(this[timerKey]);
90
- if (reducer) {
91
- this[resultKey] = reducer(this[resultKey], ...args);
92
- args = [this[resultKey]];
93
- }
94
- this[timerKey] = setTimeout(() => {
95
- fn.apply(this, args);
96
- this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
97
- }, delay);
98
- };
99
- });
100
- }
101
- exports.debounce = debounce;
102
- function throttle(delay, reducer, initialValueProvider) {
103
- return createDecorator((fn, key) => {
104
- const timerKey = `$throttle$timer$${key}`;
105
- const resultKey = `$throttle$result$${key}`;
106
- const lastRunKey = `$throttle$lastRun$${key}`;
107
- const pendingKey = `$throttle$pending$${key}`;
108
- return function (...args) {
109
- if (!this[resultKey]) {
110
- this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
111
- }
112
- if (this[lastRunKey] === null || this[lastRunKey] === undefined) {
113
- this[lastRunKey] = -Number.MAX_VALUE;
114
- }
115
- if (reducer) {
116
- this[resultKey] = reducer(this[resultKey], ...args);
117
- }
118
- if (this[pendingKey]) {
119
- return;
120
- }
121
- const nextTime = this[lastRunKey] + delay;
122
- if (nextTime <= Date.now()) {
123
- this[lastRunKey] = Date.now();
124
- fn.apply(this, [this[resultKey]]);
125
- this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
126
- }
127
- else {
128
- this[pendingKey] = true;
129
- this[timerKey] = setTimeout(() => {
130
- this[pendingKey] = false;
131
- this[lastRunKey] = Date.now();
132
- fn.apply(this, [this[resultKey]]);
133
- this[resultKey] = initialValueProvider ? initialValueProvider() : undefined;
134
- }, nextTime - Date.now());
135
- }
136
- };
137
- });
138
- }
139
- exports.throttle = throttle;
140
- function es5ClassCompat(target) {
141
- function _() {
142
- // @ts-ignore
143
- return Reflect.construct(target, arguments, this.constructor);
144
- }
145
- Object.defineProperty(_, 'name', Object.getOwnPropertyDescriptor(target, 'name'));
146
- Object.setPrototypeOf(_, target);
147
- Object.setPrototypeOf(_.prototype, target.prototype);
148
- return _;
149
- }
150
- exports.es5ClassCompat = es5ClassCompat;
151
- //# sourceMappingURL=decorators.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/utils/decorators.ts"],"names":[],"mappings":";AAAA;;;gGAGgG;AAChG,sHAAsH;;;AAEtH,SAAgB,eAAe,CAAC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AI,CAAC,GAAG,EAAE,CAAC;oBAC9B,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;oBAClC,IAAI,CAAC,SAAS,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;gBAC9E,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;aAC3B;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAvCD,4BAuCC;AAED,SAAgB,cAAc,CAAC,MAAW;IACxC,SAAS,CAAC;QACR,aAAa;QACb,OAAO,OAAO,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAChE,CAAC;IACD,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,MAAM,CAAE,CAAC,CAAC;IACnF,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IACjC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC;IACrD,OAAO,CAAC,CAAC;AACX,CAAC;AATD,wCASC"}
@@ -1,15 +0,0 @@
1
- import { URI } from '../uri';
2
- export declare namespace FileUri {
3
- /**
4
- * Creates a new file URI from the filesystem path argument.
5
- * @param fsPath the filesystem path.
6
- */
7
- function create(_fsPath: string): URI;
8
- /**
9
- * Returns with the platform specific FS path that is represented by the URI argument.
10
- *
11
- * @param uri the file URI that has to be resolved to a platform specific FS path.
12
- */
13
- function fsPath(uri: URI | string): string;
14
- }
15
- //# sourceMappingURL=file-uri.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-uri.d.ts","sourceRoot":"","sources":["../../src/utils/file-uri.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAO,MAAM,QAAQ,CAAC;AAIlC,yBAAiB,OAAO,CAAC;IAGvB;;;OAGG;IACH,SAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,OAErC;IAED;;;;OAIG;IACH,SAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,GAAG,MAAM,CAoBhD;CACF"}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FileUri = void 0;
4
- const uri_1 = require("../uri");
5
- const os_1 = require("./os");
6
- var FileUri;
7
- (function (FileUri) {
8
- const windowsDriveRegex = /^([^:/?#]+?):$/;
9
- /**
10
- * Creates a new file URI from the filesystem path argument.
11
- * @param fsPath the filesystem path.
12
- */
13
- function create(_fsPath) {
14
- return new uri_1.URI(uri_1.Uri.file(_fsPath));
15
- }
16
- FileUri.create = create;
17
- /**
18
- * Returns with the platform specific FS path that is represented by the URI argument.
19
- *
20
- * @param uri the file URI that has to be resolved to a platform specific FS path.
21
- */
22
- function fsPath(uri) {
23
- if (typeof uri === 'string') {
24
- return fsPath(new uri_1.URI(uri));
25
- }
26
- else {
27
- /*
28
- * A uri for the root of a Windows drive, eg file:\\\c%3A, is converted to c:
29
- * by the Uri class. However file:\\\c%3A is unambiguously a uri to the root of
30
- * the drive and c: is interpreted as the default directory for the c drive
31
- * (by, for example, the readdir function in the fs-extra module).
32
- * A backslash must be appended to the drive, eg c:\, to ensure the correct path.
33
- */
34
- const fsPathFromVsCodeUri = uri.codeUri.fsPath;
35
- if (os_1.isWindows) {
36
- const isWindowsDriveRoot = windowsDriveRegex.exec(fsPathFromVsCodeUri);
37
- if (isWindowsDriveRoot) {
38
- return fsPathFromVsCodeUri + '\\';
39
- }
40
- }
41
- return fsPathFromVsCodeUri;
42
- }
43
- }
44
- FileUri.fsPath = fsPath;
45
- })(FileUri = exports.FileUri || (exports.FileUri = {}));
46
- //# sourceMappingURL=file-uri.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file-uri.js","sourceRoot":"","sources":["../../src/utils/file-uri.ts"],"names":[],"mappings":";;;AAAA,gCAAkC;AAElC,6BAAiC;AAEjC,IAAiB,OAAO,CAqCvB;AArCD,WAAiB,OAAO;IACtB,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;IAE3C;;;OAGG;IACH,SAAgB,MAAM,CAAC,OAAe;QACpC,OAAO,IAAI,SAAG,CAAC,SAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACpC,CAAC;IAFe,cAAM,SAErB,CAAA;IAED;;;;OAIG;IACH,SAAgB,MAAM,CAAC,GAAiB;QACtC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YAC3B,OAAO,MAAM,CAAC,IAAI,SAAG,CAAC,GAAG,CAAC,CAAC,CAAC;SAC7B;aAAM;YACL;;;;;;eAMG;YACH,MAAM,mBAAmB,GAAI,GAAW,CAAC,OAAO,CAAC,MAAM,CAAC;YACxD,IAAI,cAAS,EAAE;gBACb,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBACvE,IAAI,kBAAkB,EAAE;oBACtB,OAAO,mBAAmB,GAAG,IAAI,CAAC;iBACnC;aACF;YACD,OAAO,mBAAmB,CAAC;SAC5B;IACH,CAAC;IApBe,cAAM,SAoBrB,CAAA;AACH,CAAC,EArCgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAqCvB"}
@@ -1,46 +0,0 @@
1
- export interface IExpression {
2
- [pattern: string]: boolean | SiblingClause;
3
- }
4
- export interface IRelativePattern {
5
- base: string;
6
- pattern: string;
7
- }
8
- export declare function getEmptyExpression(): IExpression;
9
- export interface SiblingClause {
10
- when: string;
11
- }
12
- export declare function splitGlobAware(pattern: string, splitChar: string): string[];
13
- export declare type ParsedPattern = (path: string, basename?: string) => boolean;
14
- export declare type ParsedExpression = (path: string, basename?: string, hasSibling?: (name: string) => boolean | Promise<boolean>) => string | null | Promise<string | null>;
15
- export interface IGlobOptions {
16
- /**
17
- * Simplify patterns for use as exclusion filters during tree traversal to skip entire subtrees. Cannot be used outside of a tree traversal.
18
- */
19
- trimForExclusions?: boolean;
20
- }
21
- /**
22
- * Simplified glob matching. Supports a subset of glob patterns:
23
- * - * matches anything inside a path segment
24
- * - ? matches 1 character inside a path segment
25
- * - ** matches anything including an empty path segment
26
- * - simple brace expansion ({js,ts} => js or ts)
27
- * - character ranges (using [...])
28
- */
29
- export declare function match(pattern: string | IRelativePattern, path: string): boolean;
30
- export declare function match(expression: IExpression, path: string, hasSibling?: (name: string) => boolean): string;
31
- /**
32
- * Simplified glob matching. Supports a subset of glob patterns:
33
- * - * matches anything inside a path segment
34
- * - ? matches 1 character inside a path segment
35
- * - ** matches anything including an empty path segment
36
- * - simple brace expansion ({js,ts} => js or ts)
37
- * - character ranges (using [...])
38
- */
39
- export declare function parse(pattern: string | IRelativePattern, options?: IGlobOptions): ParsedPattern;
40
- export declare function parse(expression: IExpression, options?: IGlobOptions): ParsedExpression;
41
- export declare function hasSiblingPromiseFn(siblingsFn?: () => Promise<string[]>): ((name: string) => Promise<boolean>) | undefined;
42
- export declare function hasSiblingFn(siblingsFn?: () => string[]): ((name: string) => boolean) | undefined;
43
- export declare function isRelativePattern(obj: unknown): obj is IRelativePattern;
44
- export declare function getBasenameTerms(patternOrExpression: ParsedPattern | ParsedExpression): string[];
45
- export declare function getPathTerms(patternOrExpression: ParsedPattern | ParsedExpression): string[];
46
- //# sourceMappingURL=glob.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/utils/glob.ts"],"names":[],"mappings":"AAeA,MAAM,WAAW,WAAW;IAC1B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,GAAG,aAAa,CAAC;CAC5C;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,kBAAkB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