You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
silverwind 9249c810b8
Switch code editor to Monaco (#11366)
* Switch code editor to Monaco

This switches out CodeMirror for Monaco which is based on the same code
base as VS code and should work pretty similar to it.

It does add a few async chunks, totalling around 10MB to our build. It
currently supports around 65 languages and in the default configuration,
each language would emit one ugly [number].js chunk, so I opted to
combine them all into a single file for now.

CodeMirror is still being used under the hood by SimpleMDE so it can not
be removed yet.

* inline editorconfig, fix diff, use for markdown, remove more dead code

* refactors, remove jquery usage

* use tab_width

* fix intellisense

* rename function for clarity

* misc tweaks, enable webpack progress display

* only use --progress on dev build

* remove useless borders in arc-green

* fix typo

* remove obsolete comment

* small refactor

* fix file creation and various refactors

* unset useTabStops too when no editorconfig

* small refactor

* disable webpack's [big] warnings

* remove useless await

* fix dark theme check

* rename chunk to 'monaco'

* add to .gitignore and delete webpack dest before build

* increase editor height

* support more editorconfig properties

* remove empty element filter

* rename

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
4 years ago
..
branch Allow unauthenticated users to compare (#11240) 4 years ago
diff Allow compare page to look up base, head, own-fork, forkbase-of-head (#11327) 4 years ago
editor Switch code editor to Monaco (#11366) 4 years ago
issue Ensure search action button coalesced to adjacent input (#11385) 4 years ago
pulls Add missing commit states to PR checks template (#11085) 4 years ago
release Add single release page and latest redirect (#11102) 4 years ago
settings Split some words from template to improve translation. (#11221) 4 years ago
wiki Remove last traces of has-emoji class (#11263) 4 years ago
activity.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
blame.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
branch_dropdown.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
commit_page.tmpl Unfortunately go template if does not shortcut (#11392) 4 years ago
commit_status.tmpl UI: Fix overflow issues in repo (#7190) 5 years ago
commits.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
commits_list.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
commits_table.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
create.tmpl Fix creation of Organization repos by Users with max created personal repos (#11183) 4 years ago
empty.tmpl Option to set default branch at repository creation (#10803) 4 years ago
forks.tmpl #3348 always use relative avatar link in the template 8 years ago
graph.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
header.tmpl Fix forked repo has no icon and language stat. (#10791) 4 years ago
home.tmpl Allow unauthenticated users to compare (#11240) 4 years ago
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 5 years ago
migrating.tmpl [assets] configurable URL for static resources (#7911) 5 years ago
search.tmpl ui: fix status label on branches list vertical alignment (#11109) 4 years ago
sub_menu.tmpl Tweak language stats bar (#10487) 4 years ago
user_cards.tmpl Add Octicon SVG spritemap (#10107) 4 years ago
view_file.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
view_list.tmpl Remove last traces of has-emoji class (#11263) 4 years ago
watchers.tmpl #1692 APIs: Users Followers 9 years ago