@kusto/monaco-kusto 6.1.0 → 6.1.2

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.
Files changed (56) hide show
  1. package/README.md +757 -0
  2. package/copyMonacoFilesAMD.js +28 -0
  3. package/package.json +14 -34
  4. package/release/dev/Kusto.Language.Bridge.min.js +2 -0
  5. package/release/dev/bridge.min.js +7 -0
  6. package/release/dev/kusto.javascript.client.min.js +1 -0
  7. package/release/dev/kustoMode.js +55 -22
  8. package/release/dev/kustoWorker.js +119 -118
  9. package/release/dev/{main-ac12725e.js → main-1f7cc4fa.js} +2 -2
  10. package/release/dev/monaco.contribution.js +7 -9
  11. package/release/dev/newtonsoft.json.min.js +7 -0
  12. package/release/esm/commandFormatter.d.ts +1 -1
  13. package/release/esm/commandHighlighter.d.ts +2 -2
  14. package/release/esm/extendedEditor.d.ts +1 -1
  15. package/release/esm/kusto.worker.js +28 -37
  16. package/release/esm/kustoMode.d.ts +3 -1
  17. package/release/esm/kustoMode.js +44 -16
  18. package/release/esm/kustoWorker.d.ts +5 -8
  19. package/release/esm/languageFeatures.d.ts +1 -1
  20. package/release/esm/languageService/kustoLanguageService.d.ts +2 -1
  21. package/release/esm/languageService/kustoMonarchLanguageDefinition.d.ts +2 -1
  22. package/release/esm/languageService/renderInfo.d.ts +5 -5
  23. package/release/esm/monaco.contribution.d.ts +3 -3
  24. package/release/esm/monaco.contribution.js +10 -8
  25. package/release/esm/workerManager.d.ts +1 -1
  26. package/release/min/kustoMode.js +2 -2
  27. package/release/min/kustoWorker.js +4 -4
  28. package/release/min/{main-5b1cc297.js → main-d13ce646.js} +2 -2
  29. package/release/min/monaco.contribution.js +2 -2
  30. package/release/dev/commandFormatter.d.ts +0 -6
  31. package/release/dev/commandHighlighter.d.ts +0 -20
  32. package/release/dev/extendedEditor.d.ts +0 -7
  33. package/release/dev/kustoMode.d.ts +0 -8
  34. package/release/dev/kustoWorker.d.ts +0 -92
  35. package/release/dev/languageFeatures.d.ts +0 -91
  36. package/release/dev/languageService/kustoLanguageService.d.ts +0 -143
  37. package/release/dev/languageService/kustoMonarchLanguageDefinition.d.ts +0 -1
  38. package/release/dev/languageService/renderInfo.d.ts +0 -31
  39. package/release/dev/languageService/schema.d.ts +0 -144
  40. package/release/dev/languageService/settings.d.ts +0 -30
  41. package/release/dev/monaco.contribution.d.ts +0 -15
  42. package/release/dev/workerManager.d.ts +0 -23
  43. package/release/min/commandFormatter.d.ts +0 -6
  44. package/release/min/commandHighlighter.d.ts +0 -20
  45. package/release/min/extendedEditor.d.ts +0 -7
  46. package/release/min/kustoMode.d.ts +0 -8
  47. package/release/min/kustoWorker.d.ts +0 -92
  48. package/release/min/languageFeatures.d.ts +0 -91
  49. package/release/min/languageService/kustoLanguageService.d.ts +0 -143
  50. package/release/min/languageService/kustoMonarchLanguageDefinition.d.ts +0 -1
  51. package/release/min/languageService/renderInfo.d.ts +0 -31
  52. package/release/min/languageService/schema.d.ts +0 -144
  53. package/release/min/languageService/settings.d.ts +0 -30
  54. package/release/min/monaco.contribution.d.ts +0 -15
  55. package/release/min/monaco.d.ts +0 -1
  56. package/release/min/workerManager.d.ts +0 -23
