@kusto/monaco-kusto 12.0.0 → 12.0.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 (29) hide show
  1. package/README.md +6 -0
  2. package/package.json +1 -1
  3. package/release/dev/kustoMode-d3f9e09a.js +1818 -0
  4. package/release/dev/kustoMode.js +4 -1757
  5. package/release/dev/kustoWorker.js +2 -2
  6. package/release/dev/{main-b690e47e.js → main-f36cb42f.js} +2 -2
  7. package/release/dev/monaco.contribution.js +72 -66
  8. package/release/dev/{schema-957f5e9b.js → schema-077630e6.js} +2 -2
  9. package/release/esm/kusto.worker.js +2 -2
  10. package/release/esm/kustoMode-349f5467.js +957 -0
  11. package/release/esm/kustoMode.d.ts +4 -8
  12. package/release/esm/kustoMode.js +91 -111
  13. package/release/esm/languageFeatures.d.ts +1 -1
  14. package/release/esm/languageServiceManager/schema.d.ts +2 -2
  15. package/release/esm/monaco.contribution.js +42 -9
  16. package/release/esm/{schema-66580db4.js → schema-b8f0ba9b.js} +1 -1
  17. package/release/esm/syntaxHighlighting/SemanticTokensProvider.d.ts +1 -1
  18. package/release/esm/syntaxHighlighting/SemanticTokensProvider.js +3 -3
  19. package/release/esm/syntaxHighlighting/semanticTokensProviderRegistrar.d.ts +6 -0
  20. package/release/esm/syntaxHighlighting/semanticTokensProviderRegistrar.js +23 -0
  21. package/release/min/kustoMode-2dd4a01e.js +7 -0
  22. package/release/min/kustoMode.js +2 -2
  23. package/release/min/kustoWorker.js +2 -2
  24. package/release/min/{main-13659fc4.js → main-86d6c837.js} +2 -2
  25. package/release/min/monaco.contribution.js +2 -2
  26. package/release/min/{schema-ab3cbb28.js → schema-a60c216c.js} +2 -2
  27. package/release/dev/globals-0aacfe72.js +0 -46
  28. package/release/esm/globals-88d92b64.js +0 -40
  29. package/release/min/globals-cce7b304.js +0 -7
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.0(2f1838c12bdb98562467acf51b6fd3e396182e86)
3
+ * monaco-kusto version: 12.0.1(56b90ce0fd31e7d6792f5098d1e8204274966b6e)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/kustoWorker', ['exports', './main-b690e47e', './schema-957f5e9b'], (function (exports, main, schema) { 'use strict';
8
+ define('vs/language/kusto/kustoWorker', ['exports', './main-f36cb42f', './schema-077630e6'], (function (exports, main, schema) { 'use strict';
9
9
 
10
10
  function _slicedToArray$2(r, e) { return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2(); }
11
11
  function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.0(2f1838c12bdb98562467acf51b6fd3e396182e86)
3
+ * monaco-kusto version: 12.0.1(56b90ce0fd31e7d6792f5098d1e8204274966b6e)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/main-b690e47e', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/main-f36cb42f', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  /* --------------------------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.0(2f1838c12bdb98562467acf51b6fd3e396182e86)
3
+ * monaco-kusto version: 12.0.1(56b90ce0fd31e7d6792f5098d1e8204274966b6e)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './globals-0aacfe72', './schema-957f5e9b'], (function (require, exports, monaco, globals, schema) { 'use strict';
8
+ define('vs/language/kusto/monaco.contribution', ['exports', 'vs/editor/editor.main', './kustoMode-d3f9e09a', './schema-077630e6', './main-f36cb42f'], (function (exports, monaco, kustoMode, schema, main) { 'use strict';
9
9
 
10
10
  function _interopNamespaceDefault(e) {
11
11
  var n = Object.create(null);
@@ -218,79 +218,79 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
218
218
  token: '',
219
219
  foreground: colors.black
220
220
  }, {
221
- token: globals.Token.PlainText,
221
+ token: kustoMode.Token.PlainText,
222
222
  foreground: colors.black
223
223
  }, {
224
- token: globals.Token.Comment,
224
+ token: kustoMode.Token.Comment,
225
225
  foreground: colors.green
226
226
  }, {
227
- token: globals.Token.Punctuation,
227
+ token: kustoMode.Token.Punctuation,
228
228
  foreground: colors.black
229
229
  }, {
230
- token: globals.Token.Directive,
230
+ token: kustoMode.Token.Directive,
231
231
  foreground: colors.darkViolet
232
232
  }, {
233
- token: globals.Token.Literal,
233
+ token: kustoMode.Token.Literal,
234
234
  foreground: colors.black
235
235
  }, {
236
- token: globals.Token.StringLiteral,
236
+ token: kustoMode.Token.StringLiteral,
237
237
  foreground: colors.firebrick
238
238
  }, {
239
- token: globals.Token.Type,
239
+ token: kustoMode.Token.Type,
240
240
  foreground: colors.blue
241
241
  }, {
242
- token: globals.Token.Column,
242
+ token: kustoMode.Token.Column,
243
243
  foreground: colors.mediumVioletRed
244
244
  }, {
245
- token: globals.Token.Table,
245
+ token: kustoMode.Token.Table,
246
246
  foreground: colors.darkOrchid
247
247
  }, {
248
- token: globals.Token.Database,
248
+ token: kustoMode.Token.Database,
249
249
  foreground: colors.darkOrchid
250
250
  }, {
251
- token: globals.Token.Function,
251
+ token: kustoMode.Token.Function,
252
252
  foreground: colors.blue
253
253
  }, {
254
- token: globals.Token.Parameter,
254
+ token: kustoMode.Token.Parameter,
255
255
  foreground: colors.midnightBlue
256
256
  }, {
257
- token: globals.Token.Variable,
257
+ token: kustoMode.Token.Variable,
258
258
  foreground: colors.midnightBlue
259
259
  }, {
260
- token: globals.Token.Identifier,
260
+ token: kustoMode.Token.Identifier,
261
261
  foreground: colors.black
262
262
  }, {
263
- token: globals.Token.ClientParameter,
263
+ token: kustoMode.Token.ClientParameter,
264
264
  foreground: colors.tealBlue
265
265
  }, {
266
- token: globals.Token.QueryParameter,
266
+ token: kustoMode.Token.QueryParameter,
267
267
  foreground: colors.tealBlue
268
268
  }, {
269
- token: globals.Token.ScalarParameter,
269
+ token: kustoMode.Token.ScalarParameter,
270
270
  foreground: colors.blue
271
271
  }, {
272
- token: globals.Token.MathOperator,
272
+ token: kustoMode.Token.MathOperator,
273
273
  foreground: colors.black
274
274
  }, {
275
- token: globals.Token.QueryOperator,
275
+ token: kustoMode.Token.QueryOperator,
276
276
  foreground: colors.orangeRed
277
277
  }, {
278
- token: globals.Token.Command,
278
+ token: kustoMode.Token.Command,
279
279
  foreground: colors.blue
280
280
  }, {
281
- token: globals.Token.Keyword,
281
+ token: kustoMode.Token.Keyword,
282
282
  foreground: colors.blue
283
283
  }, {
284
- token: globals.Token.MaterializedView,
284
+ token: kustoMode.Token.MaterializedView,
285
285
  foreground: colors.darkOrchid
286
286
  }, {
287
- token: globals.Token.SchemaMember,
287
+ token: kustoMode.Token.SchemaMember,
288
288
  foreground: colors.black
289
289
  }, {
290
- token: globals.Token.SignatureParameter,
290
+ token: kustoMode.Token.SignatureParameter,
291
291
  foreground: colors.black
292
292
  }, {
293
- token: globals.Token.Option,
293
+ token: kustoMode.Token.Option,
294
294
  foreground: colors.black
295
295
  }],
296
296
  colors: {}
@@ -302,79 +302,79 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
302
302
  token: '',
303
303
  foreground: colors.white
304
304
  }, {
305
- token: globals.Token.PlainText,
305
+ token: kustoMode.Token.PlainText,
306
306
  foreground: colors.white
307
307
  }, {
308
- token: globals.Token.Comment,
308
+ token: kustoMode.Token.Comment,
309
309
  foreground: colors.oliveDrab
310
310
  }, {
311
- token: globals.Token.Punctuation,
311
+ token: kustoMode.Token.Punctuation,
312
312
  foreground: colors.white
313
313
  }, {
314
- token: globals.Token.Directive,
314
+ token: kustoMode.Token.Directive,
315
315
  foreground: colors.lightGoldenrodYellow
316
316
  }, {
317
- token: globals.Token.Literal,
317
+ token: kustoMode.Token.Literal,
318
318
  foreground: colors.white
319
319
  }, {
320
- token: globals.Token.StringLiteral,
320
+ token: kustoMode.Token.StringLiteral,
321
321
  foreground: colors.paleChestnut
322
322
  }, {
323
- token: globals.Token.Type,
323
+ token: kustoMode.Token.Type,
324
324
  foreground: colors.skyBlue
325
325
  }, {
326
- token: globals.Token.Column,
326
+ token: kustoMode.Token.Column,
327
327
  foreground: colors.paleVioletRed
328
328
  }, {
329
- token: globals.Token.Table,
329
+ token: kustoMode.Token.Table,
330
330
  foreground: colors.softGold
331
331
  }, {
332
- token: globals.Token.Database,
332
+ token: kustoMode.Token.Database,
333
333
  foreground: colors.softGold
334
334
  }, {
335
- token: globals.Token.Function,
335
+ token: kustoMode.Token.Function,
336
336
  foreground: colors.skyBlue
337
337
  }, {
338
- token: globals.Token.Parameter,
338
+ token: kustoMode.Token.Parameter,
339
339
  foreground: colors.lightSkyBlue
340
340
  }, {
341
- token: globals.Token.Variable,
341
+ token: kustoMode.Token.Variable,
342
342
  foreground: colors.lightSkyBlue
343
343
  }, {
344
- token: globals.Token.Identifier,
344
+ token: kustoMode.Token.Identifier,
345
345
  foreground: colors.white
346
346
  }, {
347
- token: globals.Token.ClientParameter,
347
+ token: kustoMode.Token.ClientParameter,
348
348
  foreground: colors.tealBlue
349
349
  }, {
350
- token: globals.Token.QueryParameter,
350
+ token: kustoMode.Token.QueryParameter,
351
351
  foreground: colors.tealBlue
352
352
  }, {
353
- token: globals.Token.ScalarParameter,
353
+ token: kustoMode.Token.ScalarParameter,
354
354
  foreground: colors.skyBlue
355
355
  }, {
356
- token: globals.Token.MathOperator,
356
+ token: kustoMode.Token.MathOperator,
357
357
  foreground: colors.white
358
358
  }, {
359
- token: globals.Token.QueryOperator,
359
+ token: kustoMode.Token.QueryOperator,
360
360
  foreground: colors.mediumTurquoise
361
361
  }, {
362
- token: globals.Token.Command,
362
+ token: kustoMode.Token.Command,
363
363
  foreground: colors.skyBlue
364
364
  }, {
365
- token: globals.Token.Keyword,
365
+ token: kustoMode.Token.Keyword,
366
366
  foreground: colors.skyBlue
367
367
  }, {
368
- token: globals.Token.MaterializedView,
368
+ token: kustoMode.Token.MaterializedView,
369
369
  foreground: colors.softGold
370
370
  }, {
371
- token: globals.Token.SchemaMember,
371
+ token: kustoMode.Token.SchemaMember,
372
372
  foreground: colors.black
373
373
  }, {
374
- token: globals.Token.SignatureParameter,
374
+ token: kustoMode.Token.SignatureParameter,
375
375
  foreground: colors.black
376
376
  }, {
377
- token: globals.Token.Option,
377
+ token: kustoMode.Token.Option,
378
378
  foreground: colors.black
379
379
  }],
380
380
  colors: {
@@ -403,17 +403,18 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
403
403
  return colorizedLines.join('<br/>');
404
404
  }
405
405
 
406
+ function _regeneratorRuntime() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
406
407
  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); }
407
408
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
408
409
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
410
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
411
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
409
412
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
410
413
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
411
414
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
412
415
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
413
416
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
414
417
  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); }
415
-
416
- // --- Kusto configuration and defaults ---------
417
418
  var LanguageServiceDefaultsImpl = /*#__PURE__*/function () {
418
419
  // in milliseconds. For example - this is 2 minutes 2 * 60 * 1000
419
420
 
@@ -481,23 +482,28 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
481
482
  }
482
483
  };
483
484
  function getKustoWorker() {
484
- return new Promise(function (resolve, reject) {
485
- withMode(function (mode) {
486
- mode.getKustoWorker().then(resolve, reject);
487
- });
488
- });
485
+ return _getKustoWorker.apply(this, arguments);
489
486
  }
490
- function withMode(callback) {
491
- new Promise(function (resolve, reject) { require(['./kustoMode'], resolve, reject); }).then(callback);
487
+ function _getKustoWorker() {
488
+ _getKustoWorker = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
489
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
490
+ while (1) switch (_context.prev = _context.next) {
491
+ case 0:
492
+ return _context.abrupt("return", kustoMode.getKustoWorker());
493
+ case 1:
494
+ case "end":
495
+ return _context.stop();
496
+ }
497
+ }, _callee);
498
+ }));
499
+ return _getKustoWorker.apply(this, arguments);
492
500
  }
