You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good day
I'm learning how to write an lsp by actually writing one in nelua for nelua and I've come across a major issue.
The issue is getting ast information:
Currently I am passing everything to the cli with a strange workaround so as to avoid loosing the context of the current file.
To do this, I am creating a temporary file on every request which is quite slow especially when all I'm doing is typing where the temporary file is created in the same location as the file being worked on
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good day
I'm learning how to write an lsp by actually writing one in nelua for nelua and I've come across a major issue.
The issue is getting ast information:
Currently I am passing everything to the cli with a strange workaround so as to avoid loosing the context of the current file.
To do this, I am creating a temporary file on every request which is quite slow especially when all I'm doing is typing where the temporary file is created in the same location as the file being worked on
then calling:
Is there a better way to pass the current files content to be parsed then receive ast?
I read here that you recommend that it's better to write the lsp in lua, is that still the case?
Beta Was this translation helpful? Give feedback.
All reactions