@kusto/monaco-kusto 12.0.8 → 12.0.10
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 +8 -0
- package/package.json +2 -2
- package/release/dev/kustoMode.js +2 -2
- package/release/dev/kustoWorker.js +6 -4
- package/release/dev/{main-13f81e95.js → main-eff7d47e.js} +2 -2
- package/release/dev/monaco.contribution.js +2 -2
- package/release/dev/{schema-80ffff1d.js → schema-bbdce01a.js} +2 -2
- package/release/dev/{types-818d43e4.js → types-cf1c0652.js} +2 -2
- package/release/esm/{globals-69cf2754.js → globals-60173baa.js} +1 -1
- package/release/esm/kusto.worker.js +4 -4
- package/release/esm/kustoMode.d.ts +1 -1
- package/release/esm/kustoMode.js +2 -2
- package/release/esm/languageServiceManager/kustoLanguageService.js +4 -2
- package/release/esm/monaco.contribution.js +479 -176
- package/release/esm/{schema-57cbc561.js → schema-e459243d.js} +1 -1
- package/release/min/kustoMode.js +2 -2
- package/release/min/kustoWorker.js +4 -4
- package/release/min/{main-971dcd54.js → main-70bf5d9e.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/{schema-53a4e17e.js → schema-6ead6a4e.js} +2 -2
- package/release/min/{types-6f91d960.js → types-2da11ba8.js} +2 -2
package/README.md
CHANGED
|
@@ -85,6 +85,14 @@ Every PR should come with a test that checks it.
|
|
|
85
85
|
|
|
86
86
|
## Changelog
|
|
87
87
|
|
|
88
|
+
### 12.0.10
|
|
89
|
+
|
|
90
|
+
- fix: Parameter docstrings not shown
|
|
91
|
+
|
|
92
|
+
### 12.0.9
|
|
93
|
+
|
|
94
|
+
- fix: decrease bundle size.
|
|
95
|
+
|
|
88
96
|
### 12.0.8
|
|
89
97
|
|
|
90
98
|
- fix: dispose all monaco models when disposing the worker to prevent memory leaks.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kusto/monaco-kusto",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.10",
|
|
4
4
|
"description": "CSL, KQL plugin for the Monaco Editor",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"clean": "rimraf ./release",
|
|
25
25
|
"start": "ts-node ./scripts/dev.ts",
|
|
26
26
|
"test": "jest",
|
|
27
|
-
"test:integration": "playwright test
|
|
27
|
+
"test:integration": "playwright test -c tests/integration/playwright.config.ts",
|
|
28
28
|
"test:integration:watch": "ts-node ./scripts/test.ts"
|
|
29
29
|
},
|
|
30
30
|
"types": "./release/esm/monaco.contribution.d.ts",
|
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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-eff7d47e', './types-cf1c0652'], (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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-eff7d47e', './schema-bbdce01a'], (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."); }
|
|
@@ -5254,8 +5254,9 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-13f81e95', './schema
|
|
|
5254
5254
|
}, {
|
|
5255
5255
|
key: "createParameterSymbol",
|
|
5256
5256
|
value: function createParameterSymbol(param) {
|
|
5257
|
+
var _param$docstring;
|
|
5257
5258
|
var paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(schema.getCslTypeNameFromClrType(param.type));
|
|
5258
|
-
return new sym.ParameterSymbol(param.name, paramSymbol, null);
|
|
5259
|
+
return new sym.ParameterSymbol(param.name, paramSymbol, (_param$docstring = param.docstring) !== null && _param$docstring !== void 0 ? _param$docstring : null);
|
|
5259
5260
|
}
|
|
5260
5261
|
}, {
|
|
5261
5262
|
key: "createTabularParameterSymbol",
|
|
@@ -5270,9 +5271,10 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-13f81e95', './schema
|
|
|
5270
5271
|
key: "createParameter",
|
|
5271
5272
|
value: function createParameter(param) {
|
|
5272
5273
|
if (!param.columns) {
|
|
5274
|
+
var _param$docstring2;
|
|
5273
5275
|
var paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(schema.getCslTypeNameFromClrType(param.type));
|
|
5274
5276
|
var expression = param.cslDefaultValue && typeof param.cslDefaultValue === 'string' ? parsing.QueryParser.ParseLiteral$1(param.cslDefaultValue) : undefined;
|
|
5275
|
-
return new sym.Parameter.$ctor3(param.name, paramSymbol, null, null, null, false, null, 1, 1, expression, null);
|
|
5277
|
+
return new sym.Parameter.$ctor3(param.name, paramSymbol, null, null, param.examples ? KustoLanguageService.toBridgeList(param.examples) : null, false, null, 1, 1, expression, (_param$docstring2 = param.docstring) !== null && _param$docstring2 !== void 0 ? _param$docstring2 : null);
|
|
5276
5278
|
}
|
|
5277
5279
|
if (param.columns.length == 0) {
|
|
5278
5280
|
return new sym.Parameter.ctor(param.name, sym.ParameterTypeKind.Tabular, sym.ArgumentKind.Expression, null, null, false, null, 1, 1, null, 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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-eff7d47e', ['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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-cf1c0652', './schema-bbdce01a'], (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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-bbdce01a', ['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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-cf1c0652', ['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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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-e459243d.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';
|
|
@@ -1322,7 +1322,7 @@ class KustoLanguageService {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
static createParameterSymbol(param) {
|
|
1324
1324
|
const paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(param.type));
|
|
1325
|
-
return new sym.ParameterSymbol(param.name, paramSymbol, null);
|
|
1325
|
+
return new sym.ParameterSymbol(param.name, paramSymbol, param.docstring ?? null);
|
|
1326
1326
|
}
|
|
1327
1327
|
static createTabularParameterSymbol(param) {
|
|
1328
1328
|
const columnSymbols = param.columns.map(col => KustoLanguageService.createColumnSymbol(col));
|
|
@@ -1333,7 +1333,7 @@ class KustoLanguageService {
|
|
|
1333
1333
|
if (!param.columns) {
|
|
1334
1334
|
const paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(param.type));
|
|
1335
1335
|
const expression = param.cslDefaultValue && typeof param.cslDefaultValue === 'string' ? parsing.QueryParser.ParseLiteral$1(param.cslDefaultValue) : undefined;
|
|
1336
|
-
return new sym.Parameter.$ctor3(param.name, paramSymbol, null, null, null, false, null, 1, 1, expression, null);
|
|
1336
|
+
return new sym.Parameter.$ctor3(param.name, paramSymbol, null, null, param.examples ? KustoLanguageService.toBridgeList(param.examples) : null, false, null, 1, 1, expression, param.docstring ?? null);
|
|
1337
1337
|
}
|
|
1338
1338
|
if (param.columns.length == 0) {
|
|
1339
1339
|
return new sym.Parameter.ctor(param.name, sym.ParameterTypeKind.Tabular, sym.ArgumentKind.Expression, null, null, false, null, 1, 1, null, null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
2
|
import type { KustoWorker, LanguageServiceDefaults } from './monaco.contribution';
|
|
3
3
|
import type { IKustoWorkerImpl } from './kustoWorker';
|
|
4
|
-
import { IDisposable } from 'monaco-editor';
|
|
4
|
+
import type { IDisposable } from 'monaco-editor';
|
|
5
5
|
export interface AugmentedWorker extends KustoWorker, Omit<IKustoWorkerImpl, 'setSchemaFromShowSchema' | 'getReferencedSymbols'> {
|
|
6
6
|
}
|
|
7
7
|
export interface AugmentedWorkerAccessor {
|
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.10(45043a1eff35e1151edde6f70c24b55565dda115)
|
|
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 monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
9
9
|
import * as ls from 'vscode-languageserver-types';
|
|
10
10
|
import debounce from 'lodash-es/debounce';
|
|
11
|
-
import { L as LANGUAGE_ID, T as Token, t as tokenTypes } from './globals-
|
|
11
|
+
import { L as LANGUAGE_ID, T as Token, t as tokenTypes } from './globals-60173baa.js';
|
|
12
12
|
|
|
13
13
|
class WorkerManager {
|
|
14
14
|
constructor(_monacoInstance, defaults) {
|
|
@@ -1432,8 +1432,9 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
1432
1432
|
return new sym.ColumnSymbol(col.name, sym.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(col.type)), col.docstring, null, null, col.examples ? KustoLanguageService.toBridgeList(col.examples) : null);
|
|
1433
1433
|
};
|
|
1434
1434
|
KustoLanguageService.createParameterSymbol = function (param) {
|
|
1435
|
+
var _a;
|
|
1435
1436
|
var paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(param.type));
|
|
1436
|
-
return new sym.ParameterSymbol(param.name, paramSymbol, null);
|
|
1437
|
+
return new sym.ParameterSymbol(param.name, paramSymbol, (_a = param.docstring) !== null && _a !== void 0 ? _a : null);
|
|
1437
1438
|
};
|
|
1438
1439
|
KustoLanguageService.createTabularParameterSymbol = function (param) {
|
|
1439
1440
|
var columnSymbols = param.columns.map(function (col) { return KustoLanguageService.createColumnSymbol(col); });
|
|
@@ -1441,12 +1442,13 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
1441
1442
|
return new sym.ParameterSymbol(param.name, para, param.docstring);
|
|
1442
1443
|
};
|
|
1443
1444
|
KustoLanguageService.createParameter = function (param) {
|
|
1445
|
+
var _a;
|
|
1444
1446
|
if (!param.columns) {
|
|
1445
1447
|
var paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(param.type));
|
|
1446
1448
|
var expression = param.cslDefaultValue && typeof param.cslDefaultValue === 'string'
|
|
1447
1449
|
? parsing.QueryParser.ParseLiteral$1(param.cslDefaultValue)
|
|
1448
1450
|
: undefined;
|
|
1449
|
-
return new sym.Parameter.$ctor3(param.name, paramSymbol, null, null, null, false, null, 1, 1, expression, null);
|
|
1451
|
+
return new sym.Parameter.$ctor3(param.name, paramSymbol, null, null, param.examples ? KustoLanguageService.toBridgeList(param.examples) : null, false, null, 1, 1, expression, (_a = param.docstring) !== null && _a !== void 0 ? _a : null);
|
|
1450
1452
|
}
|
|
1451
1453
|
if (param.columns.length == 0) {
|
|
1452
1454
|
return new sym.Parameter.ctor(param.name, sym.ParameterTypeKind.Tabular, sym.ArgumentKind.Expression, null, null, false, null, 1, 1, null, null);
|