From 06795471f0820eb890754cca104583102d1cc016 Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Wed, 18 May 2022 20:38:56 +0200 Subject: [PATCH] Example implementation: Add `TODO()` with a hint to remove stale sample code --- CHANGELOG.md | 1 + .../plugins/template/listeners/MyProjectManagerListener.kt | 2 ++ .../jetbrains/plugins/template/services/MyApplicationService.kt | 2 ++ .../org/jetbrains/plugins/template/services/MyProjectService.kt | 2 ++ 4 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bb7a0d..5a8ceed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Added - Use JVM toolchain for configuring source/target compilation compatibility - Make sure GitHub Actions release jobs have write permissions +- Example implementation: Add `TODO()` with a hint to remove stale sample code ### Changed - Dependencies - upgrade `org.jetbrains.kotlin.jvm` to `1.6.21` diff --git a/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt b/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt index 627a720..4c21e6d 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt @@ -9,5 +9,7 @@ internal class MyProjectManagerListener : ProjectManagerListener { override fun projectOpened(project: Project) { project.service() + + TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") } } diff --git a/src/main/kotlin/org/jetbrains/plugins/template/services/MyApplicationService.kt b/src/main/kotlin/org/jetbrains/plugins/template/services/MyApplicationService.kt index 2997c27..f511a21 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/services/MyApplicationService.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/services/MyApplicationService.kt @@ -6,5 +6,7 @@ class MyApplicationService { init { println(MyBundle.message("applicationService")) + + TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") } } diff --git a/src/main/kotlin/org/jetbrains/plugins/template/services/MyProjectService.kt b/src/main/kotlin/org/jetbrains/plugins/template/services/MyProjectService.kt index df4b01f..b152085 100644 --- a/src/main/kotlin/org/jetbrains/plugins/template/services/MyProjectService.kt +++ b/src/main/kotlin/org/jetbrains/plugins/template/services/MyProjectService.kt @@ -7,5 +7,7 @@ class MyProjectService(project: Project) { init { println(MyBundle.message("projectService", project.name)) + + TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") } }