Skip to content

033 Find usages for task names#48

Merged
nam-hle merged 3 commits intomainfrom
feature/33-find-usages-task-names
Feb 23, 2026
Merged

033 Find usages for task names#48
nam-hle merged 3 commits intomainfrom
feature/33-find-usages-task-names

Conversation

@nam-hle
Copy link
Copy Markdown
Member

@nam-hle nam-hle commented Feb 22, 2026

Summary

  • Upgrade @nadle/language-server to v0.0.3 with textDocument/references support
  • Remove custom NadleTaskGotoDeclarationHandler — the LSP now handles go-to-definition natively
  • Remove custom PSI bridge (NadleTaskReferenceContributor, NadleTaskFindUsagesHandlerFactory) — the LSP handles Find Usages natively on 2025.1+
  • Bump minimum IntelliJ version from 2024.2 to 2025.1

Background

IntelliJ 2024.2's LSP integration doesn't properly route Find Usages through textDocument/references (cancels the request). A PSI bridge workaround was initially built, but testing on 2025.1.3 confirmed the LSP handles it natively. Decision: bump minimum version and keep the codebase simple.

Closes #33

Test plan

  • Right-click a task name in tasks.register("build") → Find Usages → shows all dependsOn: ["build"] references
  • Cmd+Click on a task name in dependsOn → navigates to tasks.register() definition (via LSP)
  • Works across multiple config files in a monorepo
  • Results shown in standard Find Usages tool window with file/line grouping

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 22, 2026

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.2.3
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

nam-hle and others added 2 commits February 22, 2026 23:18
…tionHandler

- Update @nadle/language-server to nightly build with textDocument/references support
- Remove NadleTaskGotoDeclarationHandler (LSP now handles go-to-definition and find usages)
- Remove gotoDeclarationHandler registration from plugin.xml

Closes #33

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…2025.1

Remove custom PSI bridge (ReferenceContributor, FindUsagesHandlerFactory)
in favor of the LSP's built-in textDocument/references support, which
works reliably on IntelliJ 2025.1+. Bump pluginSinceBuild to 251 and
platformVersion to 2025.1.3.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nam-hle nam-hle force-pushed the feature/33-find-usages-task-names branch from 8858e45 to 4d40127 Compare February 22, 2026 16:19
Replace WeightedSearchEverywhereContributor with SearchEverywhereContributor
to resolve AsyncProcessor class removal in IntelliJ 2025.2+.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nam-hle nam-hle merged commit b5df630 into main Feb 23, 2026
6 checks passed
@nam-hle nam-hle deleted the feature/33-find-usages-task-names branch February 24, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Find Usages for task names

1 participant