Skip to content

Memory leak when opening files due to max_width = 0.3 change #296

@emnnipal

Description

@emnnipal

Hi, I encountered a memory leak related to the recent change in commit 5e0804e, where max_width was updated to 0.3.

Steps to reproduce

  1. In a typescript project using the vtsls LSP, create a file named required-permissions.decorator.ts.
  2. Open the file.
  3. Observe excessive memory consumption, eventually leading to a memory leak.

Workaround

Manually setting max_width = 0 in the config prevents the issue:

{
  "j-hui/fidget.nvim",
  opts = {
    notification = {
      window = {
        max_width = 0, -- `0` means no maximum width.
      },
    },
  },
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions