You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use a popular Code Editor JS library - It should support LSP + Linting + File Formatting We also need to figure out how to package this LSP into our jar file and start it along side with Geoweaver.
As of now, we are good if we can implement this for python using pyright (https://github.com/microsoft/pyright). We can target bash-lsp later once we are done with python.
Implement LSP (language server protocol) for Python in either existing codebase either with CodeMirror v6 or we can try this out by replacing existing code either with a popular code editor such as Monaco (https://github.com/microsoft/monaco-editor).
Setup linting and formatting for the code editor and make common shortcuts like commenting, refactoring and extract to function features to work using the existing or the new code editor
Package the code editor along side the JAR file (this will probably increase the JAR file size by 50mb)
Run the LSP server along side Geoweaver Web Server. (LSP should start when the spring boot webserver starts. It would be amazing if we can only start it when the user is making code changes but having it running when Geoweaver is running is also fine)
What is the PR about?
Use a popular Code Editor JS library - It should support LSP + Linting + File Formatting We also need to figure out how to package this LSP into our jar file and start it along side with Geoweaver.
As of now, we are good if we can implement this for python using pyright (https://github.com/microsoft/pyright). We can target bash-lsp later once we are done with python.
There is a existing demo of pyright with lsp which you can test here @ https://pyright-play.net/
What needs to be done?
Important Links
Moncao Github Repo - https://github.com/microsoft/monaco-editor
Pyright LSP Github Repo - https://github.com/microsoft/pyright
Pyright Documentation - https://microsoft.github.io/pyright/#/
Expected Outcome
To have a clean, usable & modern code editor with resonable autocompletiton to write production code.
The text was updated successfully, but these errors were encountered: