diff --git a/schemas/rust_analyzer.json b/schemas/rust_analyzer.json index 24b402b..71cdd62 100644 --- a/schemas/rust_analyzer.json +++ b/schemas/rust_analyzer.json @@ -1321,6 +1321,14 @@ "string" ] }, + "rust-analyzer.profiling.memoryProfile": { + "default": null, + "markdownDescription": "The path where to save memory profiling output.\n\n**Note:** Memory profiling is not enabled by default in rust-analyzer builds, you need to build\nfrom source for it.", + "type": [ + "null", + "string" + ] + }, "rust-analyzer.references.excludeImports": { "default": false, "markdownDescription": "Exclude imports from find-all-references.", diff --git a/types/lsp.lua b/types/lsp.lua index 6293717..194d9c9 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -14660,6 +14660,13 @@ -- Internal config, path to proc-macro server executable. ---@field server string +---@class _.lspconfig.settings.rust_analyzer.Profiling +-- The path where to save memory profiling output. +-- +-- **Note:** Memory profiling is not enabled by default in rust-analyzer builds, you need to build +-- from source for it. +---@field memoryProfile string + ---@class _.lspconfig.settings.rust_analyzer.References -- Exclude imports from find-all-references. ---@field excludeImports boolean @@ -15108,6 +15115,7 @@ -- automatically. ---@field numThreads any|number|"physical" | "logical" ---@field procMacro _.lspconfig.settings.rust_analyzer.ProcMacro +---@field profiling _.lspconfig.settings.rust_analyzer.Profiling ---@field references _.lspconfig.settings.rust_analyzer.References -- Restart the server automatically when settings that require a restart are changed. ---@field restartServerOnConfigChange boolean