https://bugs.kde.org/show_bug.cgi?id=450190

            Bug ID: 450190
           Summary: The LSP server is started once per window
           Product: kate
           Version: 21.12.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: m_loui...@yahoo.com
  Target Milestone: ---

SUMMARY

When two windows are open, each starts its own LSP server. This results in a
waste of resources and duplicated work. RAM usage is especially bad since for
large code bases, clang-format easily reaches 1GB per instance.

STEPS TO REPRODUCE
1. Open a file type with LSP support (and, obviously, the LSP plugin enabled).
I use clang-format with C++.
2. Open a new window (View > New window)
3. Open your task manager and count the number of LSP server instances

OBSERVED RESULT

There are as many LSP servers as there are windows open.

EXPECTED RESULT

A single LSP server is spawned.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to