DevTools: Use JSX/TSX over standard JS/TS modes
We currently use the mime-type determine into which mode to put CodeMirror. For the most part this is fine, save for JSX/TSX projects where the files are saved with .js/.ts files suffixes. Typically this causes the non-x mime-type to be chosen, which in turn puts CodeMirror into the wrong mode. Since JSX/TSX are supersets of the non-x versions this CL simply pushes the mode over to the respective superset. Bug: 659515 Change-Id: I186d976a6a1ac991a296f92a22c8a0b3e83743c5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1800748 Commit-Queue: Paul Lewis <aerotwist@chromium.org> Reviewed-by:Jeff Fisher <jeffish@microsoft.com> Reviewed-by:
Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/master@{#697180}
Showing
Please register or sign in to comment