@kusto/monaco-kusto 4.1.2 → 4.1.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusto/monaco-kusto",
3
- "version": "4.1.2",
3
+ "version": "4.1.5",
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.51"
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,7 +275,11 @@ 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',
@@ -296,7 +304,8 @@ define('vs/language/kusto/monaco.contribution',["require", "exports", "./command
296
304
  if (kustoDefaults &&
297
305
  kustoDefaults.languageSettings &&
298
306
  kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
299
- var didAcceptSuggestion = event.source === 'modelChange' && event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
307
+ var didAcceptSuggestion = event.source === 'modelChange' &&
308
+ event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
300
309
  if (!didAcceptSuggestion) {
301
310
  return;
302
311
  }
@@ -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,7 +138,11 @@ 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',
@@ -159,7 +167,8 @@ export function setupMonacoKusto(monacoInstance) {
159
167
  if (kustoDefaults &&
160
168
  kustoDefaults.languageSettings &&
161
169
  kustoDefaults.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted) {
162
- var didAcceptSuggestion = event.source === 'modelChange' && event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
170
+ var didAcceptSuggestion = event.source === 'modelChange' &&
171
+ event.reason === monaco.editor.CursorChangeReason.RecoverFromMarkers;
163
172
  if (!didAcceptSuggestion) {
164
173
  return;
165
174
  }