@kusto/monaco-kusto 5.1.1 → 5.1.4
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 +3 -3
- package/release/dev/kustoWorker.js +3 -3
- package/release/esm/kustoWorker.js +2 -2
- package/release/esm/languageService/kustoLanguageService.js +1 -1
- package/release/esm/monaco.d.ts +1 -1
- package/release/min/kusto.javascript.client.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/release/min/monaco.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kusto/monaco-kusto",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4",
|
|
4
4
|
"description": "CSL, KQL plugin for the Monaco Editor",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft"
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"xregexp": "^3.2.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@kusto/language-service": "
|
|
58
|
-
"@kusto/language-service-next": "0.0.
|
|
57
|
+
"@kusto/language-service": "0.0.36",
|
|
58
|
+
"@kusto/language-service-next": "0.0.55"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"monaco-editor": "0.33.0"
|
|
@@ -7219,7 +7219,7 @@ define('vs/language/kusto/languageService/kustoLanguageService',["require", "exp
|
|
|
7219
7219
|
var diagnostics = blocks
|
|
7220
7220
|
.map(function (block) {
|
|
7221
7221
|
// GetDiagnostics returns the errors in the block
|
|
7222
|
-
var diagnostics = _this.toArray(block.Service.GetDiagnostics(
|
|
7222
|
+
var diagnostics = _this.toArray(block.Service.GetDiagnostics());
|
|
7223
7223
|
var enableWarnings = includeWarnings !== null && includeWarnings !== void 0 ? includeWarnings : _this._languageSettings.enableQueryWarnings;
|
|
7224
7224
|
var enableSuggestions = includeSuggestions !== null && includeSuggestions !== void 0 ? includeSuggestions : _this._languageSettings.enableQuerySuggestions;
|
|
7225
7225
|
if (enableWarnings || enableSuggestions) {
|
|
@@ -8569,9 +8569,9 @@ define('vs/language/kusto/kustoWorker',["require", "exports", "./languageService
|
|
|
8569
8569
|
var completions = this._languageService.doComplete(document, position);
|
|
8570
8570
|
return completions;
|
|
8571
8571
|
};
|
|
8572
|
-
KustoWorker.prototype.doValidation = function (uri, intervals) {
|
|
8572
|
+
KustoWorker.prototype.doValidation = function (uri, intervals, includeWarnings, includeSuggestions) {
|
|
8573
8573
|
var document = this._getTextDocument(uri);
|
|
8574
|
-
var diagnostics = this._languageService.doValidation(document, intervals);
|
|
8574
|
+
var diagnostics = this._languageService.doValidation(document, intervals, includeWarnings, includeSuggestions);
|
|
8575
8575
|
return diagnostics;
|
|
8576
8576
|
};
|
|
8577
8577
|
KustoWorker.prototype.doRangeFormat = function (uri, range) {
|
|
@@ -137,9 +137,9 @@ var KustoWorker = /** @class */ (function () {
|
|
|
137
137
|
var completions = this._languageService.doComplete(document, position);
|
|
138
138
|
return completions;
|
|
139
139
|
};
|
|
140
|
-
KustoWorker.prototype.doValidation = function (uri, intervals) {
|
|
140
|
+
KustoWorker.prototype.doValidation = function (uri, intervals, includeWarnings, includeSuggestions) {
|
|
141
141
|
var document = this._getTextDocument(uri);
|
|
142
|
-
var diagnostics = this._languageService.doValidation(document, intervals);
|
|
142
|
+
var diagnostics = this._languageService.doValidation(document, intervals, includeWarnings, includeSuggestions);
|
|
143
143
|
return diagnostics;
|
|
144
144
|
};
|
|
145
145
|
KustoWorker.prototype.doRangeFormat = function (uri, range) {
|
|
@@ -575,7 +575,7 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
575
575
|
var diagnostics = blocks
|
|
576
576
|
.map(function (block) {
|
|
577
577
|
// GetDiagnostics returns the errors in the block
|
|
578
|
-
var diagnostics = _this.toArray(block.Service.GetDiagnostics(
|
|
578
|
+
var diagnostics = _this.toArray(block.Service.GetDiagnostics());
|
|
579
579
|
var enableWarnings = includeWarnings !== null && includeWarnings !== void 0 ? includeWarnings : _this._languageSettings.enableQueryWarnings;
|
|
580
580
|
var enableSuggestions = includeSuggestions !== null && includeSuggestions !== void 0 ? includeSuggestions : _this._languageSettings.enableQuerySuggestions;
|
|
581
581
|
if (enableWarnings || enableSuggestions) {
|
package/release/esm/monaco.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ declare module monaco.languages.kusto {
|
|
|
120
120
|
doDocumentFormat(uri: string): Promise<ls.TextEdit[]>;
|
|
121
121
|
doRangeFormat(uri: string, range: ls.Range): Promise<ls.TextEdit[]>;
|
|
122
122
|
doCurrentCommandFormat(uri: string, caretPosition: ls.Position): Promise<ls.TextEdit[]>;
|
|
123
|
-
doValidation(uri: string, intervals: { start: number; end: number }[]): Promise<ls.Diagnostic[]>;
|
|
123
|
+
doValidation(uri: string, intervals: { start: number; end: number }[], includeWarnings?: boolean, includeSuggestions?: boolean): Promise<ls.Diagnostic[]>;
|
|
124
124
|
setParameters(parameters: ScalarParameter[]): void;
|
|
125
125
|
/**
|
|
126
126
|
* Get all the database references from the current command.
|