From 00603d9fd06a92b7028410b865527ecbd432fb2b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 12 Aug 2021 20:56:54 +0200 Subject: [PATCH] Revert "HackStudio: Remove noop code when opening the project" This reverts commit 012fc3f92317b1f1c96a9829755593463d9630e1. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 9372904cb9..a06b07cc9f 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/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 HackStudioWidget::selected_file_paths() const