mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
HackStudio: Add C++ Language Server
The language server keeps track of the content of currently edited files by receiving updates about edit actions. Also, C++ autocompletion is no longer tied to HackStudio itself and moved to be part of the language server.
This commit is contained in:
parent
bf53d7ff64
commit
863f14788f
Notes:
sideshowbarker
2024-07-19 02:07:10 +09:00
Author: https://github.com/itamar8910
Commit: 863f14788f
Pull-request: https://github.com/SerenityOS/serenity/pull/3622
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bugaevc
Reviewed-by: https://github.com/tomuta
18 changed files with 451 additions and 21 deletions
16
DevTools/HackStudio/LanguageServers/Cpp/CMakeLists.txt
Normal file
16
DevTools/HackStudio/LanguageServers/Cpp/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
compile_ipc(CppLanguageServer.ipc CppLanguageServerEndpoint.h)
|
||||
compile_ipc(CppLanguageClient.ipc CppLanguageClientEndpoint.h)
|
||||
|
||||
set(SOURCES
|
||||
ClientConnection.cpp
|
||||
main.cpp
|
||||
CppLanguageServerEndpoint.h
|
||||
CppLanguageClientEndpoint.h
|
||||
AutoComplete.cpp
|
||||
)
|
||||
|
||||
serenity_bin(CppLanguageServer)
|
||||
|
||||
# We link with LibGUI because we use GUI::TextDocument to update
|
||||
# the content of files according to the edit actions we receive over IPC.
|
||||
target_link_libraries(CppLanguageServer LibIPC LibCpp LibGUI)
|
Loading…
Add table
Add a link
Reference in a new issue