@kusto/monaco-kusto 4.1.3 → 4.1.6
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 +2 -2
- package/release/dev/monaco.contribution.js +21 -7
- package/release/esm/monaco.contribution.js +21 -7
- package/release/min/Kusto.Language.Bridge.min.js +1 -1
- package/release/min/kustoMode.js +1 -1
- package/release/min/kustoWorker.js +1 -1
- package/release/min/monaco.contribution.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kusto/monaco-kusto",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.6",
|
|
4
4
|
"description": "CSL, KQL plugin for the Monaco Editor",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Microsoft"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@kusto/language-service": "2.0.0-beta.0",
|
|
58
|
-
"@kusto/language-service-next": "0.0.
|
|
58
|
+
"@kusto/language-service-next": "0.0.54"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"monaco-editor": "^0.24.0"
|
|
@@ -191,11 +191,11 @@ define('vs/language/kusto/monaco.contribution',["require", "exports", "./command
|
|
|
191
191
|
enableHover: true,
|
|
192
192
|
formatter: {
|
|
193
193
|
indentationSize: 4,
|
|
194
|
-
pipeOperatorStyle: 'Smart'
|
|
194
|
+
pipeOperatorStyle: 'Smart',
|
|
195
195
|
},
|
|
196
196
|
syntaxErrorAsMarkDown: {
|
|
197
|
-
enableSyntaxErrorAsMarkDown: false
|
|
198
|
-
}
|
|
197
|
+
enableSyntaxErrorAsMarkDown: false,
|
|
198
|
+
},
|
|
199
199
|
};
|
|
200
200
|
function getKustoWorker() {
|
|
201
201
|
return new Promise(function (resolve, reject) {
|
|
@@ -248,7 +248,11 @@ define('vs/language/kusto/monaco.contribution',["require", "exports", "./command
|
|
|
248
248
|
{ token: 'annotation', foreground: '9400D3' },
|
|
249
249
|
{ token: 'invalid', background: 'cd3131' },
|
|
250
250
|
],
|
|
251
|
-
colors: {
|
|
251
|
+
colors: {
|
|
252
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
253
|
+
'editorSuggestWidget.selectedBackground': '#93CFFB',
|
|
254
|
+
'editorSuggestWidget.background': '#FAF9F8',
|
|
255
|
+
},
|
|
252
256
|
});
|
|
253
257
|
monacoInstance.editor.defineTheme('kusto-dark', {
|
|
254
258
|
base: 'vs-dark',
|
|
@@ -271,13 +275,22 @@ define('vs/language/kusto/monaco.contribution',["require", "exports", "./command
|
|
|
271
275
|
{ token: 'annotation', foreground: 'b5cea8' },
|
|
272
276
|
{ token: 'invalid', background: 'cd3131' },
|
|
273
277
|
],
|
|
274
|
-
colors: {
|
|
278
|
+
colors: {
|
|
279
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
280
|
+
'editorSuggestWidget.selectedBackground': '#001191',
|
|
281
|
+
'editorSuggestWidget.background': '#000000',
|
|
282
|
+
},
|
|
275
283
|
});
|
|
276
284
|
monacoInstance.editor.defineTheme('kusto-dark2', {
|
|
277
285
|
base: 'vs-dark',
|
|
278
286
|
inherit: true,
|
|
279
287
|
rules: [],
|
|
280
|
-
colors: {
|
|
288
|
+
colors: {
|
|
289
|
+
'editor.background': '#1B1A19',
|
|
290
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
291
|
+
'editorSuggestWidget.selectedBackground': '#001191',
|
|
292
|
+
'editorSuggestWidget.background': '#000000',
|
|
293
|
+
},
|
|
281
294
|
});
|
|
282
295
|
// Initialize kusto specific language features that don't currently have a natural way to extend using existing apis.
|
|
283
296
|
// Most other language features are initialized in kustoMode.ts
|
|
@@ -296,7 +309,8 @@ define('vs/language/kusto/monaco.contribution',["require", "exports", "./command
|
|
|
296
309
|
if (kustoDefaults &&
|
|
297
310
|
kustoDefaults.languageSettings &&
|
|
298
311
|
kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
|
|
299
|
-
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
312
|
+
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
313
|
+
event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
|
|
300
314
|
if (!didAcceptSuggestion) {
|
|
301
315
|
return;
|
|
302
316
|
}
|
|
@@ -54,11 +54,11 @@ var defaultLanguageSettings = {
|
|
|
54
54
|
enableHover: true,
|
|
55
55
|
formatter: {
|
|
56
56
|
indentationSize: 4,
|
|
57
|
-
pipeOperatorStyle: 'Smart'
|
|
57
|
+
pipeOperatorStyle: 'Smart',
|
|
58
58
|
},
|
|
59
59
|
syntaxErrorAsMarkDown: {
|
|
60
|
-
enableSyntaxErrorAsMarkDown: false
|
|
61
|
-
}
|
|
60
|
+
enableSyntaxErrorAsMarkDown: false,
|
|
61
|
+
},
|
|
62
62
|
};
|
|
63
63
|
function getKustoWorker() {
|
|
64
64
|
return new Promise(function (resolve, reject) {
|
|
@@ -111,7 +111,11 @@ export function setupMonacoKusto(monacoInstance) {
|
|
|
111
111
|
{ token: 'annotation', foreground: '9400D3' },
|
|
112
112
|
{ token: 'invalid', background: 'cd3131' },
|
|
113
113
|
],
|
|
114
|
-
colors: {
|
|
114
|
+
colors: {
|
|
115
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
116
|
+
'editorSuggestWidget.selectedBackground': '#93CFFB',
|
|
117
|
+
'editorSuggestWidget.background': '#FAF9F8',
|
|
118
|
+
},
|
|
115
119
|
});
|
|
116
120
|
monacoInstance.editor.defineTheme('kusto-dark', {
|
|
117
121
|
base: 'vs-dark',
|
|
@@ -134,13 +138,22 @@ export function setupMonacoKusto(monacoInstance) {
|
|
|
134
138
|
{ token: 'annotation', foreground: 'b5cea8' },
|
|
135
139
|
{ token: 'invalid', background: 'cd3131' },
|
|
136
140
|
],
|
|
137
|
-
colors: {
|
|
141
|
+
colors: {
|
|
142
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
143
|
+
'editorSuggestWidget.selectedBackground': '#001191',
|
|
144
|
+
'editorSuggestWidget.background': '#000000',
|
|
145
|
+
},
|
|
138
146
|
});
|
|
139
147
|
monacoInstance.editor.defineTheme('kusto-dark2', {
|
|
140
148
|
base: 'vs-dark',
|
|
141
149
|
inherit: true,
|
|
142
150
|
rules: [],
|
|
143
|
-
colors: {
|
|
151
|
+
colors: {
|
|
152
|
+
'editor.background': '#1B1A19',
|
|
153
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
154
|
+
'editorSuggestWidget.selectedBackground': '#001191',
|
|
155
|
+
'editorSuggestWidget.background': '#000000',
|
|
156
|
+
},
|
|
144
157
|
});
|
|
145
158
|
// Initialize kusto specific language features that don't currently have a natural way to extend using existing apis.
|
|
146
159
|
// Most other language features are initialized in kustoMode.ts
|
|
@@ -159,7 +172,8 @@ export function setupMonacoKusto(monacoInstance) {
|
|
|
159
172
|
if (kustoDefaults &&
|
|
160
173
|
kustoDefaults.languageSettings &&
|
|
161
174
|
kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
|
|
162
|
-
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
175
|
+
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
176
|
+
event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
|
|
163
177
|
if (!didAcceptSuggestion) {
|
|
164
178
|
return;
|
|
165
179
|
}
|