@kusto/monaco-kusto 4.1.4 → 4.1.7
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 +20 -7
- package/release/esm/monaco.contribution.js +20 -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.7",
|
|
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,21 @@ 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
|
+
'editor.background': '#1B1A19',
|
|
281
|
+
'editorSuggestWidget.selectedBackground': '#004E8C',
|
|
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
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
290
|
+
'editor.background': '#1B1A19',
|
|
291
|
+
'editorSuggestWidget.selectedBackground': '#004E8C',
|
|
292
|
+
},
|
|
281
293
|
});
|
|
282
294
|
// Initialize kusto specific language features that don't currently have a natural way to extend using existing apis.
|
|
283
295
|
// Most other language features are initialized in kustoMode.ts
|
|
@@ -296,7 +308,8 @@ define('vs/language/kusto/monaco.contribution',["require", "exports", "./command
|
|
|
296
308
|
if (kustoDefaults &&
|
|
297
309
|
kustoDefaults.languageSettings &&
|
|
298
310
|
kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
|
|
299
|
-
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
311
|
+
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
312
|
+
event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
|
|
300
313
|
if (!didAcceptSuggestion) {
|
|
301
314
|
return;
|
|
302
315
|
}
|
|
@@ -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,21 @@ 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
|
+
'editor.background': '#1B1A19',
|
|
144
|
+
'editorSuggestWidget.selectedBackground': '#004E8C',
|
|
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
|
+
// see: https://code.visualstudio.com/api/references/theme-color#editor-widget-colors
|
|
153
|
+
'editor.background': '#1B1A19',
|
|
154
|
+
'editorSuggestWidget.selectedBackground': '#004E8C',
|
|
155
|
+
},
|
|
144
156
|
});
|
|
145
157
|
// Initialize kusto specific language features that don't currently have a natural way to extend using existing apis.
|
|
146
158
|
// Most other language features are initialized in kustoMode.ts
|
|
@@ -159,7 +171,8 @@ export function setupMonacoKusto(monacoInstance) {
|
|
|
159
171
|
if (kustoDefaults &&
|
|
160
172
|
kustoDefaults.languageSettings &&
|
|
161
173
|
kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
|
|
162
|
-
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
174
|
+
var didAcceptSuggestion = event.source === 'modelChange' &&
|
|
175
|
+
event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
|
|
163
176
|
if (!didAcceptSuggestion) {
|
|
164
177
|
return;
|
|
165
178
|
}
|