@kusto/monaco-kusto 11.4.0 → 12.0.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 +19 -1
- package/package.json +3 -1
- package/release/dev/globals-0aacfe72.js +46 -0
- package/release/dev/kustoMode.js +214 -497
- package/release/dev/kustoWorker.js +49 -90
- package/release/dev/{main-1587ba64.js → main-b690e47e.js} +2 -2
- package/release/dev/monaco.contribution.js +235 -201
- package/release/dev/{schema-a5230652.js → schema-957f5e9b.js} +13 -2
- package/release/esm/extendedGlobalApi/getRangeHtml.d.ts +2 -0
- package/release/esm/extendedGlobalApi/getRangeHtml.js +11 -0
- package/release/esm/extendedGlobalApi/index.d.ts +1 -0
- package/release/esm/extendedGlobalApi/index.js +1 -0
- package/release/esm/globals-88d92b64.js +40 -0
- package/release/esm/globals.d.ts +1 -0
- package/release/esm/globals.js +1 -0
- package/release/esm/kusto.worker.js +39 -91
- package/release/esm/kustoMode.js +39 -29
- package/release/esm/kustoWorker.d.ts +2 -5
- package/release/esm/kustoWorker.js +2 -5
- package/release/esm/languageFeatures.d.ts +0 -13
- package/release/esm/languageFeatures.js +0 -299
- package/release/esm/languageServiceManager/kustoLanguageService.d.ts +2 -4
- package/release/esm/languageServiceManager/kustoLanguageService.js +58 -71
- package/release/esm/languageServiceManager/settings.d.ts +0 -2
- package/release/esm/monaco.contribution.d.ts +1 -6
- package/release/esm/monaco.contribution.js +22 -79
- package/release/esm/{schema-c006895b.js → schema-66580db4.js} +12 -2
- package/release/esm/syntaxHighlighting/SemanticTokensProvider.d.ts +18 -0
- package/release/esm/syntaxHighlighting/SemanticTokensProvider.js +78 -0
- package/release/esm/syntaxHighlighting/kustoMonarchLanguageDefinition.d.ts +2 -0
- package/release/esm/syntaxHighlighting/kustoMonarchLanguageDefinition.js +401 -0
- package/release/esm/syntaxHighlighting/themes.d.ts +11 -0
- package/release/esm/syntaxHighlighting/themes.js +103 -0
- package/release/esm/syntaxHighlighting/types.d.ts +41 -0
- package/release/esm/syntaxHighlighting/types.js +55 -0
- package/release/min/globals-cce7b304.js +7 -0
- package/release/min/kustoMode.js +2 -2
- package/release/min/kustoWorker.js +4 -4
- package/release/min/{main-75aa3e71.js → main-13659fc4.js} +2 -2
- package/release/min/monaco.contribution.js +2 -2
- package/release/min/schema-ab3cbb28.js +7 -0
- package/release/esm/languageServiceManager/kustoMonarchLanguageDefinition.d.ts +0 -2
- package/release/esm/languageServiceManager/kustoMonarchLanguageDefinition.js +0 -211
- package/release/min/schema-192b3175.js +0 -7
package/README.md
CHANGED
|
@@ -85,6 +85,24 @@ Every PR should come with a test that checks it.
|
|
|
85
85
|
|
|
86
86
|
## Changelog
|
|
87
87
|
|
|
88
|
+
### 12.0.0
|
|
89
|
+
|
|
90
|
+
### Breaking Changes
|
|
91
|
+
|
|
92
|
+
- Replaced syntax highlighting in Monaco-Kusto. The old method injected CSS for each KQL classified block, causing copy-to-clipboard issues. The new implementation uses:
|
|
93
|
+
- **Monarch Tokens**: Efficient syntax highlighting leveraging Monaco Editor capabilities.
|
|
94
|
+
- **Semantic Syntax Highlighting**: Uses Kusto Language Service for context-aware highlighting.
|
|
95
|
+
- Removed `useSemanticColorization` and `useTokenColorization` settings.
|
|
96
|
+
- Renamed `kusto-dark2` theme to `kusto-dark`
|
|
97
|
+
- To enable new highlighting, add the following flag when creating the Monaco editor:
|
|
98
|
+
```javascript
|
|
99
|
+
monaco.editor.create(document.getElementById('editor'), {
|
|
100
|
+
// current flags...
|
|
101
|
+
'semanticHighlighting.enabled': true,
|
|
102
|
+
});
|
|
103
|
+
```
|
|
104
|
+
- `getRangeHtml` is a new public API for retrieving HTML content with syntax highlighting for clipboard data.
|
|
105
|
+
|
|
88
106
|
### 11.4.0
|
|
89
107
|
|
|
90
108
|
- feat: IntelliSense completion items now maintain the original order from the language service, with the most relevant option automatically focused based on the user's input.
|
|
@@ -97,7 +115,7 @@ Every PR should come with a test that checks it.
|
|
|
97
115
|
|
|
98
116
|
- feat: Upgrade language-service-next to 11.6.1.
|
|
99
117
|
|
|
100
|
-
|
|
118
|
+
### 11.2.0
|
|
101
119
|
|
|
102
120
|
- feat: Fix bugs related to last version upgrade.
|
|
103
121
|
- feat: Upgrade language-service-next to 11.6.0.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kusto/monaco-kusto",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "CSL, KQL plugin for the Monaco Editor",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft"
|
|
@@ -52,11 +52,13 @@
|
|
|
52
52
|
"@rollup/plugin-terser": "^0.4.3",
|
|
53
53
|
"@rollup/plugin-virtual": "^3.0.1",
|
|
54
54
|
"@tsconfig/node20": "^20.1.2",
|
|
55
|
+
"@types/color-convert": "^2.0.3",
|
|
55
56
|
"@types/jest": "^29.5.12",
|
|
56
57
|
"@types/lodash-es": "^4.17.9",
|
|
57
58
|
"@types/node": "^20.6.3",
|
|
58
59
|
"@types/xregexp": "^4.4.0",
|
|
59
60
|
"browser-sync": "^3.0.2",
|
|
61
|
+
"color-convert": "^2.0.1",
|
|
60
62
|
"concurrently": "^8.2.1",
|
|
61
63
|
"http-server": "^14.1.1",
|
|
62
64
|
"jest": "^29.7.0",
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* monaco-kusto version: 12.0.0(2f1838c12bdb98562467acf51b6fd3e396182e86)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://https://github.com/Azure/monaco-kusto/blob/master/README.md
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
|
|
8
|
+
define('vs/language/kusto/globals-0aacfe72', ['exports'], (function (exports) { 'use strict';
|
|
9
|
+
|
|
10
|
+
var Token = /*#__PURE__*/function (Token) {
|
|
11
|
+
Token["PlainText"] = "plainText";
|
|
12
|
+
Token["Comment"] = "comment";
|
|
13
|
+
Token["Punctuation"] = "punctuation";
|
|
14
|
+
Token["Directive"] = "directive";
|
|
15
|
+
Token["Literal"] = "literal";
|
|
16
|
+
Token["StringLiteral"] = "stringLiteral";
|
|
17
|
+
Token["Type"] = "type";
|
|
18
|
+
Token["Column"] = "column";
|
|
19
|
+
Token["Table"] = "table";
|
|
20
|
+
Token["Database"] = "database";
|
|
21
|
+
Token["Function"] = "function";
|
|
22
|
+
Token["Parameter"] = "parameter";
|
|
23
|
+
Token["Variable"] = "variable";
|
|
24
|
+
Token["Identifier"] = "identifier";
|
|
25
|
+
Token["ClientParameter"] = "clientParameter";
|
|
26
|
+
Token["QueryParameter"] = "queryParameter";
|
|
27
|
+
Token["ScalarParameter"] = "scalarParameter";
|
|
28
|
+
Token["MathOperator"] = "mathOperator";
|
|
29
|
+
Token["QueryOperator"] = "queryOperator";
|
|
30
|
+
Token["Command"] = "command";
|
|
31
|
+
Token["Keyword"] = "keyword";
|
|
32
|
+
Token["MaterializedView"] = "materializedView";
|
|
33
|
+
Token["SchemaMember"] = "schemaMember";
|
|
34
|
+
Token["SignatureParameter"] = "signatureParameter";
|
|
35
|
+
Token["Option"] = "option";
|
|
36
|
+
return Token;
|
|
37
|
+
}({});
|
|
38
|
+
var tokenTypes = [Token.PlainText, Token.Comment, Token.Punctuation, Token.Directive, Token.Literal, Token.StringLiteral, Token.Type, Token.Column, Token.Table, Token.Database, Token.Function, Token.Parameter, Token.Variable, Token.Identifier, Token.ClientParameter, Token.QueryParameter, Token.ScalarParameter, Token.MathOperator, Token.QueryOperator, Token.Command, Token.Keyword, Token.MaterializedView, Token.SchemaMember, Token.SignatureParameter, Token.Option];
|
|
39
|
+
|
|
40
|
+
var LANGUAGE_ID = 'kusto';
|
|
41
|
+
|
|
42
|
+
exports.LANGUAGE_ID = LANGUAGE_ID;
|
|
43
|
+
exports.Token = Token;
|
|
44
|
+
exports.tokenTypes = tokenTypes;
|
|
45
|
+
|
|
46
|
+
}));
|