diff options
author | Itamar <itamar8910@gmail.com> | 2021-01-23 19:48:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-27 21:10:57 +0100 |
commit | 8ed96eb27c332bd86dafd3da78b362668e00e0b9 (patch) | |
tree | 34d04984ca5d10afef29dda41f2ab49a03206820 /Userland/Libraries/LibProtocol | |
parent | c85dad2383816166fc170ad283f7011984a88708 (diff) | |
download | serenity-8ed96eb27c332bd86dafd3da78b362668e00e0b9.zip |
HackStudio: Attach previous Language Client when detaching
Previously, if a new LanguageClient was created & destroyed, the
ServerConnection to the language server would be left without an
attached LanguageClient.
As a result, auto-completion results would not be updated in the UI.
Starting with this commit, the LanguageClient holds a WeakPtr to the
previous LanguageClient that was attached to the ServerConnection,
and re-attaches it after detaching itself.
Diffstat (limited to 'Userland/Libraries/LibProtocol')
0 files changed, 0 insertions, 0 deletions