langs issue
having a e.g. abc.lua file, then doing add_comment("something 1") then having abc2.lua file, then doing add_comment("something 2")
this then makes it so even in abc2.lua, you still see "something 1" even though you should only see "something 2"
The comments are reset when another file extension is opened, so it's weird that this happens https://github.com/face-hh/griddycode/blob/master/Scripts/lua_singleton.gd#L329
It also occurs with variables and functions.
i was seeing "console" and "process" when in a .java file
Currently unreproducible on v1.0.4
Seeing this issue on v1.1.1
Opened my test.js file and then switched to my test.lua file and opened the comments. Variables and functions did reset though, so that part has been fixed at v1.1.1
In my last comment I stated the variables and functions did reset when I switched files. I don't know what changed from then but now they seem to haven't.
(screenshot is in a .py file, those are .lua functions and variables)
We could just re-load everything upon opening a new file regardless of the extension, so if we're working on a lua file and we open a new one everything gets reset and the lua plugin gets reloaded once more, or we could add a different approach, something like vim, where we have buffers and things like highlighting and such are tied to these buffers