Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

feat(dap): load dap lazily #388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MunifTanjim
Copy link

No description provided.

MunifTanjim added a commit to MunifTanjim/rust-tools.nvim that referenced this pull request May 27, 2023
@@ -17,7 +22,7 @@ function M.get_codelldb_adapter(codelldb_path, liblldb_path)
}
end

function M.setup_adapter()
local function setup_adapter()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is making it private necessary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not. What's the usecase for making it public?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. It already was so without any reason you should keep it the same
  2. The user could call setup themselves whenever they want (which btw the loaded check maybe could be inside setup_adapter?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants