@kusto/monaco-kusto 7.3.0 → 7.4.0
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 +7 -0
- 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 +4 -9
- package/release/dev/kustoWorker.js +13 -9
- package/release/dev/{main-6985c66e.js → main-56bdd7c6.js} +2 -2
- package/release/dev/monaco.contribution.js +2 -2
- package/release/dev/{schema-e48afa44.js → schema-2f34801e.js} +2 -2
- package/release/esm/kusto.worker.js +2 -2
- package/release/esm/kustoMode.js +3 -7
- package/release/esm/languageService/settings.d.ts +0 -1
- package/release/esm/monaco.contribution.js +3 -3
- package/release/esm/{schema-da29f26c.js → schema-13969b10.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 +4 -4
- package/release/min/{main-f46974ac.js → main-34387646.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/{schema-cd2b8c24.js → schema-cf674d5d.js} +2 -2
- package/release/monaco.d.ts +1 -1
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.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-56bdd7c6'], (function (exports, monaco, main) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -1578,19 +1578,14 @@ define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './ma
|
|
|
1578
1578
|
if (!docString) {
|
|
1579
1579
|
return undefined;
|
|
1580
1580
|
}
|
|
1581
|
-
var _this$languageSetting = this.languageSettings,
|
|
1582
|
-
_this$
|
|
1583
|
-
documentationBaseUrl = _this$languageSetting2 === void 0 ? DEFAULT_DOCS_BASE_URL : _this$languageSetting2,
|
|
1584
|
-
documentationDocUriTransformer = _this$languageSetting.documentationDocUriTransformer;
|
|
1581
|
+
var _this$languageSetting = this.languageSettings.documentationBaseUrl,
|
|
1582
|
+
documentationBaseUrl = _this$languageSetting === void 0 ? DEFAULT_DOCS_BASE_URL : _this$languageSetting;
|
|
1585
1583
|
var urisProxy = new Proxy({}, {
|
|
1586
1584
|
get: function get(_target, prop, _receiver) {
|
|
1587
1585
|
// The link comes with a postfix of ".md" that we want to remove
|
|
1588
1586
|
var linkWithoutPostfix = prop.toString().replace('.md', '');
|
|
1589
1587
|
// Sometimes we get the link as a full URL. For example in the main doc link of the item
|
|
1590
1588
|
var fullURL = linkWithoutPostfix.startsWith('https') ? linkWithoutPostfix : "".concat(documentationBaseUrl, "/").concat(linkWithoutPostfix);
|
|
1591
|
-
if (documentationDocUriTransformer) {
|
|
1592
|
-
fullURL = documentationDocUriTransformer(fullURL, prop.toString());
|
|
1593
|
-
}
|
|
1594
1589
|
return monaco__namespace.Uri.parse(fullURL);
|
|
1595
1590
|
}
|
|
1596
1591
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-56bdd7c6', './schema-2f34801e'], (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."); }
|
|
@@ -3438,14 +3438,18 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-6985c66e', './schema
|
|
|
3438
3438
|
// we need to manually load dependencies that are not explicit- meaning our non-module dependencies
|
|
3439
3439
|
// generated by Bridge.Net
|
|
3440
3440
|
if (typeof document == 'undefined') {
|
|
3441
|
-
// monaco
|
|
3442
|
-
//
|
|
3443
|
-
//
|
|
3441
|
+
// Match how monaco defines the base url when inside a web worker: https://github.com/microsoft/vscode/blob/dbeea39df4ac933fe6d5395ad457dad4b494838b/src/vs/base/worker/workerMain.ts#L16
|
|
3442
|
+
//
|
|
3443
|
+
// MonacoEnvironment.baseUrl is conditional because monaco only sets it when the url is of a different origin.
|
|
3444
|
+
// Related monaco code: https://github.com/microsoft/vscode/blob/dbeea39df4ac933fe6d5395ad457dad4b494838b/src/vs/base/browser/defaultWorkerFactory.ts#L47
|
|
3445
|
+
//
|
|
3446
|
+
// It's not clear if MonacoEnvironment in a worker is meant to be a public api or not, so this may break
|
|
3447
|
+
const baseUrl = (self.MonacoEnvironment?.baseUrl || '../../../') + 'vs/language/kusto/';
|
|
3444
3448
|
importScripts(
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
+
baseUrl + 'bridge.min.js',
|
|
3450
|
+
baseUrl + 'kusto.javascript.client.min.js',
|
|
3451
|
+
baseUrl + 'newtonsoft.json.min.js',
|
|
3452
|
+
baseUrl + 'Kusto.Language.Bridge.min.js'
|
|
3449
3453
|
);
|
|
3450
3454
|
}
|
|
3451
3455
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-56bdd7c6', ['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.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-2f34801e'], (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.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-2f34801e', ['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.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-13969b10.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.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -869,18 +869,14 @@ class CompletionAdapter {
|
|
|
869
869
|
return undefined;
|
|
870
870
|
}
|
|
871
871
|
const {
|
|
872
|
-
documentationBaseUrl = DEFAULT_DOCS_BASE_URL
|
|
873
|
-
documentationDocUriTransformer
|
|
872
|
+
documentationBaseUrl = DEFAULT_DOCS_BASE_URL
|
|
874
873
|
} = this.languageSettings;
|
|
875
874
|
const urisProxy = new Proxy({}, {
|
|
876
875
|
get(_target, prop, _receiver) {
|
|
877
876
|
// The link comes with a postfix of ".md" that we want to remove
|
|
878
877
|
const linkWithoutPostfix = prop.toString().replace('.md', '');
|
|
879
878
|
// Sometimes we get the link as a full URL. For example in the main doc link of the item
|
|
880
|
-
|
|
881
|
-
if (documentationDocUriTransformer) {
|
|
882
|
-
fullURL = documentationDocUriTransformer(fullURL, prop.toString());
|
|
883
|
-
}
|
|
879
|
+
const fullURL = linkWithoutPostfix.startsWith('https') ? linkWithoutPostfix : `${documentationBaseUrl}/${linkWithoutPostfix}`;
|
|
884
880
|
return monaco.Uri.parse(fullURL);
|
|
885
881
|
}
|
|
886
882
|
});
|
|
@@ -17,7 +17,6 @@ export interface LanguageSettings {
|
|
|
17
17
|
quickFixCodeActions?: QuickFixCodeActionOptions[];
|
|
18
18
|
enableQuickFixes?: boolean;
|
|
19
19
|
documentationBaseUrl?: boolean;
|
|
20
|
-
documentationDocUriTransformer?: (href: string, rawUrl: string) => string;
|
|
21
20
|
}
|
|
22
21
|
export interface FormatterOptions {
|
|
23
22
|
indentationSize?: number;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 7.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
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-13969b10.js';
|
|
10
|
+
export { s as showSchema } from './schema-13969b10.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.
|
|
3
|
+
* monaco-kusto version: 7.4.0(61ca17e0c3991a77c080f9f08a61577e53bf1aca)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|