@kusto/monaco-kusto 7.5.0 → 7.5.1
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/Kusto.Language.Bridge.min.js +1 -1
- package/release/dev/kusto.javascript.client.min.js +1 -1
- package/release/dev/kustoMode.js +10 -4
- package/release/dev/kustoWorker.js +2 -2
- package/release/dev/{main-aca53293.js → main-4fb190a6.js} +2 -2
- package/release/dev/monaco.contribution.js +2 -2
- package/release/dev/{schema-aa8a3973.js → schema-be42938b.js} +2 -2
- package/release/esm/kusto.worker.js +2 -2
- package/release/esm/kustoMode.js +7 -3
- package/release/esm/languageService/settings.d.ts +3 -0
- package/release/esm/monaco.contribution.js +3 -3
- package/release/esm/{schema-dc382300.js → schema-05f36c81.js} +1 -1
- package/release/min/Kusto.Language.Bridge.min.js +1 -1
- 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-30131b2a.js → main-ed5cbce1.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/{schema-5a439400.js → schema-7648d829.js} +2 -2
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: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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-4fb190a6'], (function (exports, monaco, main) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -1590,8 +1590,14 @@ define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './ma
|
|
|
1590
1590
|
if (!url.startsWith('https')) {
|
|
1591
1591
|
url = "".concat(documentationBaseUrl, "/").concat(url);
|
|
1592
1592
|
}
|
|
1593
|
-
|
|
1594
|
-
|
|
1593
|
+
var monacoUri = monaco__namespace.Uri.parse(url);
|
|
1594
|
+
if (documentationSuffix) {
|
|
1595
|
+
// We need to override the toString method to add the suffix, otherwise it gets encoded and page doesn't open
|
|
1596
|
+
monacoUri.toString = function () {
|
|
1597
|
+
return url + documentationSuffix;
|
|
1598
|
+
};
|
|
1599
|
+
}
|
|
1600
|
+
return monacoUri;
|
|
1595
1601
|
}
|
|
1596
1602
|
});
|
|
1597
1603
|
return {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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-4fb190a6', './schema-be42938b'], (function (exports, main, schema) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$3(arr, i) || _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: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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-4fb190a6', ['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: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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', './schema-
|
|
8
|
+
define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './schema-be42938b'], (function (require, exports, monaco, 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: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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-be42938b', ['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,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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-05f36c81.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';
|
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: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -880,8 +880,12 @@ class CompletionAdapter {
|
|
|
880
880
|
if (!url.startsWith('https')) {
|
|
881
881
|
url = `${documentationBaseUrl}/${url}`;
|
|
882
882
|
}
|
|
883
|
-
|
|
884
|
-
|
|
883
|
+
const monacoUri = monaco.Uri.parse(url);
|
|
884
|
+
if (documentationSuffix) {
|
|
885
|
+
// We need to override the toString method to add the suffix, otherwise it gets encoded and page doesn't open
|
|
886
|
+
monacoUri.toString = () => url + documentationSuffix;
|
|
887
|
+
}
|
|
888
|
+
return monacoUri;
|
|
885
889
|
}
|
|
886
890
|
});
|
|
887
891
|
return {
|
|
@@ -17,6 +17,9 @@ export interface LanguageSettings {
|
|
|
17
17
|
quickFixCodeActions?: QuickFixCodeActionOptions[];
|
|
18
18
|
enableQuickFixes?: boolean;
|
|
19
19
|
documentationBaseUrl?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* will be added to the end of the documentation url in suggestions
|
|
22
|
+
*/
|
|
20
23
|
documentationSuffix?: string;
|
|
21
24
|
}
|
|
22
25
|
export interface FormatterOptions {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
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
|
-
import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-
|
|
10
|
-
export { s as showSchema } from './schema-
|
|
9
|
+
import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-05f36c81.js';
|
|
10
|
+
export { s as showSchema } from './schema-05f36c81.js';
|
|
11
11
|
|
|
12
12
|
function getCurrentCommandRange(editor, cursorPosition) {
|
|
13
13
|
const zeroBasedCursorLineNumber = cursorPosition.lineNumber - 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.5.
|
|
3
|
+
* monaco-kusto version: 7.5.1(83d29ee49718128b358abcf901e9266c868a2477)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|