tag | 263e107b46b43579ae851d45fa313b29272df67c | |
---|---|---|
tagger | Luca Milanesio <luca.milanesio@gmail.com> | Fri Nov 24 14:35:04 2023 +0000 |
object | 3af12c5a5e65861830b42bd07933e275c33b9159 |
v3.7.6
commit | 3af12c5a5e65861830b42bd07933e275c33b9159 | [log] [tgz] |
---|---|---|
author | Paladox none <thomasmulhall410@yahoo.com> | Thu Mar 24 12:27:40 2022 +0000 |
committer | Paladox none <thomasmulhall410@yahoo.com> | Thu Jun 30 21:04:09 2022 +0000 |
tree | e43d0c5962c191f7944a1dec2c4d60bc23d206f7 | |
parent | c5bda5b6b5fe91a2f7cd40c5a917dd2280b04814 [diff] |
Improve setting height of editor Side affect is if you have the developer console open the editor will be much smaller. But this is worth the trade off. Screenshot: https://imgur.com/a/OIwISAp Change-Id: I07d923ee5038db7e0b03dddb7ccd74b019c3bf64
A plugin that uses CodeMirror to provide a rich code editing experience in PolyGerrit.
This plugin is rewritten into Polymer 3 syntax. The gr-editor.js
is the main entry for the plugin.
But to support the lazy load on the codemirror
with supported languages, we still have the codemirror-element.html
as an asset which still built separately as an html.
We may consider drop the selectively language support and in favor of all-in-one bundle in the future or change build rule to support bundle css
in js
to move off of the html completely.
To run UI tests here will need install dependencies from both npm and bower.
npm run wct-test
should take care both for you, read more in package.json
.
You will need polymer-bridges
which is a submodule you can clone from: https://gerrit-review.googlesource.com/admin/repos/polymer-bridges
As polymer 3 no longer support Polymer.importHref
anymore, this plugin still supports it through a custom implementation in gr-editor.js
.
bazel build :codemirror_editor
gerrit/plugins/codemirror-editor/
folder and it will automatically served at http://localhost:8081/plugins_/codemirror-editor/
If your plugin is already enabled, then you can block it and then inject the compiled local verison.
See more about how to use dev helper extension to help you test here: https://gerrit.googlesource.com/gerrit-fe-dev-helper/+/master