493
501
  var kustoDefaults = new LanguageServiceDefaultsImpl(defaultLanguageSettings);
494
- monaco__namespace.languages.onLanguage('kusto', function () {
495
- withMode(function (mode) {
496
- return mode.setupMode(kustoDefaults, monaco__namespace);
497
- });
502
+ monaco__namespace.languages.onLanguage(kustoMode.LANGUAGE_ID, function () {
503
+ kustoMode.setupMode(kustoDefaults, monaco__namespace);
498
504
  });
499
505
  monaco__namespace.languages.register({
500
- id: globals.LANGUAGE_ID,
506
+ id: kustoMode.LANGUAGE_ID,
501
507
  extensions: ['.csl', '.kql']
502
508
  });
503
509
  themes.forEach(function (_ref) {
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.0(2f1838c12bdb98562467acf51b6fd3e396182e86)
3
+ * monaco-kusto version: 12.0.1(56b90ce0fd31e7d6792f5098d1e8204274966b6e)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/schema-957f5e9b', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/schema-077630e6', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  // Definition of schema object in the context of language services. This model is exposed to consumers of this library.
11
11
 
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 12.0.0(2f1838c12bdb98562467acf51b6fd3e396182e86)
3
+ * monaco-kusto version: 12.0.1(56b90ce0fd31e7d6792f5098d1e8204274966b6e)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -8,7 +8,7 @@
8
8
  import * as worker from 'monaco-editor/esm/vs/editor/editor.worker';
9
9
  import * as ls from 'vscode-languageserver-types';
10
10
  import XRegExp from 'xregexp';
11
- import { a as getEntityDataTypeFromCslType, b as getCallName, c as getExpression, g as getCslTypeNameFromClrType } from './schema-66580db4.js';
11
+ import { a as getEntityDataTypeFromCslType, b as getCallName, c as getExpression, g as getCslTypeNameFromClrType } from './schema-b8f0ba9b.js';
12
12
  import '@kusto/language-service/bridge.min';
13
13
  import '@kusto/language-service/Kusto.JavaScript.Client.min';
14
14
  import '@kusto/language-service/newtonsoft.json.min';