@kusto/monaco-kusto 12.0.16 → 12.0.17
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.
- package/package.json +1 -1
- package/release/dev/kustoMode.js +2 -2
- package/release/dev/kustoWorker.js +12 -17
- package/release/dev/{main-08520f48.js → main-cff0e7b4.js} +2 -2
- package/release/dev/monaco.contribution.js +2 -2
- package/release/dev/{schema-3d469c8b.js → schema-ee7cd8bb.js} +2 -2
- package/release/dev/{types-10234cd2.js → types-8397fd94.js} +2 -2
- package/release/esm/{globals-14c6d6d4.js → globals-93666ed8.js} +1 -1
- package/release/esm/kusto.worker.js +11 -18
- package/release/esm/kustoMode.js +2 -2
- package/release/esm/languageServiceManager/kustoLanguageService.js +6 -11
- package/release/esm/monaco.contribution.js +4 -4
- package/release/esm/{schema-b13b6472.js → schema-67b23895.js} +1 -1
- package/release/min/kustoMode.js +2 -2
- package/release/min/kustoWorker.js +3 -3
- package/release/min/{main-f05427d7.js → main-eaf51a57.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/{schema-8034e4f0.js → schema-6a0caedf.js} +2 -2
- package/release/min/{types-77d8d9a9.js → types-61fed2c3.js} +2 -2
package/package.json
CHANGED
package/release/dev/kustoMode.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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/kustoMode', ['exports', 'vs/editor/editor.main', './main-
|
|
8
|
+
define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './main-cff0e7b4', './types-8397fd94'], (function (exports, monaco, main, types$1) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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-
|
|
8
|
+
define('vs/language/kusto/kustoWorker', ['exports', './main-cff0e7b4', './schema-ee7cd8bb'], (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."); }
|
|
@@ -3839,28 +3839,23 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-08520f48', './schema
|
|
|
3839
3839
|
if (!clusterReferences) {
|
|
3840
3840
|
return Promise.resolve([]);
|
|
3841
3841
|
}
|
|
3842
|
-
var newClustersReferences = [];
|
|
3843
3842
|
var newClustersReferencesSet = new Set(); // used to remove duplicates
|
|
3844
3843
|
|
|
3845
3844
|
// Keep only unique clusters that aren't already exist in the Global State
|
|
3846
3845
|
for (var i = 0; i < clusterReferences.Count; i++) {
|
|
3847
3846
|
var clusterReference = clusterReferences.getItem(i);
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
if (
|
|
3852
|
-
|
|
3853
|
-
}
|
|
3854
|
-
newClustersReferencesSet.add(clusterHostName);
|
|
3855
|
-
|
|
3856
|
-
// ignore references that are already in the GlobalState.
|
|
3857
|
-
if (!this._clustersSetInGlobalState.has(clusterHostName)) {
|
|
3858
|
-
newClustersReferences.push({
|
|
3859
|
-
clusterName: clusterHostName
|
|
3860
|
-
});
|
|
3847
|
+
// Because the engine client adds suffix anyway
|
|
3848
|
+
// const clusterName = Kusto.Language.KustoFacts.GetFullHostName(clusterReference.Cluster, Kusto.Language.KustoFacts.KustoWindowsNet);
|
|
3849
|
+
var _clusterName = Kusto.Language.KustoFacts.GetFullHostName(clusterReference.Cluster, null);
|
|
3850
|
+
if (!this._clustersSetInGlobalState.has(_clusterName)) {
|
|
3851
|
+
newClustersReferencesSet.add(_clusterName);
|
|
3861
3852
|
}
|
|
3862
3853
|
}
|
|
3863
|
-
return Promise.resolve(
|
|
3854
|
+
return Promise.resolve(Array.from(newClustersReferencesSet).map(function (clusterName) {
|
|
3855
|
+
return {
|
|
3856
|
+
clusterName: clusterName
|
|
3857
|
+
};
|
|
3858
|
+
}));
|
|
3864
3859
|
}
|
|
3865
3860
|
}, {
|
|
3866
3861
|
key: "getDatabaseReferences",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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-
|
|
8
|
+
define('vs/language/kusto/main-cff0e7b4', ['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.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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', './types-
|
|
8
|
+
define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './types-8397fd94', './schema-ee7cd8bb'], (function (require, exports, monaco, types, schema) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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-
|
|
8
|
+
define('vs/language/kusto/schema-ee7cd8bb', ['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,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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/types-
|
|
8
|
+
define('vs/language/kusto/types-8397fd94', ['exports'], (function (exports) { 'use strict';
|
|
9
9
|
|
|
10
10
|
var LANGUAGE_ID = 'kusto';
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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 { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-
|
|
11
|
+
import { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-67b23895.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';
|
|
@@ -380,28 +380,21 @@ class KustoLanguageService {
|
|
|
380
380
|
if (!clusterReferences) {
|
|
381
381
|
return Promise.resolve([]);
|
|
382
382
|
}
|
|
383
|
-
|
|
384
|
-
let newClustersReferencesSet = new Set(); // used to remove duplicates
|
|
383
|
+
const newClustersReferencesSet = new Set(); // used to remove duplicates
|
|
385
384
|
|
|
386
385
|
// Keep only unique clusters that aren't already exist in the Global State
|
|
387
386
|
for (let i = 0; i < clusterReferences.Count; i++) {
|
|
388
387
|
const clusterReference = clusterReferences.getItem(i);
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
if (
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
newClustersReferencesSet.add(clusterHostName);
|
|
396
|
-
|
|
397
|
-
// ignore references that are already in the GlobalState.
|
|
398
|
-
if (!this._clustersSetInGlobalState.has(clusterHostName)) {
|
|
399
|
-
newClustersReferences.push({
|
|
400
|
-
clusterName: clusterHostName
|
|
401
|
-
});
|
|
388
|
+
// Because the engine client adds suffix anyway
|
|
389
|
+
// const clusterName = Kusto.Language.KustoFacts.GetFullHostName(clusterReference.Cluster, Kusto.Language.KustoFacts.KustoWindowsNet);
|
|
390
|
+
const clusterName = Kusto.Language.KustoFacts.GetFullHostName(clusterReference.Cluster, null);
|
|
391
|
+
if (!this._clustersSetInGlobalState.has(clusterName)) {
|
|
392
|
+
newClustersReferencesSet.add(clusterName);
|
|
402
393
|
}
|
|
403
394
|
}
|
|
404
|
-
return Promise.resolve(
|
|
395
|
+
return Promise.resolve(Array.from(newClustersReferencesSet).map(clusterName => ({
|
|
396
|
+
clusterName
|
|
397
|
+
})));
|
|
405
398
|
}
|
|
406
399
|
getDatabaseReferences(document, cursorOffset) {
|
|
407
400
|
const script = this.parseDocumentV2(document);
|
package/release/esm/kustoMode.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -9,7 +9,7 @@ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
|
9
9
|
import { languages } from 'monaco-editor/esm/vs/editor/editor.api';
|
|
10
10
|
import * as ls from 'vscode-languageserver-types';
|
|
11
11
|
import debounce from 'lodash-es/debounce';
|
|
12
|
-
import { L as LANGUAGE_ID, T as Token, t as tokenTypes } from './globals-
|
|
12
|
+
import { L as LANGUAGE_ID, T as Token, t as tokenTypes } from './globals-93666ed8.js';
|
|
13
13
|
|
|
14
14
|
class WorkerManager {
|
|
15
15
|
constructor(_monacoInstance, defaults) {
|
|
@@ -511,23 +511,18 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
511
511
|
if (!clusterReferences) {
|
|
512
512
|
return Promise.resolve([]);
|
|
513
513
|
}
|
|
514
|
-
var newClustersReferences = [];
|
|
515
514
|
var newClustersReferencesSet = new Set(); // used to remove duplicates
|
|
516
515
|
// Keep only unique clusters that aren't already exist in the Global State
|
|
517
516
|
for (var i = 0; i < clusterReferences.Count; i++) {
|
|
518
517
|
var clusterReference = clusterReferences.getItem(i);
|
|
519
|
-
|
|
520
|
-
//
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
newClustersReferencesSet.add(clusterHostName);
|
|
525
|
-
// ignore references that are already in the GlobalState.
|
|
526
|
-
if (!this._clustersSetInGlobalState.has(clusterHostName)) {
|
|
527
|
-
newClustersReferences.push({ clusterName: clusterHostName });
|
|
518
|
+
// Because the engine client adds suffix anyway
|
|
519
|
+
// const clusterName = Kusto.Language.KustoFacts.GetFullHostName(clusterReference.Cluster, Kusto.Language.KustoFacts.KustoWindowsNet);
|
|
520
|
+
var clusterName = Kusto.Language.KustoFacts.GetFullHostName(clusterReference.Cluster, null);
|
|
521
|
+
if (!this._clustersSetInGlobalState.has(clusterName)) {
|
|
522
|
+
newClustersReferencesSet.add(clusterName);
|
|
528
523
|
}
|
|
529
524
|
}
|
|
530
|
-
return Promise.resolve(
|
|
525
|
+
return Promise.resolve(Array.from(newClustersReferencesSet).map(function (clusterName) { return ({ clusterName: clusterName }); }));
|
|
531
526
|
};
|
|
532
527
|
KustoLanguageService.prototype.getDatabaseReferences = function (document, cursorOffset) {
|
|
533
528
|
var _a;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
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
8
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
9
9
|
import { editor } from 'monaco-editor/esm/vs/editor/editor.api';
|
|
10
|
-
import { T as Token, L as LANGUAGE_ID } from './globals-
|
|
11
|
-
import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-
|
|
12
|
-
export { s as showSchema } from './schema-
|
|
10
|
+
import { T as Token, L as LANGUAGE_ID } from './globals-93666ed8.js';
|
|
11
|
+
import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-67b23895.js';
|
|
12
|
+
export { s as showSchema } from './schema-67b23895.js';
|
|
13
13
|
|
|
14
14
|
function getCurrentCommandRange(editor, cursorPosition) {
|
|
15
15
|
const zeroBasedCursorLineNumber = cursorPosition.lineNumber - 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 12.0.
|
|
3
|
+
* monaco-kusto version: 12.0.17(11ebee056acf9e2c8b39e17dd4af23d485278029)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|