From 1d471b7d8e3c618924dfb2395739f79cad868955 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 4 Dec 2024 01:30:37 +0000 Subject: [PATCH] chore(build): auto-generate vimdoc, schemas and annotations --- schemas/rust_analyzer.json | 35 +++++++++++++++++++++++++++++++++++ types/lsp.lua | 12 ++++++++++++ 2 files changed, 47 insertions(+) diff --git a/schemas/rust_analyzer.json b/schemas/rust_analyzer.json index 7767466..66bd126 100644 --- a/schemas/rust_analyzer.json +++ b/schemas/rust_analyzer.json @@ -1402,6 +1402,41 @@ "markdownDescription": "Action to run when clicking the extension status bar item.", "type": "string" }, + "rust-analyzer.statusBar.documentSelector": { + "default": [ + { + "language": "rust" + }, + { + "pattern": "**/Cargo.toml" + }, + { + "pattern": "**/Cargo.lock" + } + ], + "items": { + "properties": { + "language": { + "type": [ + "string", + "null" + ] + }, + "pattern": { + "type": [ + "string", + "null" + ] + } + }, + "type": "object" + }, + "markdownDescription": "Determines when to show the extension status bar item based on the currently open file. Use `{ \"pattern\": \"**\" }` to always show. Use `null` to never show.", + "type": [ + "array", + "null" + ] + }, "rust-analyzer.testExplorer": { "default": false, "markdownDescription": "Whether to show the test explorer.", diff --git a/types/lsp.lua b/types/lsp.lua index 7793c28..aebb696 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -14255,6 +14255,18 @@ -- default = "openLogs" -- ``` ---@field clickAction "stopServer" | "openLogs" +-- Determines when to show the extension status bar item based on the currently open file. Use `{ "pattern": "**" }` to always show. Use `null` to never show. +-- +-- ```lua +-- default = { { +-- language = "rust" +-- }, { +-- pattern = "**/Cargo.toml" +-- }, { +-- pattern = "**/Cargo.lock" +-- } } +-- ``` +---@field documentSelector object[] ---@class _.lspconfig.settings.rust_analyzer.Trace -- Enable logging of VS Code extensions itself.