Skip to content

Commit

Permalink
Dispose Global Standalone Application Services
Browse files Browse the repository at this point in the history
  • Loading branch information
vmishenev committed Oct 4, 2024
1 parent 1297659 commit 3a3ffbd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public class JavaAnalysisPlugin : DokkaPlugin() {
DocCommentFinder(logger, docCommentFactory)
}

@InternalDokkaApi
public fun disposeGlobalStandaloneApplicationServices() {
@Suppress("UnstableApiUsage")
com.intellij.util.concurrency.AppExecutorUtil.shutdownApplicationScheduledExecutorService()
}

internal val javaDocCommentCreator by extending {
docCommentCreators providing { JavaDocCommentCreator() }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public class SymbolsAnalysisPlugin : DokkaPlugin() {
}

internal val disposeKotlinAnalysisPostAction by extending {
CoreExtensions.postActions with PostAction { querySingle { kotlinAnalysis }.close() }
CoreExtensions.postActions with PostAction {
querySingle { kotlinAnalysis }.close()
javaAnalysisPlugin.disposeGlobalStandaloneApplicationServices()
}
}

internal val symbolToDocumentableTranslator by extending {
Expand Down

0 comments on commit 3a3ffbd

Please sign in to comment.