Skip to content

Commit

Permalink
[ML4SE-627] Send files after pause button has been pressed. Changed p…
Browse files Browse the repository at this point in the history
…luginUntilBuild version.
  • Loading branch information
mikrise2 committed Apr 22, 2024
1 parent 2baff3a commit 8db2d8e
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 378 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pluginVersion = 0.0.1

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
pluginUntilBuild = 233.*
pluginUntilBuild = 242

# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType = IC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ object TaskFileHandler {
}
}

fun disposeAllTasks() {
projectToTaskToFiles.forEach { (project, projectFiles) ->
projectFiles.keys.forEach {
disposeTask(project, it)
}
}
}

// TODO not forget to remove from document loggers hashmap, flush data
fun disposeTask(project: Project, task: Task) {
projectToTaskToFiles[project]?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ fun Panel.processScenario() {
fun Panel.stopTracking() {
TaskTrackerPlugin.mainConfig.scenarioConfig?.scenario?.reset()
loadBasePage(LoadTemplate())
TaskFileHandler.disposeAllTasks()
ApplicationManager.getApplication().invokeLater {
trackingService.stopTracking(::finalPage, ::serverErrorPage)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
pluginName: "Kotlin Refactoring course"
pluginDescription: "We want to track your progress through the kotlin refactoring course in order to collect data on file changes during the course completion. Please, when you are ready, press the next button."
researchId: "Kotlin Refactoring"
pluginName: "Kotlin Introduction"
pluginDescription: "We want to track your progress through the kotlin introduction course in order to collect data on file changes during the course completion. Please, when you are ready, press the next button."
researchId: "Kotlin Introduction"
logs:
- logPaths:
- "edu-assistant/eduAssistant.log"
- "edu-assistant/hintTiming.log"
- "edu-assistant/taskAnalysisTiming.log"
type: "assistant"
isInPluginDirectory: true
Loading

0 comments on commit 8db2d8e

Please sign in to comment.