generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [ML4SE-343] New directory * [ML4SE-343] Changed plugin description. Added possibility to send files from the plugin directory. * [ML4SE-343] Changed assistant directory.
- Loading branch information
Showing
5 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/tracking/ExternalLogger.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
package org.jetbrains.research.tasktracker.tracking | ||
|
||
import com.intellij.openapi.application.PathManager | ||
import org.jetbrains.research.tasktracker.config.content.Log | ||
import java.io.File | ||
import java.nio.file.Path | ||
import kotlin.io.path.Path | ||
|
||
class ExternalLogger(private val root: Path, private val log: Log) : Loggable() { | ||
class ExternalLogger(private val projectRoot: Path, private val log: Log) : Loggable() { | ||
override val logFileType: String = log.type | ||
|
||
override fun getLogFiles(): List<File> = log.logPaths.map { | ||
val root: Path = if (log.isInPluginDirectory) { | ||
Path(PathManager.getPluginsPath()) | ||
} else { | ||
projectRoot | ||
} | ||
root.resolve(it).toFile() | ||
}.filter { it.exists() } | ||
} |
11 changes: 6 additions & 5 deletions
11
ij-plugin/src/main/resources/org/jetbrains/research/tasktracker/config/info_default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
pluginName: Refactoring course | ||
pluginDescription: "We want to track your progress through the code refactoring course in order to collect data on file changes during the course completion. Please, when you are ready, press the next button." | ||
researchId: "RefactoringCourse" | ||
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: | ||
- "eduAssistant.log" | ||
type: "ai" | ||
- "edu-assistant/eduAssistant.log" | ||
type: "assistant" | ||
isInPluginDirectory: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters