@kusto/monaco-kusto 5.3.8 → 5.3.9
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 +2 -2
- package/release/dev/kustoWorker.js +4 -3
- package/release/esm/languageService/kustoLanguageService.js +4 -3
- package/release/min/Kusto.Language.Bridge.min.js +1 -1
- package/release/min/kustoMode.js +1 -1
- package/release/min/kustoWorker.js +2 -2
- package/release/min/monaco.contribution.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kusto/monaco-kusto",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.9",
|
|
4
4
|
"description": "CSL, KQL plugin for the Monaco Editor",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@kusto/language-service": "0.0.39",
|
|
58
|
-
"@kusto/language-service-next": "0.0.
|
|
58
|
+
"@kusto/language-service-next": "0.0.62"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"monaco-editor": "0.34.1"
|
|
@@ -7491,11 +7491,12 @@ define('vs/language/kusto/languageService/kustoLanguageService',["require", "exp
|
|
|
7491
7491
|
docstring: DocString,
|
|
7492
7492
|
entityType: tableEntity,
|
|
7493
7493
|
columns: OrderedColumns.map(function (_a) {
|
|
7494
|
-
var Name = _a.Name, Type = _a.Type, DocString = _a.DocString, CslType = _a.CslType;
|
|
7494
|
+
var Name = _a.Name, Type = _a.Type, DocString = _a.DocString, CslType = _a.CslType, Examples = _a.Examples;
|
|
7495
7495
|
return ({
|
|
7496
7496
|
name: Name,
|
|
7497
7497
|
type: CslType,
|
|
7498
7498
|
docstring: DocString,
|
|
7499
|
+
examples: Examples,
|
|
7499
7500
|
});
|
|
7500
7501
|
}),
|
|
7501
7502
|
});
|
|
@@ -8120,7 +8121,7 @@ define('vs/language/kusto/languageService/kustoLanguageService',["require", "exp
|
|
|
8120
8121
|
return "let " + fn.name + " = " + signature + " " + fn.body;
|
|
8121
8122
|
};
|
|
8122
8123
|
KustoLanguageService.createColumnSymbol = function (col) {
|
|
8123
|
-
return new sym.ColumnSymbol(col.name, sym.ScalarTypes.GetSymbol(schema_1.getCslTypeNameFromClrType(col.type)), col.docstring, null);
|
|
8124
|
+
return new sym.ColumnSymbol(col.name, sym.ScalarTypes.GetSymbol(schema_1.getCslTypeNameFromClrType(col.type)), col.docstring, null, null, col.examples ? KustoLanguageService.toBridgeList(col.examples) : null);
|
|
8124
8125
|
};
|
|
8125
8126
|
KustoLanguageService.createParameterSymbol = function (param) {
|
|
8126
8127
|
var paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(schema_1.getCslTypeNameFromClrType(param.type));
|
|
@@ -8146,7 +8147,7 @@ define('vs/language/kusto/languageService/kustoLanguageService',["require", "exp
|
|
|
8146
8147
|
return KustoLanguageService.createParameter(param);
|
|
8147
8148
|
});
|
|
8148
8149
|
// TODO: handle outputColumns (right now it doesn't seem to be implemented for any function).
|
|
8149
|
-
return new sym.FunctionSymbol.$
|
|
8150
|
+
return new sym.FunctionSymbol.$ctor14(fn.name, fn.body, KustoLanguageService.toBridgeList(parameters), fn.docstring);
|
|
8150
8151
|
};
|
|
8151
8152
|
var createTableSymbol = function (tbl) {
|
|
8152
8153
|
var _a;
|
|
@@ -847,11 +847,12 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
847
847
|
docstring: DocString,
|
|
848
848
|
entityType: tableEntity,
|
|
849
849
|
columns: OrderedColumns.map(function (_a) {
|
|
850
|
-
var Name = _a.Name, Type = _a.Type, DocString = _a.DocString, CslType = _a.CslType;
|
|
850
|
+
var Name = _a.Name, Type = _a.Type, DocString = _a.DocString, CslType = _a.CslType, Examples = _a.Examples;
|
|
851
851
|
return ({
|
|
852
852
|
name: Name,
|
|
853
853
|
type: CslType,
|
|
854
854
|
docstring: DocString,
|
|
855
|
+
examples: Examples,
|
|
855
856
|
});
|
|
856
857
|
}),
|
|
857
858
|
});
|
|
@@ -1476,7 +1477,7 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
1476
1477
|
return "let " + fn.name + " = " + signature + " " + fn.body;
|
|
1477
1478
|
};
|
|
1478
1479
|
KustoLanguageService.createColumnSymbol = function (col) {
|
|
1479
|
-
return new sym.ColumnSymbol(col.name, sym.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(col.type)), col.docstring, null);
|
|
1480
|
+
return new sym.ColumnSymbol(col.name, sym.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(col.type)), col.docstring, null, null, col.examples ? KustoLanguageService.toBridgeList(col.examples) : null);
|
|
1480
1481
|
};
|
|
1481
1482
|
KustoLanguageService.createParameterSymbol = function (param) {
|
|
1482
1483
|
var paramSymbol = Kusto.Language.Symbols.ScalarTypes.GetSymbol(getCslTypeNameFromClrType(param.type));
|
|
@@ -1502,7 +1503,7 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
1502
1503
|
return KustoLanguageService.createParameter(param);
|
|
1503
1504
|
});
|
|
1504
1505
|
// TODO: handle outputColumns (right now it doesn't seem to be implemented for any function).
|
|
1505
|
-
return new sym.FunctionSymbol.$
|
|
1506
|
+
return new sym.FunctionSymbol.$ctor14(fn.name, fn.body, KustoLanguageService.toBridgeList(parameters), fn.docstring);
|
|
1506
1507
|
};
|
|
1507
1508
|
var createTableSymbol = function (tbl) {
|
|
1508
1509
|
var _a;
|