package/README.md ADDED
@@ -0,0 +1,757 @@
1
+ # Monaco Kusto
2
+
3
+ Kusto language plugin for the Monaco Editor. It provides the following features when editing CSL, KQL files:
4
+
5
+ - Code completion
6
+ - Syntax highlighting
7
+ - Validation: Syntax errors and linting
8
+ - code folding / outlining
9
+ - Hovers
10
+ - Find definition
11
+ - find all references
12
+ - rename symbol
13
+
14
+ ## Usage
15
+
16
+ `npm install @kusto/monaco-editor` or `yarn add @kusto/monaco-editor`
17
+
18
+ ### Package content
19
+
20
+ - `/esm` Contains esm version of the library
21
+ - `/dev` Contains an AMD version of the library
22
+ - `/min` Contains a minified AMD version of the library
23
+
24
+ ### AMD module system:
25
+
26
+ Example at ![https://github.com/Azure/monaco-kusto/tree/master/samples/amd]()
27
+
28
+ 1. Run `npm run copyMonacoFilesAMD <path>` or `yarn copyMonacoFilesAMD <path>` where <path> is where you want the monaco and kusto amd modules to be. These files will need to be served as-in.
29
+ 2. Using a amd module loader, import `vs/language/kusto/monaco.contribution`
30
+ 1. The monaco editors included loader can be made available via a global require `require` by adding the script tag: `<script src="<path>/vs/loader.js"></script>`
31
+ 3. You should now be able to create monaco editors with `language: 'kusto'`. The kusto worker can be reached via the monaco global: `monaco.languages.kusto.getKustoWorker()`
32
+
33
+ ### ESM
34
+
35
+ Parcel example at ![https://github.com/Azure/monaco-kusto/tree/master/samples/parcel]()
36
+
37
+ 1. Configure your bundler so `@kusto/monaco-kusto/release/esm/kusto.worker` has it's own entry point
38
+ 2. Configure monaco with that entry point and to use `globalAPI` using the `MonacoEnvironment`. This global needs to be set _before_ the monaco editor source is parsed so it will create a global api for this package to use.
39
+ 1. And example of steps 1 & 2 can be seen here: [./samples/parcel/index.html](). This was added to the html file to prevent parcel from including the monaco javascript above it
40
+ 3. You should now be able to create monaco editors with `language: 'kusto'`. The kusto worker can be reached via the monaco global: `monaco.languages.kusto.getKustoWorker()`
41
+
42
+ ### Setting a schema
43
+
44
+ There are 2 APIs to set a Kusto schema:
45
+
46
+ 1. `setSchema` - the passed schema is of type `ClusterType` (defined in `schema.ts`).
47
+ The database in ROOT.database will be the one in context.
48
+ 2. `setSchemaFromShowSchema` - a method to set a schema from the result of the Kusto query `.show schema as json`.
49
+ The result is a list of databases (see interface `Result` in `schema.ts`), so when this method is used,
50
+ it also requires a cluster URI and the name of the database in context.
51
+
52
+ ## Contributing
53
+
54
+ ### Setting up a dev environment
55
+
56
+ 1. Install Node.js 16 from https://nodejs.org/
57
+ 2. Install Yarn from https://yarnpkg.com/
58
+ 3. Clone repo and run `yarn` in repo root
59
+ 4. Run `yarn watch` from /package and a live-server will automatically open the index.html
60
+
61
+ ### Build for release
62
+
63
+ 1. Set CI environment variable to "tru"
64
+ 2. Run `yarn build`
65
+
66
+ ## Changelog
67
+
68
+ ### 6.0.0
69
+
70
+ - Improved quality of AMD build artifacts
71
+ - BREAKING CHANGE: AMD build artifacts now include a new "main" file that
72
+ contains shared code
73
+ - BREAKING CHANGE: ESM build artifacts no longer vender dependencies in a
74
+ "deps" folder. node_modules imports are left as-is, and are now in
75
+ package.json#dependencies
76
+
77
+ ### 4.1.8
78
+
79
+ - fix: trigger suggestion when previous suggestion selected.
80
+
81
+ ### 4.1.6
82
+
83
+ - fix: low color contrast for foreground/background in suggestWidget for dark theme
84
+
85
+ ### 4.1.3
86
+
87
+ - fix: low color contrast for foreground/background in suggestWidget
88
+
89
+ ### 4.0.6
90
+
91
+ - fix: `setSchemaFromShowSchema` now supports for external tables.
92
+
93
+ ### 4.0.3
94
+
95
+ - fix: update language service to latest version. fixes issues with scan operator being shown first in completion list.
96
+
97
+ ### 4.0.2
98
+
99
+ - fix: don't do kusto specific highlighting when other language is selected.
100
+
101
+ ### 4.0.0
102
+
103
+ - BREAKING CHANGE: update monaco-editor-core and monaco-editor version to 0.24.0
104
+ - Usage for ESM modules: add `globalAPI: true` in window.MonacoEnvironment declaration to have `monaco` on the window
105
+
106
+ ### 3.3.12
107
+
108
+ - fix: external table erroneously shown for materialized views
109
+
110
+ ### 3.2.11
111
+
112
+ - feat: update language service
113
+
114
+ ### 3.2.10
115
+
116
+ - feat: expose custom syntax error message options
117
+
118
+ ### 3.2.9
119
+
120
+ - feat: update language service to support python code strings
121
+
122
+ ### 3.2.8
123
+
124
+ - fix: `RenderOptions` type missing `null` property union variants
125
+
126
+ ### 3.2.7
127
+
128
+ - fix: errors are shown twice on hover
129
+
130
+ ### 3.2.6
131
+
132
+ - update language service.
133
+
134
+ ### 3.2.5
135
+
136
+ - Expose formatting options
137
+
138
+ ### 3.2.4
139
+
140
+ - Bug fix: `union *` is auto-formatted into `union*`
141
+
142
+ ### 3.2.3
143
+
144
+ - Bug fix: Intellisense doesn't show columns when using this syntax `materialized_view("<table name>") | where `
145
+
146
+ ### 3.2.2
147
+
148
+ - Bug Fix: In `mv-expand kind=array` kind is shown with a squiggly error line
149
+ - Update @kusto/language-service-next
150
+
151
+ ### 3.2.1
152
+
153
+ - Colorize public query options.
154
+ - Bug Fix: Format query hangs in some use cases.
155
+
156
+ ### 3.2.0
157
+
158
+ - A function validation fails (shows squiggly red lines), if the function is defined with a parameter that has a default value, but it is used without passing a value for that parameter.
159
+ - Fix bug: Scalars function parameters are always showing "Table expected" error with squiggly error red line when using setSchemaFromShowSchema.
160
+
161
+ ### 3.1.0-beta.3
162
+
163
+ - Missing tokens are no longer added when formatting queries.
164
+
165
+ ### 3.0.1
166
+
167
+ - Fix exception "Cannot read property 'getText' of null TypeError: Cannot read property 'getText' of null at e.parseDocumentV2"
168
+ - Added a sample react project
169
+
170
+ ### 3.0.0
171
+
172
+ - Upgrade to latest monaco (which includes many changes amongst them accessibility improvements)
173
+
174
+ ### 2.1.15
175
+
176
+ - Fix typo in 2.1.14.
177
+
178
+ ### 2.1.14
179
+
180
+ - Add a theme with a darker background color.
181
+
182
+ ### 2.1.13
183
+
184
+ - Fix error "Database has no tables".
185
+
186
+ ### 2.1.12
187
+
188
+ - Allow formatting commands in cursor location.
189
+
190
+ ### 2.1.11
191
+
192
+ - Upgrade to latest bridge.net which fixes an exception from indexOf.
193
+
194
+ ### 2.1.10
195
+
196
+ - Schema with no functions was throwing "Cannot read property 'map' of undefined".
197
+
198
+ ### 2.1.9
199
+
200
+ - Add DocString to onHover tooltip
201
+
202
+ ### 2.1.6
203
+
204
+ - Update language service.
205
+
206
+ ### 2.1.5
207
+
208
+ - Updated render kind typing to include map.
209
+
210
+ ### 2.1.4
211
+
212
+ #### Added
213
+
214
+ - Added `enableHover` option to languages settingss.
215
+
216
+ ### 2.1.3
217
+
218
+ #### Added
219
+
220
+ - Added `onDidProvideCompletionItems` to languages settings as callback function for doComplete operations.
221
+
222
+ ### 2.1.2
223
+
224
+ #### Bug fix
225
+
226
+ - Fix `getCommandsInDocumentV2` not to take new lines as command.
227
+
228
+ ### 2.1.1
229
+
230
+ #### Bug fix
231
+
232
+ - Fix `doRangeFormat` to work with all kind of user text selection.
233
+
234
+ ### 2.1.0
235
+
236
+ #### Added
237
+
238
+ - Added esm release bundles.
239
+ - Added package.json scripts to replace gulp completely.
240
+
241
+ ### 2.0.9
242
+
243
+ #### Bug fix
244
+
245
+ - Fix `getRenderInfo` in cases where there is not with clause.
246
+
247
+ ### 2.0.8
248
+
249
+ #### Bug fix
250
+
251
+ - Some more type fixes.
252
+
253
+ ### 2.0.7
254
+
255
+ #### Bug fix
256
+
257
+ - Fixed typings.
258
+
259
+ ### 2.0.6
260
+
261
+ #### Added
262
+
263
+ - Added `getRenderInfo` that returns the render command visualization options in a query.
264
+
265
+ ### 2.0.5
266
+
267
+ #### Added
268
+
269
+ - Added `setParameters` that set parameters to the schema without providing the entire schema.
270
+
271
+ ### 2.0.4
272
+
273
+ #### Added
274
+
275
+ - Added `getReferencedGlobalParams` that returns the global (ambient) parameters that are actually being referenced in the query.
276
+
277
+ ### 2.0.3
278
+
279
+ #### Bug fix
280
+
281
+ - Control command completion bug fix (updating intellisense library)
282
+
283
+ ### 2.0.2
284
+
285
+ #### Bug fix
286
+
287
+ - null pointer exception fix.
288
+
289
+ ### 2.0.1
290
+
291
+ #### Bug fix
292
+
293
+ - actually made the change described in 2.0.0
294
+
295
+ ### 2.0.0 (11/20/2019)
296
+
297
+ #### Added
298
+
299
+ - **[Breaking]** Change default to use intellisense V2
300
+
301
+ ### 1.1.19 (11/18/2019)
302
+
303
+ #### Bug fix
304
+
305
+ - fix exception in CM & DM clusters when intellisenseV2 is on
306
+
307
+ ### 1.1.18 (11/18/2019)
308
+
309
+ #### Added
310
+
311
+ - Abiltiy to get global parameters in scope (getGlobalParams)).
312
+
313
+ ### 1.1.17 (11/14/2019)
314
+
315
+ #### Added
316
+
317
+ - Ability to injet global parameters to intellisense (in setSchema)
318
+
319
+ ### 1.1.16 (10/28/2019)
320
+
321
+ #### Added
322
+
323
+ - Updated language service
324
+ - Fix corrupt monaco.d.ts
325
+
326
+ ### 1.1.15 (10/25/2019)
327
+
328
+ #### Added
329
+
330
+ - Introduce a new function in language service called `getQueryParams`. it will return an array of all delcared query parameters for the query on cursor.
331
+
332
+ ### 1.1.14 (9/16/2019)
333
+
334
+ #### Bug fix
335
+
336
+ - Fix 1.1.13 to return ranges based on 1 (as monaco expects) rather than 0 (as kusto language server returns).
337
+
338
+ ### 1.1.13 (9/14/2019)
339
+
340
+ #### Added
341
+
342
+ - Introduce a new function in language service called `getCommandAndLocationInContext`.
343
+ it will return both the text and the range of the command in context.
344
+
345
+ ### 1.0.12 (9/4/2019)
346
+
347
+ #### Added
348
+
349
+ - Update language service to latest version.
350
+
351
+ ### 1.0.11 (8/22/2019)
352
+
353
+ #### Bug fix
354
+
355
+ - Fix IE compatibility issue (remove new URL usage)
356
+
357
+ ### 1.0.10 (7/1/2019)
358
+
359
+ #### Bug fix
360
+
361
+ - Fix broken dependency on language service.
362
+
363
+ ### 1.0.9 (7/1/2019)
364
+
365
+ #### Bug fix
366
+
367
+ - don't suggest chart types that we do not support yet.
368
+
369
+ ### 1.0.8 (7/1/2019)
370
+
371
+ #### Bug fix
372
+
373
+ - don't kill web worker after 2 minutes of inactivity by default. Reason: In exterme cases where schema is very large, trying to stringify the schema in web worker causes an OOM. This is configurable though.
374
+
375
+ ### 1.0.6 (6/6/2019)
376
+
377
+ #### Bug fix
378
+
379
+ - Fix broken Diagnostics
380
+
381
+ ### 1.0.5 (6/5/2019)
382
+
383
+ #### Bug fix
384
+
385
+ - Fix vulnerability in dependency
386
+
387
+ ### 1.0.4 (5/31/2019)
388
+
389
+ #### Added
390
+
391
+ - Support for adding and removing line comments with keyboard shortcut.
392
+ - Support hover
393
+
394
+ ### 1.0.3 (5/31/2019)
395
+
396
+ #### Added
397
+
398
+ - Support for go-to definition, find all refrences, rename symbol.
399
+
400
+ ### 1.0.0 (1/31/2019)
401
+
402
+ #### Bug fix
403
+
404
+ - **[Breaking]** put minified versions of language serivce in npm package.
405
+ - **[How to migrate]**:
406
+ include the .min (minified files) rather than the unminified files (which are no longer available)
407
+ ```xml
408
+ <script src="%PUBLIC_URL%/monaco-editor/min/vs/language/kusto/bridge.min.js"></script>
409
+ <script src="%PUBLIC_URL%/monaco-editor/min/vs/language/kusto/kusto.javascript.client.min.js"></script>
410
+ <script src="%PUBLIC_URL%/monaco-editor/min/vs/language/kusto/newtonsoft.json.min.js"></script>
411
+ <script src="%PUBLIC_URL%/monaco-editor/min/vs/language/kusto/Kusto.Language.Bridge.min.js"></script>
412
+ ```
413
+
414
+ ### 0.2.2 (12/28/2018)
415
+
416
+ #### Bug fix
417
+
418
+ - Increase contrast of operators in syntax highlighting.
419
+
420
+ ### 0.2.2-alpha2 (12/21/2018)
421
+
422
+ #### Added
423
+
424
+ - Updated dependency @kusto/language-service-next.
425
+
426
+ ### 0.2.2-alpha (12/21/2018)
427
+
428
+ #### Added
429
+
430
+ - Updated dependency on @kusto/language-service.
431
+
432
+ ### 0.2.0 (12/14/2018)
433
+
434
+ #### Added
435
+
436
+ - **[Breaking]** Support monaco-editor v15. This removes supprot for pre 15 versions.
437
+
438
+ ### 0.1.27 (11/14/2018)
439
+
440
+ #### Added
441
+
442
+ - Abiltiy to suppress completion items from intellisense.
443
+
444
+ ### 0.1.26 (10/31/2018)
445
+
446
+ #### Added
447
+
448
+ - Dark theme support (set by calling monaco.editor.setTheme('kusto.dark'))
449
+
450
+ ### 0.1.25 (10/09/2018)
451
+
452
+ #### Bug fix
453
+
454
+ - Don't try to run logic on disposed models.
455
+
456
+ ### 0.1.22 (9/27/2018)
457
+
458
+ #### Bug fix
459
+
460
+ - Format current command always formatted the 1st command.
461
+
462
+ ### 0.1.21 (9/23/2018)
463
+
464
+ #### Added
465
+
466
+ - Removed completion options that arent' curerntly supported.
467
+
468
+ ### 0.1.19
469
+
470
+ #### Bug fix
471
+
472
+ - Colorization didn't work when asked to colorize entire document
473
+
474
+ ### 0.1.18
475
+
476
+ #### Added
477
+
478
+ - Updated language server dependnecy to latest version.
479
+
480
+ ### 0.1.16
481
+
482
+ #### Bug Fix
483
+
484
+ - improve V2 intellisense colorization performance.
485
+
486
+ ### 0.1.15
487
+
488
+ #### Bug Fix
489
+
490
+ - V2 intellisense now correctly reverts to V1 for control commands.
491
+
492
+ ### 0.1.14
493
+
494
+ #### Bug Fix
495
+
496
+ - Add decimal support to V2 instllisense .
497
+
498
+ ### 0.1.13
499
+
500
+ #### Bug Fix
501
+
502
+ - Fix v2 intellisense.
503
+
504
+ ### 0.1.12
505
+
506
+ #### Bug Fix
507
+
508
+ - fix quirks in interactions between non-semantic and semantic colorization by not using semantic coloring to color plain text.
509
+
510
+ ### 0.1.11
511
+
512
+ #### Bug Fix
513
+
514
+ - Fixed an issue where colorization is working on an older vesion of the document, which results in wrong colorization.
515
+
516
+ ### 0.1.6
517
+
518
+ ### Bug Fixes
519
+
520
+ - Intellisense didn't work properly when editing in the middle of a block that is not the 1st block on the page.
521
+ - Monarch colorization now colorizes sub-opeators the same as semantic colorization (which makes the changes less jarring when completing semantic colorization).
522
+ - When switching context, colorization didn't recolorize.
523
+ - (perf) Only colorize the currently edited block(s) - this supports multi-cursor editing
524
+ - (perf) don't deeply parse the entire doc when doing completion. just get the list of commands and then parse the relevant command's all tokns.
525
+
526
+ ### 0.1.1
527
+
528
+ ### Added
529
+
530
+ - removed semantic colorization from main thread. From now on basic colorization (schema-unaware) will happen on main thread, and semantic colorization will happen in background thread. This should improve typing performance
531
+ on long rows, or on large databases.
532
+
533
+ ### 0.1.0
534
+
535
+ #### Added
536
+
537
+ - Support for DM intellisense
538
+
539
+ ### 0.96
540
+
541
+ #### Bug Fixes
542
+
543
+ - fix incorrect column types
544
+
545
+ ### 0.95
546
+
547
+ #### Bug Fixes
548
+
549
+ - upgrade to latest kusto.javascript.client (based on a newer version of bridge.net and the code itself)
550
+
551
+ ### 0.94
552
+
553
+ #### Bug Fixes
554
+
555
+ - upgrade to latest Kusto.Language.Bridge (based on a newer version of bridge.net and the code itself)
556
+
557
+ ### 0.93
558
+
559
+ #### Bug Fixes
560
+
561
+ - improve performance for function parsing by levaraging new functionality in Kusto.Language.Bridge.
562
+
563
+ ### 0.91
564
+
565
+ #### Bug Fixes
566
+
567
+ - Update langauge service dependencies to versions with unified bridge.net version and bridge.json settings.
568
+
569
+ ### 0.90
570
+
571
+ #### Bug Fixes
572
+
573
+ - **[breaking]** Cache clutsser schema in memory. This breaks backward compatibility since it now requries schema to include minor and major version of databases.
574
+
575
+ ### 0.89
576
+
577
+ #### Bug Fixes
578
+
579
+ - Upgrade version of Kusto.Language.Bridge so solve some issues.
580
+
581
+ ### 0.88
582
+
583
+ #### Functionality
584
+
585
+ - enable get current command logic to V2.
586
+
587
+ ### 0.86
588
+
589
+ #### Bug Fixes
590
+
591
+ - Fix ability to set schema using .show schema as json.
592
+
593
+ ### 0.85
594
+
595
+ #### Bug Fixes
596
+
597
+ - fix bug that caused diagnostics and colorizaiton to be wrong until first text was typed.
598
+
599
+ ### 0.76
600
+
601
+ #### Bug Fixes
602
+
603
+ - fix bug that rendered validation unusable
604
+
605
+ ### 0.74
606
+
607
+ #### Functionality
608
+
609
+ - Add colorization support to intellisense API v2
610
+
611
+ ### 0.73
612
+
613
+ #### Functionality
614
+
615
+ - Add functions support to intellisense API V2
616
+
617
+ ### 0.72
618
+
619
+ #### Functionality
620
+
621
+ - update version of @kusto/language-service-next to 0.0.10, integrated following functionality:
622
+
623
+ 1. library orders items on its own, so no need to order in monaco-kusto
624
+ 2. add support for the cursor not ending in the end of the completion text (like in the 1st parmaeter7 of a function for example)
625
+ 3. add '|' after table name
626
+
627
+ - Make sure to never parse the same text more than once.
628
+
629
+ ### 0.71
630
+
631
+ #### Functionality
632
+
633
+ - add diagnostics (a.k.a error message) support (when v2 parser enabled).
634
+
635
+ ### 0.70
636
+
637
+ #### Functionality
638
+
639
+ - add folding (a.k.a outlining) support. one can now fold commands and hide them from screen.
640
+
641
+ ### 0.69
642
+
643
+ #### Functionality
644
+
645
+ - **[breaking]** - introduce new intellisense library (off by default).
646
+ requires adding the following line to code
647
+
648
+ ```html
649
+ <script src="../node_modules/kusto-language-service/kusto.javascript.client.js"></script>
650
+ ```
651
+
652
+ ### 0.68
653
+
654
+ #### Bug Fixes
655
+
656
+ - **[breaking]** - Update monaco-editor peer dependency to "^0.12.0" because of bug fixes performed there. Also making the
657
+ dependency more permissive (allow later minor versions).
658
+
659
+ ### 0.67
660
+
661
+ #### Bug Fixes
662
+
663
+ - Add missing dependency bridge newtonsoft.json.js to npm package.
664
+
665
+ ### 0.65
666
+
667
+ #### Functionality
668
+
669
+ - updated @kusto/lagnuage-service to latest version. this contains the latest operators, documentation, and charting logic.
670
+
671
+ ### 0.64
672
+
673
+ #### Bug Fixes
674
+
675
+ - Added peer dependency for `monaco-editor@0.11` so that consumers of the package get a warning if their version of monaco is too old.
676
+
677
+ ### 0.63
678
+
679
+ #### Functionality
680
+
681
+ - **[breaking]** - The package now requires `monaco-editor@0.11.1` to function correctly. adds support for markdown in intellisense documentation.
682
+
683
+ ### 0.62
684
+
685
+ #### Functionality
686
+
687
+ - Added `setSchemaFromShowSchema`: a new method to set a schema from the result of .show schema as json exewcution
688
+
689
+ ### 0.61
690
+
691
+ #### Functionality
692
+
693
+ - **[breaking]**: make setSchema async so that big schemas do not block the ui thread (specifically - tokenization code is running in ui thread so it can block rendering).
694
+
695
+ ### 0.60
696
+
697
+ #### Bug fixes
698
+
699
+ - fixed label casing of `editor.action.kusto.formatCurrentCommand` command.
700
+
701
+ ### 0.59
702
+
703
+ #### Functionality
704
+
705
+ - add `getAdminCommand` method to `KustoWorker`, which returns an object with a boolean property signifying whether
706
+ the text is an admin command, and a string property that contains the command without leading comments.
707
+
708
+ ### 0.58
709
+
710
+ #### Bug fixes
711
+
712
+ - null pointer exception when creating and destroying multiple monaco models
713
+
714
+ ### 0.57
715
+
716
+ #### Functionality
717
+
718
+ - add `getClientDirective` method to `KustoWorker`, which returns an object with a boolean property signifying whether
719
+ the text is a client directive, and a string property that contains the directive without leading comments.
720
+
721
+ ### 0.54
722
+
723
+ #### Bug fixes
724
+
725
+ - fix getCurrentCommand bug when there are multiple commands in document
726
+
727
+ ### 0.53
728
+
729
+ #### Bug fixes
730
+
731
+ - fix intellisense issue when trying to get suggestions for a new query (2 newlines after previous query)
732
+
733
+ ### 0.52
734
+
735
+ #### Bug fixes
736
+
737
+ - command formatting and document formatting now work (ctrl K + ctrl F and alt+shift+F respectively)
738
+
739
+ ### 0.49
740
+
741
+ #### Bug fixes
742
+
743
+ - setSchema does not update syntax highlighting
744
+
745
+ # Contributing
746
+
747
+ This project welcomes contributions and suggestions. Most contributions require you to agree to a
748
+ Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
749
+ the rights to use your contribution. For details, visit https://cla.microsoft.com.
750
+
751
+ When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
752
+ a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
753
+ provided by the bot. You will only need to do this once across all repos using our CLA.
754
+
755
+ This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
756
+ For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
757
+ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.