Extension Details

- D Lang Additions
- by Maple Street Games
- 1 Recent Installs | 1 Total Installs
- D language support: Tree-sitter syntax highlighting, symbols, folding, completions, serve-d language server, and dub tasks.
- Bug Reports
-
Read Files
-
Launch Subprocesses
-
This extension is allowed to:
Readme
D Lang Additions adds support for the D programming language to Nova.
Features
- Syntax highlighting powered by Tree-sitter, covering modern D: templates and constraints, UDAs (
@safe,@nogc, …), interpolated strings (i"…$(x)"), token strings (q{…}), raw/hex strings,static if/version/debugconditions,__traits, ddoc comments, and more. Deprecated constructs (likecentor numericversionlevels) are flagged. - Symbols in the sidebar and jump bar for modules, classes, structs, unions, interfaces, enums, templates, aliases, constructors, methods, fields, constants, and unittests.
- Folding for functions, types, and blocks.
- Completions for keywords, built-in types, common snippets (
foreach,static if,unittest,scope(exit), …),@attributes,__traits(…), and predefinedversion(…)identifiers. - Language server support via serve-d: context-aware completions, diagnostics (D-Scanner lints), hover documentation, go to definition, find references, and formatting with dfmt.
- Dub tasks: build, run, test, and clean from Nova's toolbar. Compiler errors, warnings, deprecations, and failed
asserts show up in the Issues sidebar and inline in the editor.
Requirements
Highlighting, symbols, folding, and completions work out of the box.
For language server features, install serve-d:
brew install ldc dtools # dtools provides rdmd, which the serve-d build needs
dub fetch serve-d
dub run serve-d --build=release -- --version # builds it into ~/.dub/packages
serve-d uses DCD for completions and offers to download it into ~/.code-d/bin. On Apple Silicon that download is an old Intel build that crashes on startup, so install the osx-aarch64 build from DCD's releases page instead: put dcd-server and dcd-client in ~/.code-d/bin or anywhere on your PATH.
The extension finds serve-d automatically on your PATH, in ~/.dub, in Homebrew's prefix, or in VS Code's code-d install directory. You can also set a path explicitly in Extensions → Extension Library → D Lang Additions → Settings.
For dub tasks, install a compiler and dub, e.g. brew install ldc dub.
Usage
Dub tasks
- Choose Project → Project Settings…, then click + under Tasks and pick Dub.
- Set the compiler, build type, and (optionally) configuration, package directory, and program arguments.
- Use Build (⌘B), Run (⌘R), and Clean from the toolbar. Set Run Action to
dub testto make Run execute your unittests.
Commands
- Extensions → D Lang Additions → Restart serve-d restarts the language server, e.g. after changing
dub.jsondependencies.
Settings
| Setting | Description |
|---|---|
| Enable serve-d | Turn the language server on or off. |
| serve-d Path | Explicit path to the serve-d executable. Empty means automatic. |
| Extra Arguments | Additional arguments passed to serve-d. |
Credits
The parser is tree-sitter-d by Garrett D'Amore, used under the MIT License (see Syntaxes/tree-sitter-d-LICENSE.txt). To rebuild it, run Tools/build-parser.sh.
License
MIT. See LICENSE.
Release Notes
Version 1.0
Initial release.
- Tree-sitter syntax highlighting for D (
.d,.di, andrdmd/dubshebang scripts), built from tree-sitter-d 0.8.2 - Symbols sidebar: modules, classes, structs, unions, interfaces, enums and members, templates, aliases, constructors, methods, functions, fields, constants, and unittests
- Code folding for functions, aggregates, enums, templates, and blocks
- Completions for keywords, built-in types, snippets,
@attributes,__traits, andversionidentifiers - serve-d language server integration (completions, diagnostics, hover, go to definition, formatting)
- Dub task template with compiler errors, warnings, deprecations, and failed asserts reported as issues
- D code blocks highlighted inside Markdown (
```d)
License
MIT License
Copyright (c) 2026 Maple Street Games
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.