@kusto/monaco-kusto 6.1.2 → 6.2.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.
@@ -1,11 +1,30 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 6.1.2(4c9ec21ad04b49f9f8e8a8f7fe773fe9a8b47334)
3
+ * monaco-kusto version: 6.2.0(8e26147bc7c3b5a7a3bc6ee55311dfa0b612c10c)
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'], (function (require, exports, editor_main) { 'use strict';
8
+ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main'], (function (require, exports, monaco$1) { 'use strict';
9
+
10
+ function _interopNamespaceDefault(e) {
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var monaco__namespace = /*#__PURE__*/_interopNamespaceDefault(monaco$1);
9
28
 
10
29
  function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$2(obj); }
11
30
  function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -92,7 +111,7 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
92
111
  return;
93
112
  }
94
113
  // Theoretically you would expect this code to run only once in onDidCreateEditor.
95
- // Turns out that onDidCreateEditor is fired before the IStandaloneEditor is completely created (it is emmited by
114
+ // Turns out that onDidCreateEditor is fired before the IStandaloneEditor is completely created (it is emitted by
96
115
  // the super ctor before the child ctor was able to fully run).
97
116
  // Thus we don't have a key binding provided yet when onDidCreateEditor is run, which is essential to call addAction.
98
117
  // By adding the action here in onDidChangeCursorSelection we're making sure that the editor has a key binding provider,
@@ -165,7 +184,6 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
165
184
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
166
185
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
167
186
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
168
-
169
187
  // --- Kusto configuration and defaults ---------
170
188
 
