diff --git a/CHANGELOG.md b/CHANGELOG.md index 481b7a5..bfc26fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## [Unreleased] +### Bugfixes + +- Fix debugger commands not showing up at first [#162](https://github.com/ng-galien/idea-plpgdebugger/issues/162) + ### Maintenance - Compatibility with Intellij 2024.* diff --git a/gradle.properties b/gradle.properties index 9ca187d..fd6cb85 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ pluginGroup = net.plpgsql.ideadebugger pluginName = idea-plpgdebugger pluginRepositoryUrl = https://github.com/ng-galien/idea-plpgdebugger # SemVer format -> https://semver.org -pluginVersion = 241.0.0 +pluginVersion = 241.0.1 # See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html # for insight into build numbers and IntelliJ Platform versions. diff --git a/src/main/kotlin/net/plpgsql/ideadebugger/run/PlProcess.kt b/src/main/kotlin/net/plpgsql/ideadebugger/run/PlProcess.kt index dec5471..27de8c7 100644 --- a/src/main/kotlin/net/plpgsql/ideadebugger/run/PlProcess.kt +++ b/src/main/kotlin/net/plpgsql/ideadebugger/run/PlProcess.kt @@ -105,7 +105,7 @@ class PlProcess( } /** - * + * Update stack and breakpoints */ fun updateStack(): StepInfo? { @@ -399,4 +399,4 @@ class PlProcess( data class StepInfo(val pos: Int, val total: Int, val ratio: Double) -} \ No newline at end of file +} diff --git a/src/main/kotlin/net/plpgsql/ideadebugger/vfs/PlSourceManager.kt b/src/main/kotlin/net/plpgsql/ideadebugger/vfs/PlSourceManager.kt index 22f0a8d..44f8f91 100644 --- a/src/main/kotlin/net/plpgsql/ideadebugger/vfs/PlSourceManager.kt +++ b/src/main/kotlin/net/plpgsql/ideadebugger/vfs/PlSourceManager.kt @@ -31,6 +31,7 @@ class PlSourceManager(private val project: Project, private val executor: PlExec runInEdt { FileEditorManager.getInstance(project).openFile(it, true, true) } + return it } } return vfs.findFileByPath("${stack.oid}") @@ -61,4 +62,4 @@ class PlSourceManager(private val project: Project, private val executor: PlExec private fun compareMD5(inDB: PlApiFunctionDef, inVFS: PlFunctionSource): Boolean { return inDB.md5 == inVFS.md5 } -} \ No newline at end of file +}