Skip to content

Tooling Language Server

Liu.Yandong.Hanks edited this page Aug 21, 2026 · 3 revisions

Language Server

Add diagnostics, completion, navigation, formatting, and semantic highlighting to LSP clients.

Applies to 4.0.0.

Home · Tooling

On this page

Starting the Server

The project currently ships the language server as part of the Visual Studio extension. For custom integration, run the built executable as a stdio server and do not write non-LSP log text to its standard output.

dotnet run --project language-tools/AuroraScript.LanguageServer/AuroraScript.LanguageServer.csproj

Workspace Behavior

The server indexes open files and workspace .as files. @global(); declaration files supply diagnostics, completion, and navigation for host globals; they are not importable modules.

@global();

declare func HOST_ADD(left, right);
declare const HOST_NAME;

Available Capabilities

  • Diagnostics: open an invalid .as file and let the client show diagnostics.
  • Completion: request completion after Array..
  • Hover: hover Path.join for its signature and description.
  • Definition: go to definition from an import name or function call.
  • Formatting: invoke the client's Format Document command.

Related pages: Language Guide, Script API, and Visual Studio extension.

Next steps

Clone this wiki locally