171
189
  var LanguageServiceDefaultsImpl = /*#__PURE__*/function () {
@@ -173,7 +191,7 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
173
191
 
174
192
  function LanguageServiceDefaultsImpl(languageSettings) {
175
193
  _classCallCheck(this, LanguageServiceDefaultsImpl);
176
- _defineProperty(this, "_onDidChange", new monaco.Emitter());
194
+ _defineProperty(this, "_onDidChange", new monaco__namespace.Emitter());
177
195
  this.setLanguageSettings(languageSettings);
178
196
  // default to never kill worker when idle.
179
197
  // reason: when killing worker - schema gets lost. We transmit the schema back to main process when killing
@@ -245,251 +263,242 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
245
263
  function withMode(callback) {
246
264
  new Promise(function (resolve, reject) { require(['./kustoMode'], resolve, reject); }).then(callback);
247
265
  }
248
- function setupMonacoKusto(monacoInstance) {
249
- var kustoDefaults = new LanguageServiceDefaultsImpl(defaultLanguageSettings);
250
- function createAPI() {
251
- return {
252
- kustoDefaults: kustoDefaults,
253
- getKustoWorker: getKustoWorker
254
- };
255
- }
256
- monacoInstance.languages.kusto = createAPI();
257
- monacoInstance.languages.onLanguage('kusto', function () {
258
- withMode(function (mode) {
259
- return mode.setupMode(kustoDefaults, monacoInstance);
260
- });
261
- });
262
- monacoInstance.languages.register({
263
- id: 'kusto',
264
- extensions: ['.csl', '.kql']
265
- });
266
- monacoInstance.editor.defineTheme('kusto-light', {
267
- base: 'vs',
268
- inherit: true,
269
- rules: [{
270
- token: 'comment',
271
- foreground: '008000'
272
- },
273
- // CommentToken Green
274
- {
275
- token: 'variable.predefined',
276
- foreground: '800080'
277
- },
278
- // CalculatedColumnToken Purple
279
- {
280
- token: 'function',
281
- foreground: '0000FF'
282
- },
283
- // FunctionNameToken Blue
284
- {
285
- token: 'operator.sql',
286
- foreground: 'CC3700'
287
- },
288
- // _WAS_ OperatorToken OrangeRed, but wasn't accessible.
289
- {
290
- token: 'string',
291
- foreground: 'B22222'
292
- },
293
- // StringLiteralToken Firebrick
294
- {
295
- token: 'operator.scss',
296
- foreground: '0000FF'
297
- },
298
- // SubOperatorToken Blue
299
- {
300
- token: 'variable',
301
- foreground: 'C71585'
302
- },
303
- // TableColumnToken MediumVioletRed
304
- {
305
- token: 'variable.parameter',
306
- foreground: '9932CC'
307
- },
308
- // TableToken DarkOrchid
309
- {
310
- token: '',
311
- foreground: '000000'
312
- },
313
- // UnknownToken, PlainTextToken Black
314
- {
315
- token: 'type',
316
- foreground: '0000FF'
317
- },
318
- // DataTypeToken Blue
319
- {
320
- token: 'tag',
321
- foreground: '0000FF'
322
- },
323
- // ControlCommandToken Blue
324
- {
325
- token: 'annotation',
326
- foreground: '2B91AF'
327
- },
328
- // QueryParametersToken FF2B91AF
329
- {
330
- token: 'keyword',
331
- foreground: '0000FF'
332
- },
333
- // CslCommandToken, PluginToken Blue
334
- {
335
- token: 'number',
336
- foreground: '191970'
337
- },
338
- // LetVariablesToken MidnightBlue
339
- {
340
- token: 'annotation',
341
- foreground: '9400D3'
342
- },
343
- // ClientDirectiveToken DarkViolet
344
- {
345
- token: 'invalid',
346
- background: 'cd3131'
347
- }],
348
- colors: {}
349
- });
350
- monacoInstance.editor.defineTheme('kusto-dark', {
351
- base: 'vs-dark',
352
- inherit: true,
353
- rules: [{
354
- token: 'comment',
355
- foreground: '608B4E'
356
- },
357
- // CommentToken Green
358
- {
359
- token: 'variable.predefined',
360
- foreground: '4ec9b0'
361
- },
362
- // CalculatedColumnToken Purple
363
- {
364
- token: 'function',
365
- foreground: 'dcdcaa'
366
- },
367
- // FunctionNameToken Blue
368
- {
369
- token: 'operator.sql',
370
- foreground: '9cdcfe'
371
- },
372
- // OperatorToken OrangeRed
373
- {
374
- token: 'string',
375
- foreground: 'ce9178'
376
- },
377
- // StringLiteralToken Firebrick
378
- {
379
- token: 'operator.scss',
380
- foreground: '569cd6'
381
- },
382
- // SubOperatorToken Blue
383
- {
384
- token: 'variable',
385
- foreground: '4ec9b0'
386
- },
387
- // TableColumnToken MediumVioletRed
388
- {
389
- token: 'variable.parameter',
390
- foreground: 'c586c0'
391
- },
392
- // TableToken DarkOrchid
393
- {
394
- token: '',
395
- foreground: 'd4d4d4'
396
- },
397
- // UnknownToken, PlainTextToken Black
398
- {
399
- token: 'type',
400
- foreground: '569cd6'
401
- },
402
- // DataTypeToken Blue
403
- {
404
- token: 'tag',
405
- foreground: '569cd6'
406
- },
407
- // ControlCommandToken Blue
408
- {
409
- token: 'annotation',
410
- foreground: '9cdcfe'
411
- },
412
- // QueryParametersToken FF2B91AF
413
- {
414
- token: 'keyword',
415
- foreground: '569cd6'
416
- },
417
- // CslCommandToken, PluginToken Blue
418
- {
419
- token: 'number',
420
- foreground: 'd7ba7d'
421
- },
422
- // LetVariablesToken MidnightBlue
423
- {
424
- token: 'annotation',
425
- foreground: 'b5cea8'
426
- },
427
- // ClientDirectiveToken DarkViolet
428
- {
429
- token: 'invalid',
430
- background: 'cd3131'
431
- }],
432
- colors: {
433
- // see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
434
- }
435
- });
436
- monacoInstance.editor.defineTheme('kusto-dark2', {
437
- base: 'vs-dark',
438
- inherit: true,
439
- rules: [],
440
- colors: {
441
- // see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
442
- 'editor.background': '#1B1A19',
443
- // gray 200
444
- 'editorSuggestWidget.selectedBackground': '#004E8C'
445
- }
266
+ var kustoDefaults = new LanguageServiceDefaultsImpl(defaultLanguageSettings);
267
+ monaco__namespace.languages.onLanguage('kusto', function () {
268
+ withMode(function (mode) {
269
+ return mode.setupMode(kustoDefaults, monaco__namespace);
446
270
  });
271
+ });
272
+ monaco__namespace.languages.register({
273
+ id: 'kusto',
274
+ extensions: ['.csl', '.kql']
275
+ });
276
+ monaco__namespace.editor.defineTheme('kusto-light', {
277
+ base: 'vs',
278
+ inherit: true,
279
+ rules: [{
280
+ token: 'comment',
281
+ foreground: '008000'
282
+ },
283
+ // CommentToken Green
284
+ {
285
+ token: 'variable.predefined',
286
+ foreground: '800080'
287
+ },
288
+ // CalculatedColumnToken Purple
289
+ {
290
+ token: 'function',
291
+ foreground: '0000FF'
292
+ },
293
+ // FunctionNameToken Blue
294
+ {
295
+ token: 'operator.sql',
296
+ foreground: 'CC3700'
297
+ },
298
+ // _WAS_ OperatorToken OrangeRed, but wasn't accessible.
299
+ {
300
+ token: 'string',
301
+ foreground: 'B22222'
302
+ },
303
+ // StringLiteralToken Firebrick
304
+ {
305
+ token: 'operator.scss',
306
+ foreground: '0000FF'
307
+ },
308
+ // SubOperatorToken Blue
309
+ {
310
+ token: 'variable',
311
+ foreground: 'C71585'
312
+ },
313
+ // TableColumnToken MediumVioletRed
314
+ {
315
+ token: 'variable.parameter',
316
+ foreground: '9932CC'
317
+ },
318
+ // TableToken DarkOrchid
319
+ {
320
+ token: '',
321
+ foreground: '000000'
322
+ },
323
+ // UnknownToken, PlainTextToken Black
324
+ {
325
+ token: 'type',
326
+ foreground: '0000FF'
327
+ },
328
+ // DataTypeToken Blue
329
+ {
330
+ token: 'tag',
331
+ foreground: '0000FF'
332
+ },
333
+ // ControlCommandToken Blue
334
+ {
335
+ token: 'annotation',
336
+ foreground: '2B91AF'
337
+ },
338
+ // QueryParametersToken FF2B91AF
339
+ {
340
+ token: 'keyword',
341
+ foreground: '0000FF'
342
+ },
343
+ // CslCommandToken, PluginToken Blue
344
+ {
345
+ token: 'number',
346
+ foreground: '191970'
347
+ },
348
+ // LetVariablesToken MidnightBlue
349
+ {
350
+ token: 'annotation',
351
+ foreground: '9400D3'
352
+ },
353
+ // ClientDirectiveToken DarkViolet
354
+ {
355
+ token: 'invalid',
356
+ background: 'cd3131'
357
+ }],
358
+ colors: {}
359
+ });
360
+ monaco__namespace.editor.defineTheme('kusto-dark', {
361
+ base: 'vs-dark',
362
+ inherit: true,
363
+ rules: [{
364
+ token: 'comment',
365
+ foreground: '608B4E'
366
+ },
367
+ // CommentToken Green
368
+ {
369
+ token: 'variable.predefined',
370
+ foreground: '4ec9b0'
371
+ },
372
+ // CalculatedColumnToken Purple
373
+ {
374
+ token: 'function',
375
+ foreground: 'dcdcaa'
376
+ },
377
+ // FunctionNameToken Blue
378
+ {
379
+ token: 'operator.sql',
380
+ foreground: '9cdcfe'
381
+ },
382
+ // OperatorToken OrangeRed
383
+ {
384
+ token: 'string',
385
+ foreground: 'ce9178'
386
+ },
387
+ // StringLiteralToken Firebrick
388
+ {
389
+ token: 'operator.scss',
390
+ foreground: '569cd6'
391
+ },
392
+ // SubOperatorToken Blue
393
+ {
394
+ token: 'variable',
395
+ foreground: '4ec9b0'
396
+ },
397
+ // TableColumnToken MediumVioletRed
398
+ {
399
+ token: 'variable.parameter',
400
+ foreground: 'c586c0'
401
+ },
402
+ // TableToken DarkOrchid
403
+ {
404
+ token: '',
405
+ foreground: 'd4d4d4'
406
+ },
407
+ // UnknownToken, PlainTextToken Black
408
+ {
409
+ token: 'type',
410
+ foreground: '569cd6'
411
+ },
412
+ // DataTypeToken Blue
413
+ {
414
+ token: 'tag',
415
+ foreground: '569cd6'
416
+ },
417
+ // ControlCommandToken Blue
418
+ {
419
+ token: 'annotation',
420
+ foreground: '9cdcfe'
421
+ },
422
+ // QueryParametersToken FF2B91AF
423
+ {
424
+ token: 'keyword',
425
+ foreground: '569cd6'
426
+ },
427
+ // CslCommandToken, PluginToken Blue
428
+ {
429
+ token: 'number',
430
+ foreground: 'd7ba7d'
431
+ },
432
+ // LetVariablesToken MidnightBlue
433
+ {
434
+ token: 'annotation',
435
+ foreground: 'b5cea8'
436
+ },
437
+ // ClientDirectiveToken DarkViolet
438
+ {
439
+ token: 'invalid',
440
+ background: 'cd3131'
441
+ }],
442
+ colors: {
443
+ // see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
444
+ }
445
+ });
446
+ monaco__namespace.editor.defineTheme('kusto-dark2', {
447
+ base: 'vs-dark',
448
+ inherit: true,
449
+ rules: [],
450
+ colors: {
451
+ // see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
452
+ 'editor.background': '#1B1A19',
453
+ // gray 200
454
+ 'editorSuggestWidget.selectedBackground': '#004E8C'
455
+ }
456
+ });
447
457
 
448
- // Initialize kusto specific language features that don't currently have a natural way to extend using existing apis.
449
- // Most other language features are initialized in kustoMode.ts
450
- monacoInstance.editor.onDidCreateEditor(function (editor) {
451
- // hook up extension methods to editor.
452
- extend(editor);
453
- new KustoCommandHighlighter(editor);
454
- if (isStandaloneCodeEditor(editor)) {
455
- new KustoCommandFormatter(editor);
458
+ // Initialize kusto specific language features that don't currently have a natural way to extend using existing apis.
459
+ // Most other language features are initialized in kustoMode.ts
460
+ monaco__namespace.editor.onDidCreateEditor(function (editor) {
461
+ // hook up extension methods to editor.
462
+ extend(editor);
463
+ new KustoCommandHighlighter(editor);
464
+ if (isStandaloneCodeEditor(editor)) {
465
+ new KustoCommandFormatter(editor);
466
+ }
467
+ triggerSuggestDialogWhenCompletionItemSelected(editor);
468
+ });
469
+ function triggerSuggestDialogWhenCompletionItemSelected(editor) {
470
+ editor.onDidChangeCursorSelection(function (event) {
471
+ // checking the condition inside the event makes sure we will stay up to date when kusto configuration changes at runtime.
472
+ if (kustoDefaults && kustoDefaults.languageSettings && kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
473
+ var didAcceptSuggestion = event.source === 'snippet' && event.reason === monaco__namespace.editor.CursorChangeReason.NotSet;
474
+ // If the word at the current position is not null - meaning we did not add a space after completion.
475
+ // In this case we don't want to activate the eager mode, since it will display the current selected word..
476
+ if (!didAcceptSuggestion || editor.getModel().getWordAtPosition(event.selection.getPosition()) !== null) {
477
+ return;
478
+ }
479
+ event.selection;
480
+ // OK so now we in a situation where we know a suggestion was selected and we want to trigger another one.
481
+ // the only problem is that the suggestion widget itself listens to this same event in order to know it needs to close.
482
+ // The only problem is that we're ahead in line, so we're triggering a suggest operation that will be shut down once
483
+ // the next callback is called. This is why we're waiting here - to let all the callbacks run synchronously and be
484
+ // the 'last' subscriber to run. Granted this is hacky, but until monaco provides a specific event for suggestions,
485
+ // this is the best we have.
486
+ setTimeout(function () {
487
+ return editor.trigger('monaco-kusto', 'editor.action.triggerSuggest', {});
488
+ }, 10);
456
489
  }
457
- triggerSuggestDialogWhenCompletionItemSelected(editor);
458
490
  });
459
- function triggerSuggestDialogWhenCompletionItemSelected(editor) {
460
- editor.onDidChangeCursorSelection(function (event) {
461
- // checking the condition inside the event makes sure we will stay up to date when kusto configuration changes at runtime.
462
- if (kustoDefaults && kustoDefaults.languageSettings && kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
463
- var didAcceptSuggestion = event.source === 'snippet' && event.reason === monaco.editor.CursorChangeReason.NotSet;
464
- // If the word at the current position is not null - meaning we did not add a space after completion.
465
- // In this case we don't want to activate the eager mode, since it will display the current selected word..
466
- if (!didAcceptSuggestion || editor.getModel().getWordAtPosition(event.selection.getPosition()) !== null) {
467
- return;
468
- }
469
- event.selection;
470
- // OK so now we in a situation where we know a suggestion was selected and we want to trigger another one.
471
- // the only problem is that the suggestion widget itself listens to this same event in order to know it needs to close.
472
- // The only problem is that we're ahead in line, so we're triggering a suggest operation that will be shut down once
473
- // the next callback is called. This is why we're waiting here - to let all the callbacks run synchronously and be
474
- // the 'last' subscriber to run. Granted this is hacky, but until monaco provides a specific event for suggestions,
475
- // this is the best we have.
476
- setTimeout(function () {
477
- return editor.trigger('monaco-kusto', 'editor.action.triggerSuggest', {});
478
- }, 10);
479
- }
480
- });
481
- }
482
491
  }
483
492
  function isStandaloneCodeEditor(editor) {
484
493
  return editor.addAction !== undefined;
485
494
  }
486
-
487
- // --- Registration to monaco editor ---
488
- if (monaco.editor) {
489
- setupMonacoKusto(monaco);
490
- }
495
+ monaco__namespace.languages.kusto = {
496
+ kustoDefaults: kustoDefaults,
497
+ getKustoWorker: getKustoWorker
498
+ };
491
499
 
492
500
  exports.LanguageServiceDefaultsImpl = LanguageServiceDefaultsImpl;
493
- exports.setupMonacoKusto = setupMonacoKusto;
501
+ exports.getKustoWorker = getKustoWorker;
502
+ exports.kustoDefaults = kustoDefaults;
494
503
 
495
504
  }));
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 6.1.2(4c9ec21ad04b49f9f8e8a8f7fe773fe9a8b47334)
3
+ * monaco-kusto version: 6.2.0(8e26147bc7c3b5a7a3bc6ee55311dfa0b612c10c)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -1,10 +1,10 @@
1
1
  /// <reference types="../monaco" />
2
2
  /// <reference types="monaco-editor/monaco" />
3
3
  import type { LanguageServiceDefaultsImpl } from './monaco.contribution';
4
- import { WorkerAccessor } from './languageFeatures';
4
+ import * as languageFeatures from './languageFeatures';
5
5
  /**
6
6
  * Called when Kusto language is first needed (a model has the language set)
7
7
  * @param defaults
8
8
  */
9
- export declare function setupMode(defaults: LanguageServiceDefaultsImpl, monacoInstance: typeof monaco): WorkerAccessor;
10
- export declare function getKustoWorker(): Promise<WorkerAccessor>;
9
+ export declare function setupMode(defaults: LanguageServiceDefaultsImpl, monacoInstance: typeof globalThis.monaco): languageFeatures.WorkerAccessor;
10
+ export declare function getKustoWorker(): Promise<languageFeatures.WorkerAccessor>;
@@ -1,10 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 6.1.2(4c9ec21ad04b49f9f8e8a8f7fe773fe9a8b47334)
3
+ * monaco-kusto version: 6.2.0(8e26147bc7c3b5a7a3bc6ee55311dfa0b612c10c)
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
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
8
9
  import * as ls from 'vscode-languageserver-types';
9
10
  import debounce from 'lodash-es/debounce';
10
11
 
@@ -174,12 +175,8 @@ const KustoLanguageDefinition = {
174
175
  }
175
176
  };
176
177
 
177
- var Uri = monaco.Uri;
178
- monaco.Position;
179
- var Range = monaco.Range;
180
- monaco.Thenable;
181
- monaco.CancellationToken;
182
- monaco.IDisposable; // --- diagnostics ---
178
+ // --- diagnostics ---
179
+
183
180
  class DiagnosticsAdapter {
184
181
  _disposables = [];
185
182
  _contentListener = Object.create(null);
@@ -635,7 +632,7 @@ class ColorizationAdapter {
635
632
 
636
633
  /**
637
634
  * Return true if the range doesn't intersect any of the line ranges.
638
- * @param range Range
635
+ * @param range monaco.Range
639
636
  * @param impactedLineRanges an array of line ranges
640
637
  */
641
638
  _rangeDoesNotIntersectAny(range, impactedLineRanges) {
@@ -731,7 +728,7 @@ function injectCss() {
731
728
  function toDecoration(model, classification) {
732
729
  const start = model.getPositionAt(classification.start);
733
730
  const end = model.getPositionAt(classification.start + classification.length);
734
- const range = new Range(start.lineNumber, start.column, end.lineNumber, end.column);
731
+ const range = new monaco.Range(start.lineNumber, start.column, end.lineNumber, end.column);
735
732
  const inlineClassName = ClassificationKindNames[classification.kind];
736
733
  return {
737
734
  range,
@@ -765,7 +762,7 @@ function toRange(range) {
765
762
  if (!range) {
766
763
  return void 0;
767
764
  }
768
- return new Range(range.start.line + 1, range.start.character + 1, range.end.line + 1, range.end.character + 1);
765
+ return new monaco.Range(range.start.line + 1, range.start.character + 1, range.end.line + 1, range.end.character + 1);
769
766
  }
770
767
  function toCompletionItemKind(kind) {
771
768
  let mItemKind = monaco.languages.CompletionItemKind;
@@ -850,7 +847,7 @@ class CompletionAdapter {
850
847
  }
851
848
  provideCompletionItems(model, position, context, token) {
852
849
  const wordInfo = model.getWordUntilPosition(position);
853
- const wordRange = new Range(position.lineNumber, wordInfo.startColumn, position.lineNumber, wordInfo.endColumn);
850
+ const wordRange = new monaco.Range(position.lineNumber, wordInfo.startColumn, position.lineNumber, wordInfo.endColumn);
854
851
  const resource = model.uri;
855
852
  const onDidProvideCompletionItems = this.languageSettings.onDidProvideCompletionItems;
856
853
  return this._worker(resource).then(worker => {
@@ -923,7 +920,7 @@ function toMarkedStringArray(contents) {
923
920
 
924
921
  function toLocation(location) {
925
922
  return {
926
- uri: Uri.parse(location.uri),
923
+ uri: monaco.Uri.parse(location.uri),
927
924
  range: toRange(location.range)
928
925
  };
929
926
  }
@@ -971,7 +968,7 @@ function toWorkspaceEdit(edit) {
971
968
  }
972
969
  let resourceEdits = [];
973
970
  for (let uri in edit.changes) {
974
- const _uri = Uri.parse(uri);
971
+ const _uri = monaco.Uri.parse(uri);
975
972
  for (let e of edit.changes[uri]) {
976
973
  resourceEdits.push({
977
974
  resource: _uri,
@@ -1068,8 +1065,6 @@ class HoverAdapter {
1068
1065
  }
1069
1066
  }
1070
1067
 
1071
- monaco.Uri;
1072
- monaco.IDisposable;
1073
1068
  let kustoWorker;
1074
1069
  let resolveWorker;
1075
1070
  let workerPromise = new Promise((resolve, reject) => {