Luma in Visual Studio Code: highlighting for .luma
files, and from luma lsp, the language server in the luma command itself:
Errors as you type, from the compiler itself: what luma run and
luma build would say, before you run anything. Also in the files you
import.
Hover: a variable's type, a function's header, an obj's fields.
Go to definition, also in imported files.
Completion: after a dot, what the value has; elsewhere, the names you
can use there.
Signature help while you type a call's arguments.
Find all references and rename, in every .luma file of the folder.
Before you start
Install Luma, so that luma help works in
a terminal. The extension runs the luma command it finds on the PATH. If it
isn't there, give the full path in VS Code's settings:
{
"luma.path": "/home/ann/luma/luma"
}
On Windows, for example "C:\\Users\\ann\\luma\\luma.exe".