mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:02:45 +00:00 
			
		
		
		
	 ac5e08a541
			
		
	
	
		ac5e08a541
		
	
	
	
	
		
			
			This commit moves all the logic that deals with the language server (from HackStudio) into a LanguageClient class, provides some functions to make constructing them easier, and makes all language servers use a singular IPC definition. Also fixes the FIXME about making the autocompletion async. This makes adding language servers in the future significantly less duplicate-y, and significantly easier :^)
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			396 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			396 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| set(SOURCES
 | |
|     ClientConnection.cpp
 | |
|     main.cpp
 | |
|     AutoComplete.cpp
 | |
| )
 | |
| 
 | |
| set(GENERATED_SOURCES
 | |
|     ../LanguageServerEndpoint.h
 | |
|     ../LanguageClientEndpoint.h)
 | |
| 
 | |
| 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)
 |