Setting up ALS (Ada Language Server) for Sublime Text

Installing the Ada Language Server

First you want to download the Ada Language Server. Where you can get here and download for which operating system you have.

Now you need to add it to your PATH. For Windows I just made a folder called “als” and put ada_language_server.exe inside and used that.

Once you have that you can set it up with LSP.

Installing LSP

  • Go to ToolsCommand Palette or Ctrl+Shift+P.
  • Search for Package Control: Install Package.
  • Select it and search LSP.

Configuring LSP for Ada

  • To start you want to go to PreferencesPackage SettingsLSPSettings.
  • Then once inside add this to the file on the right hand side
{
  "clients": {
    "ada": {
      "enabled": true,
      "command": ["path/to/ada_language_server.exe"],
      "selector": "source.ada",
      "languageId": "ada"
    }
  }
}

You may want to restart Sublime Text if it’s not working.

Syntax Highlighting

To get syntax you want to install another package named Ada like we did with LSP. Going into the command palette and installing the package.

All Done!

Once you have all that you should be getting error squiggles in the editor and getting suggestions. If you have any questions or anything just message below.
Happy Coding! :smiley:

11 Likes

I used to be a heavy user of sublime text before I switched to vscode for better ada support. I’m very happy to see this and will try it out!

1 Like