Skip to content

Commit 40528eb

Browse files
committed
fix(bridge): correct file opening parameters in StructureCommandUtil #319
The `openFile` method parameters were adjusted to avoid unnecessary file editor activation and preview mode. This ensures the file is opened in a more controlled manner.
1 parent 5763d26 commit 40528eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/kotlin/cc/unitmesh/devti/bridge/utils/StructureCommandUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object StructureCommandUtil {
2525
fun getFileStructure(project: Project, file: VirtualFile, psiFile: PsiFile): String {
2626
val viewFactory = LanguageStructureViewBuilder.INSTANCE.forLanguage(psiFile.language)
2727
val fileEditor: FileEditor = FileEditorManager.getInstance(project).getEditors(file).firstOrNull()
28-
?: FileEditorManager.getInstance(project).openFile(file, true).firstOrNull()
28+
?: FileEditorManager.getInstance(project).openFile(file, false, false).firstOrNull()
2929
?: return "No FileEditor found."
3030

3131
if (viewFactory != null) {

0 commit comments

Comments
 (0)