@kusto/monaco-kusto 7.5.0 → 7.6.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.
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 7.5.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-aca53293'], (function (exports, monaco, main) { 'use strict';
8
+ define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './main-047f42f7'], (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
- url += documentationSuffix || '';
1594
- return monaco__namespace.Uri.parse(url);
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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-aca53293', './schema-aa8a3973'], (function (exports, main, schema) { 'use strict';
8
+ define('vs/language/kusto/kustoWorker', ['exports', './main-047f42f7', './schema-7ecad4fb'], (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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-aca53293', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/main-047f42f7', ['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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-aa8a3973'], (function (require, exports, monaco, schema) { 'use strict';
8
+ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './schema-7ecad4fb'], (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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-aa8a3973', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/schema-7ecad4fb', ['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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-dc382300.js';
11
+ import { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-1e383dc2.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';
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 7.5.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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
- url += documentationSuffix || '';
884
- return monaco.Uri.parse(url);
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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
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-dc382300.js';
10
- export { s as showSchema } from './schema-dc382300.js';
9
+ import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-1e383dc2.js';
10
+ export { s as showSchema } from './schema-1e383dc2.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.0(c5ab1d042fcce27f3e01cfde648d4f09d3666977)
3
+ * monaco-kusto version: 7.6.0(a115b6b3e83bdd969a401f7394d467286ffa01a7)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/