The CodeChat Client¶
One major goal of the CodeChat System is to provide as much functionality outside the IDE/editor host as possible. The CodeChat Client therefore uses JavaScript as a platform-neutral method of doing most of the work of displaying the rendered results and enabling the user to interact with those results. Specifically, the client:
Provides panes to display rendered output, errors, and build status.
Parses warnings/errors and provide (currently useless) links to them.
Provides a simple build status progress bar.
Sync notes¶
Use the _jsPreviewSync
in preview_sync.py
for some of the JavaScript code. Currently, window_onClick
returns the index of the beginning of the selection. It would be nice to also return the index of the end of the selection. In addition, it should return the value produced by calling selectionAnchorCoords
. Finally, this function should call the Thrift sync_to
function with this data.
Contents¶
- CodeChat_client.html - The web page containing the CodeChat Client
- insecure.html - A warning when running in insecure mode
- CodeChat_client.js - Core code for the CodeChat Client
- CodeChat_client.css - Style sheet for the CodeChat Client
- ReconnectingWebsocket.js - a Websocket with an automatic reconnect