1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2025-04-21 15:15:46 +02:00

Update API usage for 2023.3

Closes 
This commit is contained in:
chylex 2023-11-05 17:57:32 +01:00
parent a05a97274b
commit 29cf88cc4b
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548
2 changed files with 4 additions and 4 deletions
build.gradle.kts
src/main/kotlin/com/chylex/intellij/inspectionlens

View File

@ -15,7 +15,7 @@ repositories {
}
intellij {
version.set("2023.1")
version.set("233.11555.11-EAP-SNAPSHOT")
updateSinceUntilBuild.set(false)
plugins.add("tanvd.grazi")
@ -30,7 +30,7 @@ dependencies {
}
tasks.patchPluginXml {
sinceBuild.set("231")
sinceBuild.set("233.11361.10")
}
tasks.buildSearchableOptions {

View File

@ -9,7 +9,7 @@ import com.intellij.openapi.fileEditor.TextEditor
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.rd.createLifetime
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.
@ -55,7 +55,7 @@ internal object InspectionLens {
private fun createEditorDisposable(textEditor: TextEditor): Disposable {
val pluginLifetime = ApplicationManager.getApplication().getService(InspectionLensPluginDisposableService::class.java).createLifetime()
val editorLifetime = textEditor.createLifetime()
return pluginLifetime.intersect(editorLifetime).createNestedDisposable()
return Lifetime.intersect(pluginLifetime, editorLifetime).createNestedDisposable("InspectionLensIntersectedLifetime")
}
/**