imc-trading / svlangserver

MIT License
95 stars 13 forks source link

Extend keywords and snippets completion #6

Closed henry-hsieh closed 2 years ago

henry-hsieh commented 2 years ago

Currently, the system tasks ($) and compiler directives (`) are plaintext completion (InsertTextFormat). The completion for keywords is not provided. I extend system tasks and compiler directives to snippets completion and add full keywords as plaintext completion. I didn't add configurations to switch between plaintext and snippet completion for system tasks and compiler directives. It's may useful if LSP is slowed down by numerous completion candidates.

kkanhere commented 2 years ago

Thanks! I will take a look soon and get back to you.