mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:05:07 +00:00
HackStudio: Integrate with C++ Language Server
Editors now communicate with the c++ language server when openning and editing c++ source files, and go through the language server to get autocomplete suggestions.
This commit is contained in:
parent
863f14788f
commit
a39c4cc340
13 changed files with 197 additions and 34 deletions
|
@ -55,13 +55,16 @@ public:
|
|||
void set_execution_position(size_t line_number);
|
||||
void clear_execution_position();
|
||||
|
||||
BreakpointChangeCallback on_breakpoint_change;
|
||||
|
||||
const CodeDocument& code_document() const;
|
||||
CodeDocument& code_document();
|
||||
|
||||
virtual void set_document(GUI::TextDocument&) override;
|
||||
|
||||
virtual void on_edit_action(const GUI::Command&) override;
|
||||
|
||||
virtual void undo() override;
|
||||
virtual void redo() override;
|
||||
|
||||
private:
|
||||
virtual void focusin_event(GUI::FocusEvent&) override;
|
||||
virtual void focusout_event(GUI::FocusEvent&) override;
|
||||
|
@ -91,6 +94,8 @@ private:
|
|||
void show_autocomplete(const AutoCompleteRequestData&);
|
||||
void close_autocomplete();
|
||||
|
||||
void flush_file_content_to_langauge_server();
|
||||
|
||||
explicit Editor();
|
||||
|
||||
RefPtr<GUI::Window> m_documentation_tooltip_window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue