Open justarandomgeek opened 3 weeks ago
VSCode does not have native language-inject functionality, implementing these is very difficult.
I have observed the implementation here, and there is indeed feasibility. However, it requires intercepting LSP requests and forwarding them to other language processors. The language server needs to determine which language server to forward the completion request to, which may significantly slow down the completion performance of LuaLS. Otherwise, the only option is to judge through the VSCode frontend, but the parsers available on npm are generally poor and do not support analysis of ---@language."
In a few places in factorio's API we have a lua string that contains code (sometimes more lua code, sometimes our noise-expression language), and it woudl be nice to be able to activate language features for these via embedded language tags, something like