1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00
serenity/Userland/DevTools/HackStudio
sin-ack 2e1bbcb0fa LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer
This change unfortunately cannot be atomically made without a single
commit changing everything.

Most of the important changes are in LibIPC/Connection.cpp,
LibIPC/ServerConnection.cpp and LibCore/LocalServer.cpp.

The notable changes are:
- IPCCompiler now generates the decode and decode_message functions such
  that they take a Core::Stream::LocalSocket instead of the socket fd.
- IPC::Decoder now uses the receive_fd method of LocalSocket instead of
  doing system calls directly on the fd.
- IPC::ConnectionBase and related classes now use the Stream API
  functions.
- IPC::ServerConnection no longer constructs the socket itself; instead,
  a convenience macro, IPC_CLIENT_CONNECTION, is used in place of
  C_OBJECT and will generate a static try_create factory function for
  the ServerConnection subclass. The subclass is now responsible for
  passing the socket constructed in this function to its
  ServerConnection base; the socket is passed as the first argument to
  the constructor (as a NonnullOwnPtr<Core::Stream::LocalServer>) before
  any other arguments.
- The functionality regarding taking over sockets from SystemServer has
  been moved to LibIPC/SystemServerTakeover.cpp. The Core::LocalSocket
  implementation of this functionality hasn't been deleted due to my
  intention of removing this class in the near future and to reduce
  noise on this (already quite noisy) PR.
2022-01-15 13:29:48 +03:30
..
Debugger LibJS: Convert Interpreter::run() to ThrowCompletionOr<Value> 2022-01-08 23:43:03 +01:00
Dialogs HackStudio: Add new multiline commit dialog 2022-01-01 14:47:23 +01:00
Git LibCore: Make Core::command return CommandResult struct 2022-01-12 14:55:19 +01:00
LanguageClients LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
LanguageServers LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
AutoCompleteResponse.h LibIPC+IPCCompiler+AK: Make IPC value decoders return ErrorOr<void> 2021-11-28 23:14:19 +01:00
ClassViewWidget.cpp HackStudio: Add comment about lexicographical insertion to ClassView 2021-06-04 19:29:22 +02:00
ClassViewWidget.h Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
CMakeLists.txt HackStudio: Add ProjectBuilder component 2022-01-12 14:55:19 +01:00
CodeDocument.cpp HackStudio: Add statusbar with file and selected text information 2021-07-16 12:58:20 +02:00
CodeDocument.h HackStudio: Add statusbar with file and selected text information 2021-07-16 12:58:20 +02:00
Editor.cpp HackStudio: Propagate errors using try_set_main_widget 2022-01-09 00:56:11 +01:00
Editor.h HackStudio: Propagate errors using try_set_main_widget 2022-01-09 00:56:11 +01:00
EditorWrapper.cpp HackStudio: Propagate errors using try_set_main_widget 2022-01-09 00:56:11 +01:00
EditorWrapper.h HackStudio: Use String instead of LexicalPath 2022-01-01 14:47:23 +01:00
FindInFilesWidget.cpp Everywhere: Pass AK::StringView by value 2021-11-11 01:27:46 +01:00
FindInFilesWidget.h HackStudio: Make FindInFilesWidget reset when opening new project 2021-08-22 10:30:06 +02:00
GMLPreviewWidget.cpp HackStudio: Add GML Preview action tab 2021-07-29 11:33:16 +02:00
GMLPreviewWidget.h HackStudio: Add GML Preview action tab 2021-07-29 11:33:16 +02:00
HackStudio.h HackStudio: Add HackStudio::for_each_open_file 2021-12-03 15:38:21 +01:00
HackStudioWidget.cpp HackStudio: Use ProjectBuilder to build and run the current project 2022-01-12 14:55:19 +01:00
HackStudioWidget.h HackStudio: Use ProjectBuilder to build and run the current project 2022-01-12 14:55:19 +01:00
Language.cpp HackStudio: Highlight AF files as INI 2021-12-28 11:36:12 +01:00
Language.h HackStudio: Add syntax-highlighting for CSS files 2021-10-23 19:07:44 +02:00
LanguageClient.cpp Everywhere: Fix many spelling errors 2022-01-07 10:56:59 +01:00
LanguageClient.h LibCore+LibIPC+Everywhere: Return Stream::LocalSocket from LocalServer 2022-01-15 13:29:48 +03:30
Locator.cpp LibGUI+Applications: Rename Model::is_valid to is_within_range 2021-08-06 21:03:53 +02:00
Locator.h HackStudio: Remove unused #include 2021-11-02 17:53:22 +01:00
main.cpp HackStudio: Propagate errors using try_set_main_widget in main 2022-01-09 00:56:11 +01:00
Project.cpp HackStudio: Add Project::project_is_serenity() function 2022-01-12 14:55:19 +01:00
Project.h HackStudio: Add Project::project_is_serenity() function 2022-01-12 14:55:19 +01:00
ProjectBuilder.cpp HackStudio: Use ProjectBuilder to build and run the current project 2022-01-12 14:55:19 +01:00
ProjectBuilder.h HackStudio: Add ProjectBuilder component 2022-01-12 14:55:19 +01:00
ProjectDeclarations.cpp LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file() 2021-11-08 00:35:27 +01:00
ProjectDeclarations.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ProjectFile.cpp HackStudio: Remove unused includes 2021-06-02 23:15:52 +01:00
ProjectFile.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
ProjectTemplate.cpp LibCore: Use ErrorOr<T> for Core::File::copy_file() 2021-11-08 00:35:27 +01:00
ProjectTemplate.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
TerminalWrapper.cpp HackStudio: Add optional parameters to TerminalWrapper::run() 2022-01-12 14:55:19 +01:00
TerminalWrapper.h HackStudio: Add optional parameters to TerminalWrapper::run() 2022-01-12 14:55:19 +01:00
ToDoEntries.cpp HackStudio: Clear ToDo entries upon opening new project 2021-08-22 10:30:06 +02:00
ToDoEntries.h HackStudio: Clear ToDo entries upon opening new project 2021-08-22 10:30:06 +02:00
ToDoEntriesWidget.cpp HackStudio: Clear ToDo entries upon opening new project 2021-08-22 10:30:06 +02:00
ToDoEntriesWidget.h HackStudio: Clear ToDo entries upon opening new project 2021-08-22 10:30:06 +02:00