@theia/monaco 1.53.0-next.55 → 1.53.0-next.64

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 (77) hide show
  1. package/README.md +100 -100
  2. package/data/monaco-nls.json +1379 -1379
  3. package/data/monaco-themes/vscode/dark_plus.json +201 -201
  4. package/data/monaco-themes/vscode/dark_theia.json +5 -5
  5. package/data/monaco-themes/vscode/dark_vs.json +393 -393
  6. package/data/monaco-themes/vscode/hc_black.json +457 -457
  7. package/data/monaco-themes/vscode/hc_light.json +590 -590
  8. package/data/monaco-themes/vscode/hc_theia.json +5 -5
  9. package/data/monaco-themes/vscode/hc_theia_light.json +5 -5
  10. package/data/monaco-themes/vscode/light_plus.json +202 -202
  11. package/data/monaco-themes/vscode/light_theia.json +10 -10
  12. package/data/monaco-themes/vscode/light_vs.json +421 -421
  13. package/lib/browser/monaco-editor-zone-widget.js +1 -1
  14. package/lib/browser/monaco-frontend-application-contribution.js +25 -25
  15. package/lib/browser/simple-monaco-editor.d.ts +3 -1
  16. package/lib/browser/simple-monaco-editor.d.ts.map +1 -1
  17. package/lib/browser/simple-monaco-editor.js +9 -2
  18. package/lib/browser/simple-monaco-editor.js.map +1 -1
  19. package/package.json +8 -8
  20. package/src/browser/index.ts +17 -17
  21. package/src/browser/markdown-renderer/monaco-markdown-renderer.ts +109 -109
  22. package/src/browser/monaco-bulk-edit-service.ts +64 -64
  23. package/src/browser/monaco-color-registry.ts +73 -73
  24. package/src/browser/monaco-command-registry.ts +85 -85
  25. package/src/browser/monaco-command-service.ts +90 -90
  26. package/src/browser/monaco-command.ts +303 -303
  27. package/src/browser/monaco-context-key-service.ts +144 -144
  28. package/src/browser/monaco-context-menu.ts +112 -112
  29. package/src/browser/monaco-diff-editor.ts +141 -141
  30. package/src/browser/monaco-diff-navigator-factory.ts +39 -39
  31. package/src/browser/monaco-editor-model.ts +693 -693
  32. package/src/browser/monaco-editor-peek-view-widget.ts +233 -233
  33. package/src/browser/monaco-editor-provider.ts +455 -455
  34. package/src/browser/monaco-editor-service.ts +152 -152
  35. package/src/browser/monaco-editor-zone-widget.ts +250 -250
  36. package/src/browser/monaco-editor.ts +733 -733
  37. package/src/browser/monaco-formatting-conflicts.ts +116 -116
  38. package/src/browser/monaco-frontend-application-contribution.ts +182 -182
  39. package/src/browser/monaco-frontend-module.ts +319 -319
  40. package/src/browser/monaco-gotoline-quick-access.ts +47 -47
  41. package/src/browser/monaco-gotosymbol-quick-access.ts +53 -53
  42. package/src/browser/monaco-icon-registry.ts +49 -49
  43. package/src/browser/monaco-indexed-db.ts +130 -130
  44. package/src/browser/monaco-init.ts +134 -134
  45. package/src/browser/monaco-keybinding.ts +111 -111
  46. package/src/browser/monaco-keycode-map.ts +171 -171
  47. package/src/browser/monaco-languages.ts +177 -177
  48. package/src/browser/monaco-marker-collection.ts +83 -83
  49. package/src/browser/monaco-menu.ts +147 -147
  50. package/src/browser/monaco-mime-service.ts +71 -71
  51. package/src/browser/monaco-outline-contribution.ts +404 -404
  52. package/src/browser/monaco-outline-decorator.ts +66 -66
  53. package/src/browser/monaco-quick-access-registry.ts +112 -112
  54. package/src/browser/monaco-quick-input-service.ts +701 -701
  55. package/src/browser/monaco-resolved-keybinding.ts +162 -162
  56. package/src/browser/monaco-snippet-suggest-provider.ts +306 -306
  57. package/src/browser/monaco-standalone-theme-service.ts +51 -51
  58. package/src/browser/monaco-status-bar-contribution.ts +110 -110
  59. package/src/browser/monaco-text-model-service.ts +157 -157
  60. package/src/browser/monaco-theming-service.ts +204 -204
  61. package/src/browser/monaco-to-protocol-converter.ts +82 -82
  62. package/src/browser/monaco-undo-redo-handler.ts +64 -64
  63. package/src/browser/monaco-workspace.ts +416 -416
  64. package/src/browser/protocol-to-monaco-converter.ts +158 -158
  65. package/src/browser/simple-monaco-editor.ts +228 -216
  66. package/src/browser/style/index.css +266 -266
  67. package/src/browser/textmate/index.ts +20 -20
  68. package/src/browser/textmate/monaco-textmate-frontend-bindings.ts +90 -90
  69. package/src/browser/textmate/monaco-textmate-service.ts +187 -187
  70. package/src/browser/textmate/monaco-theme-registry.ts +176 -176
  71. package/src/browser/textmate/monaco-theme-types.ts +37 -37
  72. package/src/browser/textmate/textmate-contribution.ts +29 -29
  73. package/src/browser/textmate/textmate-registry.ts +129 -129
  74. package/src/browser/textmate/textmate-snippet-completion-provider.ts +73 -73
  75. package/src/browser/textmate/textmate-tokenizer.ts +84 -84
  76. package/src/browser/workspace-symbol-command.ts +196 -196
  77. package/src/package.spec.ts +28 -28
