1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00
serenity/Userland/DevTools/HackStudio
Itamar cfa100cb65 HackStudio: Restart LanguageServer if it crashes
We now restart the language server transparently if it crashes.
If the language server crashes too frequently (current threshold is
twice within 3 seconds), we give up and will not attempt to restart it
again. HackStudio will still work fine, but features that depend on the
language server will not function.

To support this change we use a new class, 'ServerConnectionWrapper',
that holds the actual ServerConnection and is responsible for restarting
the language-server if it crashes.

Closes #5574.
2021-03-06 09:40:33 +01:00
..
Debugger Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
Dialogs Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
Git Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
LanguageClients HackStudio: Map connections to langauge-servers by language name 2021-03-06 09:40:33 +01:00
LanguageServers LanguageServers: Support calling SetFileContent with not-yet open files 2021-03-06 09:40:33 +01:00
AutoCompleteResponse.h LanguageServers/Cpp: Update client asynchronously about symbols 2021-02-27 16:37:35 +01:00
CMakeLists.txt HackStudio: Create Language enum from file extension or language name 2021-03-06 09:40:33 +01:00
CodeDocument.cpp HackStudio: Create Language enum from file extension or language name 2021-03-06 09:40:33 +01:00
CodeDocument.h DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
CursorTool.cpp Everywhere: Replace dbgln<flag>(...) with dbgln_if(flag, ...) 2021-02-08 18:08:55 +01:00
CursorTool.h DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
Editor.cpp HackStudio: Restart LanguageServer if it crashes 2021-03-06 09:40:33 +01:00
Editor.h HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
EditorWrapper.cpp HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
EditorWrapper.h HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
FindInFilesWidget.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
FindInFilesWidget.h Everywhere: Add semantically-missing includes 2021-02-08 18:03:57 +01:00
FormEditorWidget.cpp DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
FormEditorWidget.h Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
FormWidget.cpp DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
FormWidget.h DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
HackStudio.h HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
HackStudioWidget.cpp HackStudio: Remove redundant null check when creating a new project file 2021-03-06 09:40:33 +01:00
HackStudioWidget.h HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
Language.cpp HackStudio: Create Language enum from file extension or language name 2021-03-06 09:40:33 +01:00
Language.h HackStudio: Create Language enum from file extension or language name 2021-03-06 09:40:33 +01:00
LanguageClient.cpp HackStudio: Restart LanguageServer if it crashes 2021-03-06 09:40:33 +01:00
LanguageClient.h HackStudio: Restart LanguageServer if it crashes 2021-03-06 09:40:33 +01:00
Locator.cpp HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
Locator.h HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
main.cpp HackStudio: Support searching symbol declarations in the Locator 2021-02-27 16:37:35 +01:00
Project.cpp HackStudio: Make sure project files are created with an absolute path 2021-03-06 09:40:33 +01:00
Project.h HackStudio: Make sure project files are created with an absolute path 2021-03-06 09:40:33 +01:00
ProjectFile.cpp HackStudio: Add ProjectFile::create_if_needed 2021-03-06 09:40:33 +01:00
ProjectFile.h HackStudio: Add ProjectFile::create_if_needed 2021-03-06 09:40:33 +01:00
ProjectTemplate.cpp HackStudio: Project templates and New Project dialog 2021-02-13 19:49:30 +01:00
ProjectTemplate.h HackStudio: Project templates and New Project dialog 2021-02-13 19:49:30 +01:00
TerminalWrapper.cpp LibVT: Put TerminalWidget in the VT namespace :^) 2021-02-27 17:49:08 +01:00
TerminalWrapper.h LibVT: Put TerminalWidget in the VT namespace :^) 2021-02-27 17:49:08 +01:00
Tool.h DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
WidgetTool.cpp DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
WidgetTool.h DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00
WidgetTreeModel.cpp Everywhere: Rename ASSERT => VERIFY 2021-02-23 20:56:54 +01:00
WidgetTreeModel.h DevTools: Move to Userland/DevTools/ 2021-01-12 12:18:55 +01:00