jonnyboyC / kos-language-server

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

[BUG] Dependent Script Update #88

Closed jonnyboyC closed 5 years ago

jonnyboyC commented 5 years ago

Describe the bug The server in it's present state does not properly update / link dependent tables. In addition this behavior may be the cause of #42 and additional causing the language server to do a bunch of extra work.

In the following scenario proper completions are not provided:

exec.ks

   runPath("lib.ks").

   // should provide completion for test
   te 

lib.ks

   // test function written after exec.ks initially written
   function test {
     print("test").
   }

This will likely result in the document validate / symbol table generation being moved to a separate service. Currently the logic is somewhat of a mess in the main kls.ts server file