Files
openide/plugins/toml
Nikolay Chashnikov 2d050772a0 [json] extract explicit main module from plugin.xml for JSON plugin (IJPL-176240)
This is needed to enable automatic layout and to allow merging two JSON plugins to a single one. Also, this is needed to allow adding dependency on JSON from the unified YAML plugin.

'intellij.json' is registered as an embedded content module, so it uses the main plugin classloader, and now has a dependency on 'intellij.json.split' module. This ensures that classes from both modules are available to content modules from other plugins which declare dependency on JSON plugin as before.

After this change, build scripts don't put intellij.toml.json to a separate JAR anymore, and an explicit adjustment is needed in the Wiremock plugin's layout to avoid creating an unnecessary separate JAR.

GitOrigin-RevId: be77513b7f0c1e397b4f6dda7524aa6978fa2a90
2025-02-07 14:23:09 +00:00
..
2024-12-30 11:28:24 +00:00
2025-01-31 08:55:04 +00:00
2024-12-30 11:28:24 +00:00
2024-12-30 11:28:24 +00:00

TOML language support for IntelliJ IDEA based IDEs

download version

The plugin provides nothing but syntax highlighting at the moment.

Installation

To install plugin open Settings > Plugins > Browse repositories, and search for TOML.

Contributing

See Contributing in the IntelliJ-Rust plugin.

Extending

It's possible to extend TOML support from other plugins:

  • The PSI structure is expected remain backwards compatible.
  • TomlKey and TomlValue are ContributedReferenceHosts, so it's possible to inject references into them from third-party plugins, and provide completion and goto definition.

See https://github.com/intellij-rust/intellij-rust/pull/1982/ for an example.