Problem with todo module

Hello,

I’m currently working on my plugin todo-exporter and I need to use some classes from the TODO toolwindow implementation.

The problem is that classes under:

com.intellij.ide.todo.nodes

cannot be imported by my plugin.

Example imports:

import com.intellij.ide.todo.nodes.BaseToDoNode;
import com.intellij.ide.todo.nodes.SummaryNode;
import com.intellij.ide.todo.nodes.ToDoRootNode;
import com.intellij.ide.todo.nodes.TodoTreeHelper;

I tried adding the TODO module to my plugin descriptor:

<content>
    <module name="intellij.platform.todo"/>
</content>

but the classes are still unresolved and unavailable from the plugin module.

I am using IntelliJ Platform Gradle Plugin SDK version 2.16.0.

My questions are:

  1. Are classes under com.intellij.ide.todo.nodes intentionally not exposed to third-party plugins?

  2. Is there an additional dependency/module that must be declared?

  3. Is there a supported/public API alternative for interacting with the TODO tree structure?

  4. If these APIs are internal-only, what is the recommended approach for plugins that need to reuse TODO tree functionality?

Additional context:

  • Plugin repository: todo-exporter repository

  • Target platform: IntelliJ Platform

  • Gradle IntelliJ Plugin 2.x

  • SDK version: 2.16.0

Thanks.

this fix the problem:

<dependencies>
    <module name="intellij.platform.todo"/>
</dependencies>

This is to declare what your plugin consist of, not dependencies needed