@kusto/monaco-kusto 12.0.21 → 13.0.1

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 (27) hide show
  1. package/README.md +18 -4
  2. package/package.json +8 -6
  3. package/release/dev/Kusto.Language.Bridge.min.js +202 -203
  4. package/release/dev/kustoMode.js +2 -2
  5. package/release/dev/kustoWorker.js +2 -2
  6. package/release/dev/{main-0178d28d.js → main-04597f81.js} +2 -2
  7. package/release/dev/monaco.contribution.js +79 -25
  8. package/release/dev/{schema-74b7f1a0.js → schema-9c3b6c78.js} +2 -2
  9. package/release/dev/{types-9685532e.js → types-ffd2d452.js} +2 -2
  10. package/release/esm/editorExtensions/KustoIntelliSenseCloser.d.ts +17 -0
  11. package/release/esm/editorExtensions/KustoIntelliSenseCloser.js +42 -0
  12. package/release/esm/{commandHighlighter.js → editorExtensions/commandHighlighter.js} +1 -1
  13. package/release/esm/{globals-b5f7046e.js → globals-a0d2077f.js} +1 -1
  14. package/release/esm/kusto.worker.js +2 -2
  15. package/release/esm/kustoMode.js +2 -2
  16. package/release/esm/monaco.contribution.js +42 -4
  17. package/release/esm/{schema-586ea18b.js → schema-4f17a725.js} +1 -1
  18. package/release/min/Kusto.Language.Bridge.min.js +202 -203
  19. package/release/min/kustoMode.js +2 -2
  20. package/release/min/kustoWorker.js +2 -2
  21. package/release/min/{main-5e2beb2d.js → main-c88e79ea.js} +2 -2
  22. package/release/min/monaco.contribution.js +2 -2
  23. package/release/min/{schema-30aae781.js → schema-7f7acd36.js} +2 -2
  24. package/release/min/{types-b665dd42.js → types-edb6ea80.js} +2 -2
  25. /package/release/esm/{commandFormatter.d.ts → editorExtensions/commandFormatter.d.ts} +0 -0
  26. /package/release/esm/{commandFormatter.js → editorExtensions/commandFormatter.js} +0 -0
  27. /package/release/esm/{commandHighlighter.d.ts → editorExtensions/commandHighlighter.d.ts} +0 -0
package/README.md CHANGED
@@ -32,7 +32,6 @@ Example at [/samples/amd](https://github.com/Azure/monaco-kusto/tree/master/samp
32
32
  be made available via a global
33
33
  require `require` by adding the script tag: `<script src="<path>/vs/loader.js"></script>`
34
34
  3. You should now be able to create monaco editors with `language: 'kusto'`. The
35
- kusto worker can be reached via the monaco global:
36
35
  `monaco.languages.kusto.getKustoWorker()`
37
36
  4. If using typeScript, add "@kusto/monaco-kusto/globalApi" to compilerOptions.types in tsconfig.json`
38
37
 
@@ -79,12 +78,27 @@ Every PR should come with a test that checks it.
79
78
 
80
79
  ## Running integration tests
81
80
 
82
- - Run `yarn test:integration:install` from the root of the project
83
- - Run `yarn test:integration` from the package folder to run the tests in headless mode
84
- - Run `yarn test:integration:watch` from the package folder to run the tests in a browser and rebuild after each change
81
+ - From the project root, run `yarn test:install` to install test dependencies.
82
+ - In the package folder:
83
+ - Run `yarn test:it` to execute tests in headless mode.
84
+ - Run `yarn test:it:ui` to open the tests in a browser and rebuild automatically after each change.
85
+ - Run `yarn test:it:serve` to start the test server and rebuild automatically after each change.
86
+ - Run `yarn test:it:watch` to run tests in the terminal and automatically re-run them when test files change.
87
+
88
+ > **Best practice:**
89
+ > Before running `yarn test:it` or `yarn test:it:watch`, first run `yarn test:it:serve`.
90
+ > These scripts (`test:it` and `test:it:watch`) do **not** automatically rebuild the project, so running the server ensures your latest code is tested.
85
91
 
86
92
  ## Changelog
87
93
 
94
+ ## 13.0.1
95
+
96
+ - feat: Close IntelliSense automatically when running a query with `Shift+Enter`.
97
+
98
+ ## 13.0.0
99
+
100
+ - breaking change: upgrade monaco-editor version to 0.52.0
101
+
88
102
  ## 12.0.21
89
103
 
90
104
  - fix: support multiline bracketed strings in semantic tokenization (improves syntax highlighting).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusto/monaco-kusto",
3
- "version": "12.0.21",
3
+ "version": "13.0.1",
4
4
  "description": "CSL, KQL plugin for the Monaco Editor",
5
5
  "author": {
6
6
  "name": "Microsoft"
@@ -24,8 +24,10 @@
24
24
  "clean": "rimraf ./release",
25
25
  "start": "ts-node ./scripts/dev.ts",
26
26
  "test": "jest",
27
- "test:integration": "playwright test -c tests/integration/playwright.config.ts",
28
- "test:integration:watch": "ts-node ./scripts/test.ts"
27
+ "test:it": "playwright test -c tests/integration/playwright.config.ts",
28
+ "test:it:ui": "ts-node ./scripts/test-ui.ts",
29
+ "test:it:serve": "concurrently \"yarn rollup -c ./scripts/rollup.esm.js -w --bundleConfigAsCjs\" \"yarn vite tests/integration serve --config tests/integration/vite.config.ts\"",
30
+ "test:it:watch": "PWTEST_WATCH=1 playwright test -c tests/integration/playwright.config.ts"
29
31
  },
30
32
  "types": "./release/esm/monaco.contribution.d.ts",
31
33
  "module": "./release/esm/monaco.contribution.js",
@@ -62,7 +64,7 @@
62
64
  "concurrently": "^8.2.1",
63
65
  "http-server": "^14.1.1",
64
66
  "jest": "^29.7.0",
65
- "monaco-editor": "^0.49.0",
67
+ "monaco-editor": "^0.52.0",
66
68
  "rimraf": "^5.0.1",
67
69
  "rollup": "^3.29.2",
68
70
  "terser": "^5.19.4",
@@ -75,12 +77,12 @@
75
77
  },
76
78
  "dependencies": {
77
79
  "@kusto/language-service": "0.0.283",
78
- "@kusto/language-service-next": "11.7.6",
80
+ "@kusto/language-service-next": "12.0.0",
79
81
  "lodash-es": "^4.17.21",
80
82
  "vscode-languageserver-types": "^3.17.4",
81
83
  "xregexp": "^5.1.1"
82
84
  },
83
85
  "peerDependencies": {
84
- "monaco-editor": "0.49.0"
86
+ "monaco-editor": "^0.52.0"
85
87
  }
86
88
  }