Skip to content

Commit

Permalink
fix(intellij): fix chat panel find file by workspace filepath.
Browse files Browse the repository at this point in the history
  • Loading branch information
icycodes committed Feb 19, 2025
1 parent 11f44fc commit 5181b6d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ class ChatBrowser(private val project: Project) : JBCefBrowser(
val filepathInWorkspace = filepath as FilepathInWorkspace
filepathInWorkspace.baseDir.let {
project.findVirtualFile(it.appendUrlPathSegments(filepathInWorkspace.filepath))
} ?: project.guessProjectDir()?.url?.let {
project.findVirtualFile(it.appendUrlPathSegments(filepathInWorkspace.filepath))
}
}

Expand Down

0 comments on commit 5181b6d

Please sign in to comment.