1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 04:15:06 +00:00
serenity/Userland/DevTools/HackStudio
iyush a268dcb1e2 HackStudio: Move around execution order and prevent crashing
Previously hackstudio tried to synchronize the language server before
executing the command inside the editor.  If sync-command for the server
(for example the CommentLineCommand) is not implemented inside the
function responsible for syncing the language server, the IDE would
crash.

This patch makes it such that the synchronization happens only after IDE
executes the command locally.  If such command is not implemented (as
was the case earlier), it would simply reupdate the content inside the
language server. Even though the reupdate might be expensive, it is
better than crashing hackstudio altogether.

Because of reordering, the relevant function names have been changed to
better reflect the code flow.
2023-04-30 06:08:22 +02:00
..
Debugger LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
Dialogs LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStyle 2023-04-30 05:49:46 +02:00
Git LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
LanguageClients LibCore: Move Stream-based sockets into the Core namespace 2023-02-13 00:50:07 +00:00
LanguageServers LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
AutoCompleteResponse.h LibIPC+Everywhere: Change IPC::encode's return type to ErrorOr 2023-01-04 11:49:15 +01:00
ClassViewWidget.cpp HackStudio: Store correct address in ClassViewModel's ModelIndices 2023-03-08 23:14:21 +01:00
ClassViewWidget.h Everywhere: Stop using NonnullOwnPtrVector 2023-03-06 23:46:35 +01:00
CMakeLists.txt Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
CodeDocument.cpp HackStudio: Migrate git-diff indicators to TextEditor API 2023-03-31 12:09:40 +02:00
CodeDocument.h HackStudio: Migrate git-diff indicators to TextEditor API 2023-03-31 12:09:40 +02:00
Editor.cpp HackStudio: Move around execution order and prevent crashing 2023-04-30 06:08:22 +02:00
Editor.h HackStudio: Move around execution order and prevent crashing 2023-04-30 06:08:22 +02:00
EditorWrapper.cpp HackStudio: Migrate git-diff indicators to TextEditor API 2023-03-31 12:09:40 +02:00
EditorWrapper.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FindInFilesWidget.cpp Everywhere: Use _{short_,}string to create Strings from literals 2023-02-25 20:51:49 +01:00
FindInFilesWidget.h HackStudio: Make FindInFilesWidget reset when opening new project 2021-08-22 10:30:06 +02:00
GMLPreviewWidget.cpp LibGUI+Userland: Port Labels to String 2023-04-30 05:48:14 +02:00
GMLPreviewWidget.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
HackStudio.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
HackStudioWidget.cpp AK+Everywhere: Disallow Error::from_string_view(FooString) 2023-04-28 05:55:20 +02:00
HackStudioWidget.h Everywhere: Stop using NonnullRefPtrVector 2023-03-06 23:46:35 +01:00
LanguageClient.cpp HackStudio: Use Syntax::Language instead of our own one 2023-03-11 13:22:57 +00:00
LanguageClient.h HackStudio: Use Syntax::Language instead of our own one 2023-03-11 13:22:57 +00:00
Locator.cpp LibGUI+Everywhere: Use fallible Window::set_main_widget() everywhere :^) 2023-01-06 13:36:02 -07:00
Locator.h DevTools: Use default constructors/destructors 2022-02-16 07:33:15 -05:00
main.cpp HackStudio: Add configuration domain pledge for FileManager 2023-04-06 08:56:57 +01:00
Project.cpp Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
Project.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectBuilder.cpp Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
ProjectBuilder.h LibFileSystem: Move TempFile from LibCore to LibFileSystem 2023-03-21 19:03:21 +00:00
ProjectConfig.cpp LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
ProjectConfig.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectDeclarations.cpp LibGfx: Remove try_ prefix from bitmap creation functions 2023-01-26 20:24:37 +00:00
ProjectDeclarations.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectFile.cpp LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
ProjectFile.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProjectTemplate.cpp Everywhere: Use LibFileSystem where trivial 2023-03-21 19:03:21 +00:00
ProjectTemplate.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TerminalWrapper.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TerminalWrapper.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntries.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntries.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntriesWidget.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ToDoEntriesWidget.h HackStudio: Clear ToDo entries upon opening new project 2021-08-22 10:30:06 +02:00