diff options
author | thislooksfun <tlf@thislooks.fun> | 2021-10-28 20:34:22 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-02 17:53:22 +0100 |
commit | 84622342081016d880da6f7f3cd9d086e87b31e1 (patch) | |
tree | c52a29c0efd917a23d137858d9f89d3fd146ff98 /Userland/DevTools | |
parent | d5baf1c1fa6a16144e3d6af5ac9f9b82c255fd64 (diff) | |
download | serenity-84622342081016d880da6f7f3cd9d086e87b31e1.zip |
HackStudio: Don't close autocomplete after applying #include directories
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp index 2977f6b4d6..576ef14cac 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/CppComprehensionEngine.cpp @@ -693,7 +693,7 @@ Optional<Vector<GUI::AutocompleteProvider::Entry>> CppComprehensionEngine::try_a if (Core::File::is_directory(LexicalPath::join(full_dir, path).string())) { // FIXME: Don't dismiss the autocomplete when filling these suggestions. auto completion = String::formatted("{}{}{}/", prefix, include_dir, path); - options.empend(completion, include_dir.length() + partial_basename.length() + 1, GUI::AutocompleteProvider::Language::Cpp, path); + options.empend(completion, include_dir.length() + partial_basename.length() + 1, GUI::AutocompleteProvider::Language::Cpp, path, GUI::AutocompleteProvider::Entry::HideAutocompleteAfterApplying::No); } else if (path.ends_with(".h")) { // FIXME: Place the cursor after the trailing > or ", even if it was // already typed. |