PhilippeChab / nwscript-ee-language-server

A NWScript Language Server.
https://marketplace.visualstudio.com/items?itemName=PhilippeChab.nwscript-ee-language-server
MIT License
20 stars 7 forks source link

Saving a file stops completion/hover/goto working for custom functions from an include. #18

Closed Daztek closed 2 years ago

Daztek commented 2 years ago

To reproduce:

1) Create the following two files:

myinclude.nss

// Do a thing
void DoThing(string sThing);

void DoThing(string sThing)
{
    PrintString("Doing: " + sThing);
}

myscript.nss

#include "myinclude"

void main()
{
    DoThing("Thing");
}

2) Make a minor edit to myscript.nss and save it 3) Hover over DoThing() and note the lack of hover info

Restarting VSCode fixes it but I guess that's because it re-indexes everything.

PhilippeChab commented 2 years ago

Sorry, I introduced an error while refactoring the documents indexing mechanic. I'm deploying a new version right now and it will be fixed.