jetbrains diffs

This commit is contained in:
Dallin Romney 2024-12-17 12:08:59 -08:00
parent fdb108eecc
commit 735e134ad5

View file

@ -18,6 +18,7 @@ import com.intellij.openapi.util.Disposer
import com.intellij.openapi.vfs.LocalFileSystem
import java.awt.Toolkit
import java.io.File
import java.net.URI
import java.nio.file.Paths
import javax.swing.Action
import javax.swing.JComponent
@ -61,7 +62,7 @@ class DiffManager(private val project: Project) : DumbAware {
file.createNewFile()
}
file.writeText(replacement)
openDiffWindow(filepath, file.url, stepIndex)
openDiffWindow(URI(filepath).toString(), file.toURI().toString(), stepIndex)
}
private fun cleanUpFile(file2: String) {