Extension Details

- Scala
- by Lachlan O'Dea
- 4 Recent Installs | 34 Total Installs
- Syntax and LSP support for the Scala language.
- Repository
- Bug Reports
-
Read Files
-
Launch Subprocesses
-
This extension is allowed to:
Readme
Scala provides syntax highlighting and LSP support for the Scala programming language. It uses Metals, the LSP server for Scala.
The syntax highlighting is currently very basic.
Requirements
Metals must be installed, which is usually done using the Coursier CLI:
cs install metals
Usage
This extension should start automatically whenever a .scala or .sc file is edited.
Configuration
To configure global preferences, open Extensions → Extension Library... then select Scala's Preferences tab.
You can also configure preferences on a per-project basis in Project → Project Settings...
There are two preferences that can be set:
- The path to the metals executable, which defaults to the standard location used by Coursier
- The path to JDK home, which defaults to the value of the
JDK_HOMEenvironment variable, if it is set
Acknowledgements
The extension uses:
- The Scala tree-sitter grammar
- The tree-sitter queries from the Metals plugin for Zed
Release Notes
Version 0.1
Initial beta release.
- Very basic syntax highlighting.
- LSP via Metals works