[Test] Add debug names to unnamed test disposables
- This helps to track down disposables which are never disposed, and reduces confusion when printing disposables in general (the names will now be meaningful, instead of endless lists of "newDisposable" and "TestDisposable"). ^KT-64099
This commit is contained in:
committed by
Space Team
parent
bba5447b12
commit
32fe29b8cc
@@ -97,7 +97,7 @@ abstract class CLICompiler<A : CommonCompilerArguments> : CLITool<A>() {
|
||||
val canceledStatus = services[CompilationCanceledStatus::class.java]
|
||||
ProgressIndicatorAndCompilationCanceledStatus.setCompilationCanceledStatus(canceledStatus)
|
||||
|
||||
val rootDisposable = Disposer.newDisposable()
|
||||
val rootDisposable = Disposer.newDisposable("Disposable for ${CLICompiler::class.simpleName}.execImpl")
|
||||
try {
|
||||
setIdeaIoUseFallback()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user