Lama-LSPLanguage Server for Lama based on vscode lsp-sample and Lama Language Extension. Features
FunctionalityThis Language Server works for Lama language. It has the following language features:
When you place the cursor on a symbol, all of its appearances in the code will also be highlighted.
Using the "Go to Definition" function (F12 by default), the cursor will be moved to the code location where the symbol was defined.
If you use the "Go to References" function (Shift+F12 by default), it will give you a list of places in the code where the given symbol occurs. If you further click on one of the occurences, the cursor will be moved to its location.
When using the "Rename Symbol" function (F2), a pop-up box will appear in which you must enter a new symbol name. When you finish typing and press Enter, all occurrences of the symbol will be replaced by the entered value.
When you move the cursor over a function, a pop-up window will appear with information about the function (name, arguments and comment, if it was left when declaring the function)
Lsp server also supports file diagnostics for various language errors.
The server provides basic completion functionality based on symbols available in the current scope, as well as some fundamental syntax constructions like the "if-else" statement.
The server also supports code formatting (Ctrl+Shift+I by default). Note: This feature is not fully stable, especially when dealing with comments. If the server displays an error such as "Impossible to format with width 125," you can try increasing this parameter in the extension settings. However, this error often indicates an internal bug that caused the server to fail in formatting your file. |