-
-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PREVIEW] a new lua language server #3017
Comments
Can I export the document now? |
Exporting documentation is actually not the job of the language server, but I also agree that there is no good tool for exporting documentation that supports luacats well. The documentation export function of luals itself is not very effective and not highly usable. I might consider adding a standalone CLI for documentation export in the future, but not now. |
The release was too rushed yesterday, and I didn't provide a detailed description of the features. However, I plan to describe its features once I am almost done (in about ten days). |
|
Regarding the purpose of exporting documents, I feel that I can use the JSON documents exported from the document to convert the Lua library files annotated with Luacats into library files in various Lua dialects in batches, so that we can quickly share various Lua ecological components in various Lua dialects. |
If it's just for this purpose, all you need is a parser and simple analysis to achieve your goal, and I have already provided such a parser. |
What kind of form is it? Can I get the results of my analysis? |
a rust lib, I described this library in a previous issue, and it supports both strongly-typed APIs and simple APIs. Additionally, they can be converted freely between each other. |
The current language server and plugin have been released. If you're interested, you can give them a try. My next step is to plan the design of export documentation. |
Ok。thanks |
can it run in wasm for mocano? |
I'm unsure if WASM supports asynchronous operations, and my codebase is fully asynchronous. Additionally, the file system poses another issue—I don't know how to load the workspace in the WebIDE. Perhaps a dedicated crate needs to be written to support the WASM runtime. On another note, since the language server itself supports TCP connections, that might be a viable solution. |
This language server has excellent performance and rich features, and it’s compatible with most of luals’ features. If you’re interested, feel free to give it a try.
language server: https://github.com/CppCXY/emmylua-analyzer-rust
vscode plugin: https://marketplace.visualstudio.com/items?itemName=tangzx.emmylua
The text was updated successfully, but these errors were encountered: