jonnyboyC / kos-language-server

A language server for the Kerboscript (kOS) a language for Kerbal Space Program
MIT License
27 stars 6 forks source link

[Feature] Create Completion Service #122

Open jonnyboyC opened 4 years ago

jonnyboyC commented 4 years ago

Is your feature request related to a problem? Please describe. Currently the auto completion functionality is somewhat of a message and scattered about the codebase. This is essentially true in the serverUtils.ts where KLS which in all other cases is the root object is actually passed as a parameter.

Describe the solution you'd like Create a new completionService that encapsulates all the current completion functionality and allows more strategies to be incorporated. This is especially the case with ksconfig.json, directives and path completions.