package/README.md CHANGED
@@ -1,100 +1,100 @@
1
- <div align='center'>
2
-
3
- <br />
4
-
5
- <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
-
7
- <h2>ECLIPSE THEIA - MONACO EXTENSION</h2>
8
-
9
- <hr />
10
-
11
- </div>
12
-
13
- ## Description
14
-
15
- The `@theia/monaco` extension contributes the integration of the [monaco-editor](https://microsoft.github.io/monaco-editor/index.html).\
16
- This includes:
17
- - full-feature code editor
18
- - diff-editor
19
- - code snippets
20
- - textmate grammars (theme registry, service)
21
-
22
- ## Monaco Uplifts
23
-
24
- This package is intended to be the interface between the `@theia/monaco-editor-core` package, the project's bundling of the `monaco-editor-core` package published by the VSCode
25
- team, and the rest of the application. When we uplift to a new version of `monaco-editor-core`, this package will need to be checked particularly thoroughly. To facilitate that
26
- process, the steps for undertaking a Monaco uplift are outlined here.
27
-
28
- ### Setting up the VSCode side
29
-
30
- 1. Clone the VSCode repo and make sure you have the following remotes:
31
- - https://github.com/microsoft/vscode.git - the official VSCode repo.
32
- - https://github.com/theia-ide/vscode.git - Theia's fork.
33
- 2. Find the latest release tag in the official VSCode repo, and the most recent uplift branch in the Theia fork.
34
- > At the time of this writing the latest release tag is `1.67.2`, and the uplift branch is `monaco-uplift-2022-6`
35
- 3. Check out the release tag, cherry pick the tip of the uplift branch, and resolve any conflicts.
36
- > As you resolve conflicts and make changes to the VSCode repo, make sure you end up with a single commit on the uplift branch to make it easier for the next person to rebase.
37
- 4. Try to build. At the moment, this means running `yarn` and `yarn run gulp editor-distro`.
38
- 5. Fix any build errors that arise.
39
- 6. Change the version in `build/monaco/package.json`
40
-
41
- #### Current State
42
-
43
- - build/gulpfile.editor.js: various changes to modify the treeshaking and output destinations.
44
- - build/lib/standalone.js/ts: changes to output sourcemaps etc. One small change to fix a build error due to having a directory named `model` and a file named `model.ts` in the same folder.
45
- - src/vs/base/browser/dompurify/dompurify.js changes for CommonJS rather than ESM
46
- - src/vs/base/common/marked/marked.js changes for CommonJS rather than ESM
47
-
48
- ### Setting up the Theia side
49
-
50
- For initial testing, it's easier to point dependencies to your local VSCode.
51
-
52
- 1. Having built `monaco-editor-core` using the steps [above](#setting-up-the-vscode-side).
53
- 2. Find all references to `@theia/monaco-editor-core` in `package.json`s and replace their version with `"link:<path to your local build of monaco-editor-core>"`.
54
- > Using `link:` means that if you subsequently make changes on the VSCode side, you only need to rebuild VSCode and then rebuild Theia to see the effects.
55
- 3. Delete your `node_modules` and `yarn` and build Theia.
56
- 4. Fix any build errors.
57
- 5. Uncomment the `bindMonacoPreferenceExtractor` function in `examples/api-samples/src/browser/monaco-editor-preferences/monaco-editor-preference-extractor.ts` and run the commands there. Fix the `EditorGeneratedPreferenceSchema` as necessary, and add or remove validations from the `MonacoFrontendApplicationContribution` as appropriate.
58
- 6. Look for comments that indicate forced types or other code smells that would prevent a build error from being thrown where it should be thrown and check that the assertion still applies.
59
- > If you add these, mark them with @monaco-uplift - that'll make them easier to find in the future. Better: if you can remove them, do! Typically, the cause is mixing imports from
60
- private API and public API. Often public API fails to satisfy private declarations.
61
- 7. Test the application thoroughly - make sure everything's still working.
62
- > It may also be necessary to update our various `vscode` dependencies to match the current state of VSCode. It may not be necessary to upgrade all (or any) of these to successfully adopt a new Monaco version, but if something is misbehaving inexplicably, checking dependencies is a reasonable place to start. Check on:
63
- > - `vscode-debugprotocol`
64
- > - `vscode-languageserver-protocol`
65
- > - `vscode-oniguruma`
66
- > - `vscode-proxy-agent`
67
- > - `vscode-ripgrep`
68
- > - `vscode-textmate`
69
- > - `vscode-uri`
70
-
71
- ### Publishing for testing
72
-
73
- Once you believe that everything is in working order, you'll need to publish the new `@theia/monaco-editor-core` for testing. The instructions for doing so are
74
- [here](https://github.com/theia-ide/vscode/wiki/Publish-%60@theia-monaco-editor-core%60). Once the package is published, point your `package.json`s at the testing version and make
75
- sure everything still works, then make a PR.
76
-
77
-
78
- ## Additional Information
79
-
80
- - [API documentation for `@theia/monaco`](https://eclipse-theia.github.io/theia/docs/next/modules/monaco.html)
81
- - [Theia - GitHub](https://github.com/eclipse-theia/theia)
82
- - [Theia - Website](https://theia-ide.org/)
83
-
84
- ## License
85
-
86
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
87
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
88
-
89
- ## Trademark
90
- "Theia" is a trademark of the Eclipse Foundation
91
- https://www.eclipse.org/theia
92
-
93
-
94
- # Theia - Monaco Extension
95
-
96
- See [here](https://www.theia-ide.org/doc/index.html) for a detailed documentation.
97
-
98
- ## License
99
- - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
100
- - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
1
+ <div align='center'>
2
+
3
+ <br />
4
+
5
+ <img src='https://raw.githubusercontent.com/eclipse-theia/theia/master/logo/theia.svg?sanitize=true' alt='theia-ext-logo' width='100px' />
6
+
7
+ <h2>ECLIPSE THEIA - MONACO EXTENSION</h2>
8
+
9
+ <hr />
10
+
11
+ </div>
12
+
13
+ ## Description
14
+
15
+ The `@theia/monaco` extension contributes the integration of the [monaco-editor](https://microsoft.github.io/monaco-editor/index.html).\
16
+ This includes:
17
+ - full-feature code editor
18
+ - diff-editor
19
+ - code snippets
20
+ - textmate grammars (theme registry, service)
21
+
22
+ ## Monaco Uplifts
23
+
24
+ This package is intended to be the interface between the `@theia/monaco-editor-core` package, the project's bundling of the `monaco-editor-core` package published by the VSCode
25
+ team, and the rest of the application. When we uplift to a new version of `monaco-editor-core`, this package will need to be checked particularly thoroughly. To facilitate that
26
+ process, the steps for undertaking a Monaco uplift are outlined here.
27
+
28
+ ### Setting up the VSCode side
29
+
30
+ 1. Clone the VSCode repo and make sure you have the following remotes:
31
+ - https://github.com/microsoft/vscode.git - the official VSCode repo.
32
+ - https://github.com/theia-ide/vscode.git - Theia's fork.
33
+ 2. Find the latest release tag in the official VSCode repo, and the most recent uplift branch in the Theia fork.
34
+ > At the time of this writing the latest release tag is `1.67.2`, and the uplift branch is `monaco-uplift-2022-6`
35
+ 3. Check out the release tag, cherry pick the tip of the uplift branch, and resolve any conflicts.
36
+ > As you resolve conflicts and make changes to the VSCode repo, make sure you end up with a single commit on the uplift branch to make it easier for the next person to rebase.
37
+ 4. Try to build. At the moment, this means running `yarn` and `yarn run gulp editor-distro`.
38
+ 5. Fix any build errors that arise.
39
+ 6. Change the version in `build/monaco/package.json`
40
+
41
+ #### Current State
42
+
43
+ - build/gulpfile.editor.js: various changes to modify the treeshaking and output destinations.
44
+ - build/lib/standalone.js/ts: changes to output sourcemaps etc. One small change to fix a build error due to having a directory named `model` and a file named `model.ts` in the same folder.
45
+ - src/vs/base/browser/dompurify/dompurify.js changes for CommonJS rather than ESM
46
+ - src/vs/base/common/marked/marked.js changes for CommonJS rather than ESM
47
+
48
+ ### Setting up the Theia side
49
+
50
+ For initial testing, it's easier to point dependencies to your local VSCode.
51
+
52
+ 1. Having built `monaco-editor-core` using the steps [above](#setting-up-the-vscode-side).
53
+ 2. Find all references to `@theia/monaco-editor-core` in `package.json`s and replace their version with `"link:<path to your local build of monaco-editor-core>"`.
54
+ > Using `link:` means that if you subsequently make changes on the VSCode side, you only need to rebuild VSCode and then rebuild Theia to see the effects.
55
+ 3. Delete your `node_modules` and `yarn` and build Theia.
56
+ 4. Fix any build errors.
57
+ 5. Uncomment the `bindMonacoPreferenceExtractor` function in `examples/api-samples/src/browser/monaco-editor-preferences/monaco-editor-preference-extractor.ts` and run the commands there. Fix the `EditorGeneratedPreferenceSchema` as necessary, and add or remove validations from the `MonacoFrontendApplicationContribution` as appropriate.
58
+ 6. Look for comments that indicate forced types or other code smells that would prevent a build error from being thrown where it should be thrown and check that the assertion still applies.
59
+ > If you add these, mark them with @monaco-uplift - that'll make them easier to find in the future. Better: if you can remove them, do! Typically, the cause is mixing imports from
60
+ private API and public API. Often public API fails to satisfy private declarations.
61
+ 7. Test the application thoroughly - make sure everything's still working.
62
+ > It may also be necessary to update our various `vscode` dependencies to match the current state of VSCode. It may not be necessary to upgrade all (or any) of these to successfully adopt a new Monaco version, but if something is misbehaving inexplicably, checking dependencies is a reasonable place to start. Check on:
63
+ > - `vscode-debugprotocol`
64
+ > - `vscode-languageserver-protocol`
65
+ > - `vscode-oniguruma`
66
+ > - `vscode-proxy-agent`
67
+ > - `vscode-ripgrep`
68
+ > - `vscode-textmate`
69
+ > - `vscode-uri`
70
+
71
+ ### Publishing for testing
72
+
73
+ Once you believe that everything is in working order, you'll need to publish the new `@theia/monaco-editor-core` for testing. The instructions for doing so are
74
+ [here](https://github.com/theia-ide/vscode/wiki/Publish-%60@theia-monaco-editor-core%60). Once the package is published, point your `package.json`s at the testing version and make
75
+ sure everything still works, then make a PR.
76
+
77
+
78
+ ## Additional Information
79
+
80
+ - [API documentation for `@theia/monaco`](https://eclipse-theia.github.io/theia/docs/next/modules/monaco.html)
81
+ - [Theia - GitHub](https://github.com/eclipse-theia/theia)
82
+ - [Theia - Website](https://theia-ide.org/)
83
+
84
+ ## License
85
+
86
+ - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
87
+ - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)
88
+
89
+ ## Trademark
90
+ "Theia" is a trademark of the Eclipse Foundation
91
+ https://www.eclipse.org/theia
92
+
93
+
94
+ # Theia - Monaco Extension
95
+
96
+ See [here](https://www.theia-ide.org/doc/index.html) for a detailed documentation.
97
+
98
+ ## License
99
+ - [Eclipse Public License 2.0](http://www.eclipse.org/legal/epl-2.0/)
100
+ - [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](https://projects.eclipse.org/license/secondary-gpl-2.0-cp)