modify workspaceDirectories to private and update getWorkspaceDirs to use continuePluginService.workspacePaths directly
This commit is contained in:
parent
19d6246fc7
commit
a2c86bf555
2 changed files with 8 additions and 2 deletions
|
|
@ -81,7 +81,7 @@ class GitService(
|
|||
return diffs
|
||||
}
|
||||
|
||||
fun workspaceDirectories(): Array<String> {
|
||||
private fun workspaceDirectories(): Array<String> {
|
||||
val dirs = this.continuePluginService.workspacePaths
|
||||
|
||||
if (dirs?.isNotEmpty() == true) {
|
||||
|
|
|
|||
|
|
@ -148,7 +148,13 @@ class IntelliJIDE(
|
|||
}
|
||||
|
||||
override suspend fun getWorkspaceDirs(): List<String> {
|
||||
return gitService.workspaceDirectories().toList()
|
||||
val dirs = this.continuePluginService.workspacePaths
|
||||
|
||||
if (dirs?.isNotEmpty() == true) {
|
||||
return dirs
|
||||
}
|
||||
|
||||
return listOfNotNull(project.guessProjectDir()?.toUriOrNull()).toTypedArray()
|
||||
}
|
||||
|
||||
override suspend fun getWorkspaceConfigs(): List<ContinueRcJson> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue