Browse Source

Revert "HackStudio: Remove noop code when opening the project"

This reverts commit 012fc3f92317b1f1c96a9829755593463d9630e1.
Andreas Kling 4 năm trước cách đây
mục cha
commit
00603d9fd0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Userland/DevTools/HackStudio/HackStudioWidget.cpp

+ 2 - 0
Userland/DevTools/HackStudio/HackStudioWidget.cpp

@@ -211,6 +211,8 @@ void HackStudioWidget::open_project(const String& root_path)
         debugger.reset_breakpoints();
         debugger.set_source_root(m_project->root_path());
     }
+    for (auto& editor_wrapper : m_all_editor_wrappers)
+        editor_wrapper.set_project_root(LexicalPath(m_project->root_path()));
 }
 
 Vector<String> HackStudioWidget::selected_file_paths() const