@kusto/monaco-kusto 12.0.2 → 12.0.3
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/README.md +4 -0
- package/package.json +2 -2
- package/release/dev/kusto.javascript.client.min.js +1 -1
- package/release/dev/kustoMode.js +2 -2
- package/release/dev/kustoWorker.js +2 -2
- package/release/dev/{main-de9bc066.js → main-1546c7f5.js} +2 -2
- package/release/dev/monaco.contribution.js +9 -6
- package/release/dev/{schema-ea01b133.js → schema-9341f93e.js} +2 -13
- package/release/dev/{types-8a990554.js → types-91878f5b.js} +2 -2
- package/release/esm/{globals-0865238a.js → globals-417d1e2f.js} +1 -1
- package/release/esm/kusto.worker.js +11 -11
- package/release/esm/monaco.contribution.js +11 -13
- package/release/esm/{schema-a96574e6.js → schema-d4e431c7.js} +2 -12
- package/release/min/kusto.javascript.client.min.js +1 -1
- package/release/min/kustoMode.js +2 -2
- package/release/min/kustoWorker.js +2 -2
- package/release/min/{main-b1d46c4f.js → main-a2b9fd7b.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/schema-319a2b5f.js +7 -0
- package/release/min/{types-0c686717.js → types-310c0d26.js} +2 -2
- package/release/min/schema-0d256352.js +0 -7
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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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-1546c7f5', './types-91878f5b'], (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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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-1546c7f5', './schema-9341f93e'], (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.
|
|
3
|
+
* monaco-kusto version: 12.0.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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-1546c7f5', ['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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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-91878f5b', './schema-9341f93e'], (function (require, exports, monaco, types, schema) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -404,8 +404,6 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
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
|
-
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
|
-
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; }
|
|
409
407
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
410
408
|
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
409
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -549,11 +547,16 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
|
|
|
549
547
|
function isStandaloneCodeEditor(editor) {
|
|
550
548
|
return editor.addAction !== undefined;
|
|
551
549
|
}
|
|
552
|
-
var globalApi =
|
|
550
|
+
var globalApi = {
|
|
551
|
+
getCslTypeNameFromClrType: schema.getCslTypeNameFromClrType,
|
|
552
|
+
getCallName: schema.getCallName,
|
|
553
|
+
getExpression: schema.getExpression,
|
|
554
|
+
getInputParametersAsCslString: schema.getInputParametersAsCslString,
|
|
555
|
+
getEntityDataTypeFromCslType: schema.getEntityDataTypeFromCslType,
|
|
553
556
|
kustoDefaults: kustoDefaults,
|
|
554
557
|
getKustoWorker: getKustoWorker,
|
|
555
558
|
getRangeHtml: getRangeHtml
|
|
556
|
-
}
|
|
559
|
+
};
|
|
557
560
|
monaco__namespace.languages.kusto = globalApi;
|
|
558
561
|
|
|
559
562
|
exports.getCallName = schema.getCallName;
|
|
@@ -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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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-9341f93e', ['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
|
|
|
@@ -99,22 +99,11 @@ define('vs/language/kusto/schema-ea01b133', ['exports'], (function (exports) { '
|
|
|
99
99
|
*/
|
|
100
100
|
var showSchema;
|
|
101
101
|
|
|
102
|
-
var schema = /*#__PURE__*/Object.freeze({
|
|
103
|
-
__proto__: null,
|
|
104
|
-
getCallName: getCallName,
|
|
105
|
-
getCslTypeNameFromClrType: getCslTypeNameFromClrType,
|
|
106
|
-
getEntityDataTypeFromCslType: getEntityDataTypeFromCslType,
|
|
107
|
-
getExpression: getExpression,
|
|
108
|
-
getInputParametersAsCslString: getInputParametersAsCslString,
|
|
109
|
-
showSchema: showSchema
|
|
110
|
-
});
|
|
111
|
-
|
|
112
102
|
exports.getCallName = getCallName;
|
|
113
103
|
exports.getCslTypeNameFromClrType = getCslTypeNameFromClrType;
|
|
114
104
|
exports.getEntityDataTypeFromCslType = getEntityDataTypeFromCslType;
|
|
115
105
|
exports.getExpression = getExpression;
|
|
116
106
|
exports.getInputParametersAsCslString = getInputParametersAsCslString;
|
|
117
|
-
exports.schema = schema;
|
|
118
107
|
exports.showSchema = showSchema;
|
|
119
108
|
|
|
120
109
|
}));
|
|
@@ -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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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-91878f5b', ['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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
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 {
|
|
11
|
+
import { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-d4e431c7.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';
|
|
@@ -1219,15 +1219,15 @@ class KustoLanguageService {
|
|
|
1219
1219
|
* Here it gets converted to the bridge.Net schema
|
|
1220
1220
|
* @param schema Language Service schema
|
|
1221
1221
|
*/
|
|
1222
|
-
static convertToKustoJsSchema(schema
|
|
1223
|
-
switch (schema
|
|
1222
|
+
static convertToKustoJsSchema(schema) {
|
|
1223
|
+
switch (schema.clusterType) {
|
|
1224
1224
|
case 'Engine':
|
|
1225
|
-
const currentDatabaseName = schema
|
|
1225
|
+
const currentDatabaseName = schema.database ? schema.database.name : undefined;
|
|
1226
1226
|
const kCluster = new k.KustoIntelliSenseClusterEntity();
|
|
1227
1227
|
let kDatabaseInContext = undefined;
|
|
1228
|
-
kCluster.ConnectionString = schema
|
|
1228
|
+
kCluster.ConnectionString = schema.cluster.connectionString;
|
|
1229
1229
|
const databases = [];
|
|
1230
|
-
schema
|
|
1230
|
+
schema.cluster.databases.forEach(database => {
|
|
1231
1231
|
const kDatabase = new k.KustoIntelliSenseDatabaseEntity();
|
|
1232
1232
|
kDatabase.Name = database.name;
|
|
1233
1233
|
const tables = [];
|
|
@@ -1260,17 +1260,17 @@ class KustoLanguageService {
|
|
|
1260
1260
|
const kSchema = new k.KustoIntelliSenseQuerySchema(kCluster, kDatabaseInContext);
|
|
1261
1261
|
return kSchema;
|
|
1262
1262
|
case 'ClusterManager':
|
|
1263
|
-
const accounts = schema
|
|
1263
|
+
const accounts = schema.accounts.map(account => {
|
|
1264
1264
|
const kAccount = new k.KustoIntelliSenseAccountEntity();
|
|
1265
1265
|
kAccount.Name = account;
|
|
1266
1266
|
return kAccount;
|
|
1267
1267
|
});
|
|
1268
|
-
const services = schema
|
|
1268
|
+
const services = schema.services.map(service => {
|
|
1269
1269
|
const kService = new k.KustoIntelliSenseServiceEntity();
|
|
1270
1270
|
kService.Name = service;
|
|
1271
1271
|
return kService;
|
|
1272
1272
|
});
|
|
1273
|
-
const connectionString = schema
|
|
1273
|
+
const connectionString = schema.connectionString;
|
|
1274
1274
|
const result = {
|
|
1275
1275
|
accounts,
|
|
1276
1276
|
services,
|
|
@@ -1280,7 +1280,7 @@ class KustoLanguageService {
|
|
|
1280
1280
|
case 'DataManagement':
|
|
1281
1281
|
return undefined;
|
|
1282
1282
|
default:
|
|
1283
|
-
return assertNever(schema
|
|
1283
|
+
return assertNever(schema);
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
1286
|
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
13
2
|
import KustoCommandHighlighter from './commandHighlighter';
|
|
14
3
|
import KustoCommandFormatter from './commandFormatter';
|
|
15
4
|
import { extend } from './extendedEditor';
|
|
16
5
|
import { themes } from './syntaxHighlighting/themes';
|
|
17
6
|
import { LANGUAGE_ID } from './globals';
|
|
18
|
-
import
|
|
7
|
+
import { getCslTypeNameFromClrType, getCallName, getExpression, getInputParametersAsCslString, getEntityDataTypeFromCslType, } from './languageServiceManager/schema';
|
|
19
8
|
import { getRangeHtml } from './extendedGlobalApi';
|
|
20
9
|
export * from './languageServiceManager/schema';
|
|
21
10
|
export * from './languageServiceManager/renderInfo';
|
|
@@ -146,5 +135,14 @@ function triggerSuggestDialogWhenCompletionItemSelected(editor) {
|
|
|
146
135
|
function isStandaloneCodeEditor(editor) {
|
|
147
136
|
return editor.addAction !== undefined;
|
|
148
137
|
}
|
|
149
|
-
var globalApi =
|
|
138
|
+
var globalApi = {
|
|
139
|
+
getCslTypeNameFromClrType: getCslTypeNameFromClrType,
|
|
140
|
+
getCallName: getCallName,
|
|
141
|
+
getExpression: getExpression,
|
|
142
|
+
getInputParametersAsCslString: getInputParametersAsCslString,
|
|
143
|
+
getEntityDataTypeFromCslType: getEntityDataTypeFromCslType,
|
|
144
|
+
kustoDefaults: kustoDefaults,
|
|
145
|
+
getKustoWorker: getKustoWorker,
|
|
146
|
+
getRangeHtml: getRangeHtml,
|
|
147
|
+
};
|
|
150
148
|
monaco.languages.kusto = globalApi;
|
|
@@ -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.3(418f3d71791a9e0959cc8869c01ea6d9b94b3179)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -81,14 +81,4 @@ const getInputParameterAsCslString = inputParameter => {
|
|
|
81
81
|
*/
|
|
82
82
|
let showSchema;
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
__proto__: null,
|
|
86
|
-
getCallName,
|
|
87
|
-
getCslTypeNameFromClrType,
|
|
88
|
-
getEntityDataTypeFromCslType,
|
|
89
|
-
getExpression,
|
|
90
|
-
getInputParametersAsCslString,
|
|
91
|
-
showSchema
|
|
92
|
-
}, Symbol.toStringTag, { value: 'Module' }));
|
|
93
|
-
|
|
94
|
-
export { getEntityDataTypeFromCslType as a, getCallName as b, getExpression as c, getInputParametersAsCslString as d, showSchema as e, getCslTypeNameFromClrType as g, schema as s };
|
|
84
|
+
export { getCallName as a, getExpression as b, getInputParametersAsCslString as c, getEntityDataTypeFromCslType as d, getCslTypeNameFromClrType as g, showSchema as s };
|