CodeEditApp / CodeEditSourceEditor

A code editor view written in Swift powered by tree-sitter.
https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor
MIT License
517 stars 84 forks source link

✨ Code Completion #29

Open lukepistrol opened 2 years ago

lukepistrol commented 2 years ago

As the user types, offer suggestions to complete their code.

Note: In order to offer code completion, a language server protocol (LSP) implementation is needed (see #40).

Resources

Screenshot

image
CreatorMetaSky commented 1 year ago

if implement the LSPClient use Swift to call Rust version LSP server protocol, Is it acceptable?

lukepistrol commented 1 year ago

@CreatorMetaSky as far as I know https://github.com/ChimeHQ/LanguageClient already offers a way to interact with the LSP servers natively. I haven't looked into it in detail yet though. Since we already use some of the great packages ChimeHQ provides this is probably the way to go.

CreatorMetaSky commented 1 year ago

@lukepistrol ok, If time permits, I will try to make a pull request using https://github.com/ChimeHQ/LanguageClient