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.

Home Page:https://akvelon.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility with LSP

5hirish opened this issue · comments

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.

  • Can the controller allow me to achieve these functionality?
  • Do I have to implement it has an analyser...for this LSP server? If so why?
  • Which of these textDocument features from LSP server can't be used in conjunction with the code-editor?