- codemirror6: https://github.com/codemirror/CodeMirror
- python language server (pyls - palantir): https://github.com/palantir/python-language-server
- jsonrpc to server pyls over websocket for interactive codemirror linting: https://github.com/palantir/python-jsonrpc-server
- updated state management so that both ls and editorView state
- created this sample react application as special thanks to the inspiration of the following authors (https://hjr265.me/blog/codemirror-lsp/, https://github.com/sachinraja/rodemirror) and not to forget the origin of codemirror: https://github.com/codemirror/codemirror.next
user@computer:~/$ git clone <GITHUB_URL>
user@computer:~/codemirror-react-test$ docker-compose up -d --build
- Custom python files to be added in ./pyls_jsonrpc/custom_module/ to be served by palantir python language server
- an example hello.py is added with 3 functions
- As shown on image, may click on button to test effect of state and editor. (idea is for editor_state to always be the 'truth' and code to overwrite and recreate codemirror view)