sapling/addons
Evan Krause f0b1ae214e Fix syntax highlighting not working in non-dev browser platforms
Summary:
Syntax highlighting was working in the browser if you ran in dev mode. It also worked in vscode in production.

However, apparently I wasn't thorough in testing this for production browser ISL instances.

We have an asset manifest which controls which files we server in our server. This is better for security. However, in our dev mode server, we don't use this file serving, and instead files are served (and hot reload from) CRA's dev server, which means this asset checking is not done.

In production, we don't use the CRA dev server, so the requests fail the asset manifest check.

We need to be able to load the generated files for syntax highlighting. It's not enough to merely be in the public/ folder.

To do this, we can simply insert these files into our asset manifest object when setting up the server.

This fix will also apply to other places where we use the server code, including Android Studio, browser, chromelike app, and webview.

Reviewed By: quark-zju

Differential Revision: D49756350

fbshipit-source-id: 9b70f65e6741593de83025229d958c0288289711
2023-09-29 15:00:16 -07:00
..
.tours Add code tours 2023-02-06 10:02:35 -08:00
.vscode vscode: add vscode config to debug isl tests 2023-04-21 15:51:13 -07:00
eslint-rules Re-sync with internal repository 2022-11-15 00:48:09 -08:00
isl Fix comparison view dropdown z-index 2023-09-29 13:10:26 -07:00
isl-server Fix syntax highlighting not working in non-dev browser platforms 2023-09-29 15:00:16 -07:00
isl-standalone Standalone Tauri app 2023-03-16 11:34:35 -07:00
reviewstack ensure non-ASCII UTF-8 values are decoded correctly in Git blobs 2023-08-30 16:26:06 -07:00
reviewstack.dev reviewstack: include the screencast on the home page 2022-12-20 12:36:37 -08:00
shared Add partition util 2023-09-27 13:30:34 -07:00
textmate add c++ as C++ grammar alias 2023-09-22 13:15:04 -07:00
vscode VS Code extension version 0.1.27 2023-09-22 13:21:25 -07:00
.eslintrc.js Make unused variables a warning in eslint 2023-09-22 13:21:25 -07:00
.gitignore build-tar: script to build ISL to a tarball 2023-09-23 10:47:58 -07:00
.prettierignore script to bundle textmate grammars 2023-08-18 15:05:35 -07:00
.prettierrc Re-sync with internal repository 2022-11-15 00:48:09 -08:00
build-tar.py build-tar: script to build ISL to a tarball 2023-09-23 10:47:58 -07:00
LICENSE Re-sync with internal repository 2022-11-15 00:48:09 -08:00
package.json Update prettier to v2.8.8 2023-06-06 20:06:25 -07:00
removeInternalFiles.sh Script to remove internal files 2023-02-06 15:13:28 -08:00
verify-addons-folder.py Re-sync with internal repository 2022-11-15 00:48:09 -08:00
yarn.lock Change AI genereate commit message button icon 2023-09-08 12:58:21 -07:00