mirror of
https://github.com/chylex/IntelliJ-Inspection-Lens.git
synced 2025-04-29 03:15:50 +02:00
parent
a05a97274b
commit
29cf88cc4b
@ -15,7 +15,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
intellij {
|
intellij {
|
||||||
version.set("2023.1")
|
version.set("233.11555.11-EAP-SNAPSHOT")
|
||||||
updateSinceUntilBuild.set(false)
|
updateSinceUntilBuild.set(false)
|
||||||
|
|
||||||
plugins.add("tanvd.grazi")
|
plugins.add("tanvd.grazi")
|
||||||
@ -30,7 +30,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.patchPluginXml {
|
tasks.patchPluginXml {
|
||||||
sinceBuild.set("231")
|
sinceBuild.set("233.11361.10")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.buildSearchableOptions {
|
tasks.buildSearchableOptions {
|
||||||
|
@ -9,7 +9,7 @@ import com.intellij.openapi.fileEditor.TextEditor
|
|||||||
import com.intellij.openapi.project.ProjectManager
|
import com.intellij.openapi.project.ProjectManager
|
||||||
import com.intellij.openapi.rd.createLifetime
|
import com.intellij.openapi.rd.createLifetime
|
||||||
import com.intellij.openapi.rd.createNestedDisposable
|
import com.intellij.openapi.rd.createNestedDisposable
|
||||||
import com.jetbrains.rd.util.lifetime.intersect
|
import com.jetbrains.rd.util.lifetime.Lifetime
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles installation and uninstallation of plugin features in editors.
|
* Handles installation and uninstallation of plugin features in editors.
|
||||||
@ -55,7 +55,7 @@ internal object InspectionLens {
|
|||||||
private fun createEditorDisposable(textEditor: TextEditor): Disposable {
|
private fun createEditorDisposable(textEditor: TextEditor): Disposable {
|
||||||
val pluginLifetime = ApplicationManager.getApplication().getService(InspectionLensPluginDisposableService::class.java).createLifetime()
|
val pluginLifetime = ApplicationManager.getApplication().getService(InspectionLensPluginDisposableService::class.java).createLifetime()
|
||||||
val editorLifetime = textEditor.createLifetime()
|
val editorLifetime = textEditor.createLifetime()
|
||||||
return pluginLifetime.intersect(editorLifetime).createNestedDisposable()
|
return Lifetime.intersect(pluginLifetime, editorLifetime).createNestedDisposable("InspectionLensIntersectedLifetime")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user