@kusto/monaco-kusto 10.0.19 → 10.0.21
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 -2
- package/release/dev/Kusto.Language.Bridge.min.js +193 -190
- package/release/dev/kustoMode.js +3 -3
- package/release/dev/kustoWorker.js +9 -6
- package/release/dev/{main-2e3d19e8.js → main-1cf16bbf.js} +2 -2
- package/release/dev/monaco.contribution.js +6 -3
- package/release/dev/{schema-19b5584d.js → schema-8c33b807.js} +2 -2
- package/release/esm/kusto.worker.js +11 -6
- package/release/esm/kustoMode.js +1 -1
- package/release/esm/kustoWorker.d.ts +6 -6
- package/release/esm/kustoWorker.js +1 -1
- package/release/esm/languageFeatures.d.ts +1 -1
- package/release/esm/languageFeatures.js +1 -1
- package/release/esm/{languageService → languageServiceManager}/kustoLanguageService.js +5 -2
- package/release/esm/{languageService → languageServiceManager}/settings.d.ts +4 -0
- package/release/esm/monaco.contribution.d.ts +4 -4
- package/release/esm/monaco.contribution.js +5 -4
- package/release/esm/{schema-56df1dea.js → schema-18e9c1bd.js} +1 -1
- package/release/esm/types.d.ts +3 -3
- package/release/min/Kusto.Language.Bridge.min.js +193 -190
- package/release/min/kustoMode.js +2 -2
- package/release/min/kustoWorker.js +3 -3
- package/release/min/{main-a6b2e21b.js → main-905f9918.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/{schema-517e2f39.js → schema-61a4f66d.js} +2 -2
- /package/release/esm/{languageService → languageServiceManager}/kustoLanguageService.d.ts +0 -0
- /package/release/esm/{languageService → languageServiceManager}/kustoMonarchLanguageDefinition.d.ts +0 -0
- /package/release/esm/{languageService → languageServiceManager}/kustoMonarchLanguageDefinition.js +0 -0
- /package/release/esm/{languageService → languageServiceManager}/renderInfo.d.ts +0 -0
- /package/release/esm/{languageService → languageServiceManager}/renderInfo.js +0 -0
- /package/release/esm/{languageService → languageServiceManager}/schema.d.ts +0 -0
- /package/release/esm/{languageService → languageServiceManager}/schema.js +0 -0
- /package/release/esm/{languageService → languageServiceManager}/settings.js +0 -0
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: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
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-1cf16bbf'], (function (exports, monaco, main) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -1522,7 +1522,7 @@ define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './ma
|
|
|
1522
1522
|
_createClass(CompletionAdapter, [{
|
|
1523
1523
|
key: "triggerCharacters",
|
|
1524
1524
|
get: function get() {
|
|
1525
|
-
return [' '];
|
|
1525
|
+
return [' ', '.', '('];
|
|
1526
1526
|
}
|
|
1527
1527
|
}, {
|
|
1528
1528
|
key: "provideCompletionItems",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
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-1cf16bbf', './schema-8c33b807'], (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."); }
|
|
@@ -3673,6 +3673,8 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-2e3d19e8', './schema
|
|
|
3673
3673
|
key: "configure",
|
|
3674
3674
|
value: function configure(languageSettings) {
|
|
3675
3675
|
this._languageSettings = languageSettings;
|
|
3676
|
+
var includeExtendedSyntax = this._languageSettings.completionOptions.includeExtendedSyntax;
|
|
3677
|
+
this._completionOptions = Kusto.Language.Editor.CompletionOptions.Default.WithIncludeExtendedSyntax(includeExtendedSyntax);
|
|
3676
3678
|
|
|
3677
3679
|
// Since we're still reverting to V1 intellisense for control commands, we need to update the rules provider
|
|
3678
3680
|
// (which is a notion of V1 intellisense).
|
|
@@ -3736,9 +3738,7 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-2e3d19e8', './schema
|
|
|
3736
3738
|
// get current command
|
|
3737
3739
|
var cursorOffset = document.offsetAt(position);
|
|
3738
3740
|
var currentCommand = script.GetBlockAtPosition(cursorOffset);
|
|
3739
|
-
|
|
3740
|
-
// get completion items
|
|
3741
|
-
var completionItems = currentCommand.Service.GetCompletionItems(cursorOffset);
|
|
3741
|
+
var completionItems = currentCommand.Service.GetCompletionItems(cursorOffset, this._completionOptions);
|
|
3742
3742
|
var disabledItems = this.disabledCompletionItemsV2;
|
|
3743
3743
|
if (this._languageSettings.disabledCompletionItems) {
|
|
3744
3744
|
this._languageSettings.disabledCompletionItems.map(function (item) {
|
|
@@ -5553,7 +5553,10 @@ define('vs/language/kusto/kustoWorker', ['exports', './main-2e3d19e8', './schema
|
|
|
5553
5553
|
var languageService = new KustoLanguageService(KustoLanguageService.dummySchema, {
|
|
5554
5554
|
includeControlCommands: true,
|
|
5555
5555
|
useIntellisenseV2: true,
|
|
5556
|
-
useSemanticColorization: true
|
|
5556
|
+
useSemanticColorization: true,
|
|
5557
|
+
completionOptions: {
|
|
5558
|
+
includeExtendedSyntax: false
|
|
5559
|
+
}
|
|
5557
5560
|
});
|
|
5558
5561
|
|
|
5559
5562
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
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-1cf16bbf', ['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: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
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-8c33b807'], (function (require, exports, monaco, schema) { 'use strict';
|
|
9
9
|
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
11
11
|
var n = Object.create(null);
|
|
@@ -256,7 +256,10 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
|
|
|
256
256
|
enableQuerySuggestions: false,
|
|
257
257
|
disabledDiagnosticCodes: [],
|
|
258
258
|
quickFixCodeActions: ['Change to', 'FixAll'],
|
|
259
|
-
enableQuickFixes: false
|
|
259
|
+
enableQuickFixes: false,
|
|
260
|
+
completionOptions: {
|
|
261
|
+
includeExtendedSyntax: false
|
|
262
|
+
}
|
|
260
263
|
};
|
|
261
264
|
function getKustoWorker() {
|
|
262
265
|
return new Promise(function (resolve, reject) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
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-8c33b807', ['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: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
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-18e9c1bd.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';
|
|
@@ -203,6 +203,10 @@ class KustoLanguageService {
|
|
|
203
203
|
}
|
|
204
204
|
configure(languageSettings) {
|
|
205
205
|
this._languageSettings = languageSettings;
|
|
206
|
+
const {
|
|
207
|
+
includeExtendedSyntax
|
|
208
|
+
} = this._languageSettings.completionOptions;
|
|
209
|
+
this._completionOptions = Kusto.Language.Editor.CompletionOptions.Default.WithIncludeExtendedSyntax(includeExtendedSyntax);
|
|
206
210
|
|
|
207
211
|
// Since we're still reverting to V1 intellisense for control commands, we need to update the rules provider
|
|
208
212
|
// (which is a notion of V1 intellisense).
|
|
@@ -266,9 +270,7 @@ class KustoLanguageService {
|
|
|
266
270
|
// get current command
|
|
267
271
|
const cursorOffset = document.offsetAt(position);
|
|
268
272
|
let currentCommand = script.GetBlockAtPosition(cursorOffset);
|
|
269
|
-
|
|
270
|
-
// get completion items
|
|
271
|
-
const completionItems = currentCommand.Service.GetCompletionItems(cursorOffset);
|
|
273
|
+
const completionItems = currentCommand.Service.GetCompletionItems(cursorOffset, this._completionOptions);
|
|
272
274
|
let disabledItems = this.disabledCompletionItemsV2;
|
|
273
275
|
if (this._languageSettings.disabledCompletionItems) {
|
|
274
276
|
this._languageSettings.disabledCompletionItems.map(item => {
|
|
@@ -1899,7 +1901,10 @@ class KustoLanguageService {
|
|
|
1899
1901
|
let languageService = new KustoLanguageService(KustoLanguageService.dummySchema, {
|
|
1900
1902
|
includeControlCommands: true,
|
|
1901
1903
|
useIntellisenseV2: true,
|
|
1902
|
-
useSemanticColorization: true
|
|
1904
|
+
useSemanticColorization: true,
|
|
1905
|
+
completionOptions: {
|
|
1906
|
+
includeExtendedSyntax: false
|
|
1907
|
+
}
|
|
1903
1908
|
});
|
|
1904
1909
|
|
|
1905
1910
|
/**
|
package/release/esm/kustoMode.js
CHANGED
|
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
49
49
|
import { WorkerManager } from './workerManager';
|
|
50
|
-
import { KustoLanguageDefinition } from './
|
|
50
|
+
import { KustoLanguageDefinition } from './languageServiceManager/kustoMonarchLanguageDefinition';
|
|
51
51
|
import * as languageFeatures from './languageFeatures';
|
|
52
52
|
var kustoWorker;
|
|
53
53
|
var resolveWorker;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as ls from 'vscode-languageserver-types';
|
|
2
2
|
import type { worker } from 'monaco-editor/esm/vs/editor/editor.worker';
|
|
3
3
|
import type { IRange } from 'monaco-editor/esm/vs/editor/editor.api';
|
|
4
|
-
import * as kustoService from './
|
|
5
|
-
import type { LanguageSettings } from './
|
|
6
|
-
import { Schema, showSchema, ScalarParameter, Database, TabularParameter } from './
|
|
7
|
-
import type { ColorizationRange } from './
|
|
8
|
-
import type { RenderInfo } from './
|
|
4
|
+
import * as kustoService from './languageServiceManager/kustoLanguageService';
|
|
5
|
+
import type { LanguageSettings } from './languageServiceManager/settings';
|
|
6
|
+
import { Schema, showSchema, ScalarParameter, Database, TabularParameter } from './languageServiceManager/schema';
|
|
7
|
+
import type { ColorizationRange } from './languageServiceManager/kustoLanguageService';
|
|
8
|
+
import type { RenderInfo } from './languageServiceManager/renderInfo';
|
|
9
9
|
import type { ClusterReference, DatabaseReference } from './types';
|
|
10
10
|
export type InterfaceFor<C> = {
|
|
11
11
|
[Member in keyof C]: C[Member];
|
|
@@ -29,7 +29,7 @@ export declare class KustoWorkerImpl {
|
|
|
29
29
|
}[]): Promise<void>;
|
|
30
30
|
addDatabaseToSchema(uri: string, clusterName: string, databaseSchema: Database): Promise<void>;
|
|
31
31
|
setSchemaFromShowSchema(schema: any, clusterConnectionString: string, databaseInContextName: string): Promise<void>;
|
|
32
|
-
normalizeSchema(schema: showSchema.Result, clusterConnectionString: string, databaseInContextName: string): Promise<import("./
|
|
32
|
+
normalizeSchema(schema: showSchema.Result, clusterConnectionString: string, databaseInContextName: string): Promise<import("./languageServiceManager/schema").EngineSchema>;
|
|
33
33
|
getSchema(): Promise<Schema>;
|
|
34
34
|
getCommandInContext(uri: string, cursorOffset: number): Promise<string | null>;
|
|
35
35
|
getQueryParams(uri: string, cursorOffset: number): Promise<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ls from 'vscode-languageserver-types';
|
|
2
|
-
import * as kustoService from './
|
|
2
|
+
import * as kustoService from './languageServiceManager/kustoLanguageService';
|
|
3
3
|
var KustoWorkerImpl = /** @class */ (function () {
|
|
4
4
|
function KustoWorkerImpl(ctx, createData) {
|
|
5
5
|
this._ctx = ctx;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
2
|
import type { LanguageServiceDefaults, LanguageSettings } from './monaco.contribution';
|
|
3
|
-
import type { Schema } from './
|
|
3
|
+
import type { Schema } from './languageServiceManager/schema';
|
|
4
4
|
import { AugmentedWorkerAccessor } from './kustoMode';
|
|
5
5
|
export declare class DiagnosticsAdapter {
|
|
6
6
|
private _monacoInstance;
|
|
@@ -737,7 +737,7 @@ var CompletionAdapter = /** @class */ (function () {
|
|
|
737
737
|
}
|
|
738
738
|
Object.defineProperty(CompletionAdapter.prototype, "triggerCharacters", {
|
|
739
739
|
get: function () {
|
|
740
|
-
return [' '];
|
|
740
|
+
return [' ', '.', '('];
|
|
741
741
|
},
|
|
742
742
|
enumerable: false,
|
|
743
743
|
configurable: true
|
|
@@ -326,6 +326,9 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
326
326
|
});
|
|
327
327
|
KustoLanguageService.prototype.configure = function (languageSettings) {
|
|
328
328
|
this._languageSettings = languageSettings;
|
|
329
|
+
var includeExtendedSyntax = this._languageSettings.completionOptions.includeExtendedSyntax;
|
|
330
|
+
this._completionOptions =
|
|
331
|
+
Kusto.Language.Editor.CompletionOptions.Default.WithIncludeExtendedSyntax(includeExtendedSyntax);
|
|
329
332
|
// Since we're still reverting to V1 intellisense for control commands, we need to update the rules provider
|
|
330
333
|
// (which is a notion of V1 intellisense).
|
|
331
334
|
this.createRulesProvider(this._kustoJsSchema, this._schema.clusterType);
|
|
@@ -374,8 +377,7 @@ var KustoLanguageService = /** @class */ (function () {
|
|
|
374
377
|
// get current command
|
|
375
378
|
var cursorOffset = document.offsetAt(position);
|
|
376
379
|
var currentCommand = script.GetBlockAtPosition(cursorOffset);
|
|
377
|
-
|
|
378
|
-
var completionItems = currentCommand.Service.GetCompletionItems(cursorOffset);
|
|
380
|
+
var completionItems = currentCommand.Service.GetCompletionItems(cursorOffset, this._completionOptions);
|
|
379
381
|
var disabledItems = this.disabledCompletionItemsV2;
|
|
380
382
|
if (this._languageSettings.disabledCompletionItems) {
|
|
381
383
|
this._languageSettings.disabledCompletionItems.map(function (item) {
|
|
@@ -1895,6 +1897,7 @@ var languageService = new KustoLanguageService(KustoLanguageService.dummySchema,
|
|
|
1895
1897
|
includeControlCommands: true,
|
|
1896
1898
|
useIntellisenseV2: true,
|
|
1897
1899
|
useSemanticColorization: true,
|
|
1900
|
+
completionOptions: { includeExtendedSyntax: false },
|
|
1898
1901
|
});
|
|
1899
1902
|
/**
|
|
1900
1903
|
* Obtain an instance of the kusto language service.
|
|
@@ -21,6 +21,7 @@ export interface LanguageSettings {
|
|
|
21
21
|
* will be added to the end of the documentation url in suggestions
|
|
22
22
|
*/
|
|
23
23
|
documentationSuffix?: string;
|
|
24
|
+
completionOptions: CompletionOptions;
|
|
24
25
|
}
|
|
25
26
|
export interface FormatterOptions {
|
|
26
27
|
indentationSize?: number;
|
|
@@ -33,3 +34,6 @@ export interface SyntaxErrorAsMarkDownOptions {
|
|
|
33
34
|
}
|
|
34
35
|
export type QuickFixCodeActionOptions = 'Extract Expression' | 'Extract Function' | 'Change to' | 'FixAll';
|
|
35
36
|
export type FormatterPlacementStyle = 'None' | 'NewLine' | 'Smart';
|
|
37
|
+
export type CompletionOptions = {
|
|
38
|
+
includeExtendedSyntax: boolean;
|
|
39
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
2
|
import type { LanguageServiceDefaults, WorkerAccessor } from './types';
|
|
3
|
-
import type { LanguageSettings } from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
3
|
+
import type { LanguageSettings } from './languageServiceManager/settings';
|
|
4
|
+
export * from './languageServiceManager/schema';
|
|
5
|
+
export * from './languageServiceManager/renderInfo';
|
|
6
|
+
export * from './languageServiceManager/settings';
|
|
7
7
|
export * from './types';
|
|
8
8
|
export { getCurrentCommandRange } from './extendedEditor';
|
|
9
9
|
declare class LanguageServiceDefaultsImpl implements LanguageServiceDefaults {
|
|
@@ -2,10 +2,10 @@ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
|
2
2
|
import KustoCommandHighlighter from './commandHighlighter';
|
|
3
3
|
import KustoCommandFormatter from './commandFormatter';
|
|
4
4
|
import { extend, getCurrentCommandRange } from './extendedEditor';
|
|
5
|
-
import { getCslTypeNameFromClrType, getCallName, getExpression, getInputParametersAsCslString, getEntityDataTypeFromCslType, } from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
5
|
+
import { getCslTypeNameFromClrType, getCallName, getExpression, getInputParametersAsCslString, getEntityDataTypeFromCslType, } from './languageServiceManager/schema';
|
|
6
|
+
export * from './languageServiceManager/schema';
|
|
7
|
+
export * from './languageServiceManager/renderInfo';
|
|
8
|
+
export * from './languageServiceManager/settings';
|
|
9
9
|
export * from './types';
|
|
10
10
|
export { getCurrentCommandRange } from './extendedEditor';
|
|
11
11
|
// --- Kusto configuration and defaults ---------
|
|
@@ -69,6 +69,7 @@ var defaultLanguageSettings = {
|
|
|
69
69
|
disabledDiagnosticCodes: [],
|
|
70
70
|
quickFixCodeActions: ['Change to', 'FixAll'],
|
|
71
71
|
enableQuickFixes: false,
|
|
72
|
+
completionOptions: { includeExtendedSyntax: false },
|
|
72
73
|
};
|
|
73
74
|
export function getKustoWorker() {
|
|
74
75
|
return new Promise(function (resolve, reject) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* monaco-kusto version: 10.0.
|
|
3
|
+
* monaco-kusto version: 10.0.21(1a66aa7041bf94687bc1e155f25c36653c952049)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
package/release/esm/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
2
2
|
import type * as ls from 'vscode-languageserver-types';
|
|
3
|
-
import type { Schema, ScalarParameter, TabularParameter, EngineSchema, Database, showSchema } from './
|
|
4
|
-
import type { RenderInfo } from './
|
|
5
|
-
import type { LanguageSettings } from './
|
|
3
|
+
import type { Schema, ScalarParameter, TabularParameter, EngineSchema, Database, showSchema } from './languageServiceManager/schema';
|
|
4
|
+
import type { RenderInfo } from './languageServiceManager/renderInfo';
|
|
5
|
+
import type { LanguageSettings } from './languageServiceManager/settings';
|
|
6
6
|
export interface LanguageServiceDefaults {
|
|
7
7
|
readonly onDidChange: monaco.IEvent<LanguageServiceDefaults>;
|
|
8
8
|
readonly languageSettings: LanguageSettings;
|