akvelon / flutter-code-editor

Flutter Code Editor is a multi-platform code editor supporting syntax highlighting, code blocks folding, autocompletion, read-only code blocks, hiding specific code blocks, themes, and more.
https://akvelon.com
Apache License 2.0
197 stars 47 forks source link

Compatibility with LSP #240

Open 5hirish opened 1 year ago

5hirish commented 1 year ago

Hi, thanks a bunch for your contributions towards building this amazing package! I am curious to understand its compatibility with Language Server Protocol for dart-sdk. I am currently using the editor in my open-source Flutter IDE with LSP protocol (as opposed to Dart Pad Analyser) to implement various code assist, refactoring, lens, hover, definition, diagnostic, highlighting, folding features.

LSP protocol involves bunch of JRPC calls to these respective methods with text document uri and range. And in response it returns the folding range, hover markdown, code range, completion text.