diff --git a/schemas/rust_analyzer.json b/schemas/rust_analyzer.json index 9a0f3f8..0bc49fe 100644 --- a/schemas/rust_analyzer.json +++ b/schemas/rust_analyzer.json @@ -1565,9 +1565,9 @@ "markdownDescription": "Whether to prefix newlines after comments with the corresponding comment prefix.", "type": "boolean" }, - "rust-analyzer.typing.excludeChars": { - "default": "|<", - "markdownDescription": "Specify the characters to exclude from triggering typing assists. The default trigger characters are `.`, `=`, `<`, `>`, `{`, and `(`.", + "rust-analyzer.typing.triggerChars": { + "default": "=.", + "markdownDescription": "Specify the characters allowed to invoke special on typing triggers.\n- typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing expression\n- typing `=` between two expressions adds `;` when in statement position\n- typing `=` to turn an assignment into an equality comparison removes `;` when in expression position\n- typing `.` in a chain method call auto-indents\n- typing `{` or `(` in front of an expression inserts a closing `}` or `)` after the expression\n- typing `{` in a use item adds a closing `}` in the right place\n- typing `>` to complete a return type `->` will insert a whitespace after it\n- typing `<` in a path or type position inserts a closing `>` after the path or type.", "type": [ "null", "string" diff --git a/schemas/sourcekit.json b/schemas/sourcekit.json index 29c90e2..25df8f2 100644 --- a/schemas/sourcekit.json +++ b/schemas/sourcekit.json @@ -57,7 +57,7 @@ }, "swift.SDK": { "default": "", - "markdownDescription": "The path of the SDK to compile against (`--sdk` parameter). This is of use when supporting non-standard SDK layouts on Windows and using custom SDKs. The default SDK is determined by the environment on macOS and Windows.", + "markdownDescription": "The path of the SDK to compile against (`--sdk` parameter). This is of use when supporting non-standard SDK layouts on Windows and using custom SDKs. The default SDK is determined by the environment on macOS and Windows.\n\nFor SwiftPM projects, prefer using `swift.swiftSDK` with a triple (such as `arm64-apple-ios`) or Swift SDK name instead.", "order": 3, "type": "string" }, @@ -384,6 +384,12 @@ }, "type": "object" }, + "swift.swiftSDK": { + "default": "", + "markdownDescription": "The [Swift SDK](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md) to compile against (`--swift-sdk` parameter).", + "order": 4, + "type": "string" + }, "swift.testEnvironmentVariables": { "default": {}, "markdownDescription": "Environment variables to set when running tests. To set environment variables when debugging an application you should edit the `env` field in the relevant `launch.json` configuration.", diff --git a/schemas/ts_ls.json b/schemas/ts_ls.json index e98a068..d6404d7 100644 --- a/schemas/ts_ls.json +++ b/schemas/ts_ls.json @@ -14,6 +14,12 @@ "scope": "window", "type": "boolean" }, + "javascript.format.indentSwitchCase": { + "default": true, + "description": "Indent case clauses in switch statements. Requires using TypeScript 5.1+ in the workspace.", + "scope": "resource", + "type": "boolean" + }, "javascript.format.insertSpaceAfterCommaDelimiter": { "default": true, "description": "Defines space handling after a comma delimiter.", diff --git a/types/lsp.lua b/types/lsp.lua index e4dbb42..f8154de 100644 --- a/types/lsp.lua +++ b/types/lsp.lua @@ -14344,12 +14344,20 @@ -- default = true -- ``` ---@field continueCommentsOnNewline boolean --- Specify the characters to exclude from triggering typing assists. The default trigger characters are `.`, `=`, `<`, `>`, `{`, and `(`. +-- Specify the characters allowed to invoke special on typing triggers. +-- - typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing expression +-- - typing `=` between two expressions adds `;` when in statement position +-- - typing `=` to turn an assignment into an equality comparison removes `;` when in expression position +-- - typing `.` in a chain method call auto-indents +-- - typing `{` or `(` in front of an expression inserts a closing `}` or `)` after the expression +-- - typing `{` in a use item adds a closing `}` in the right place +-- - typing `>` to complete a return type `->` will insert a whitespace after it +-- - typing `<` in a path or type position inserts a closing `>` after the path or type. -- -- ```lua --- default = "|<" +-- default = "=." -- ``` ----@field excludeChars string +---@field triggerChars string ---@class _.lspconfig.settings.rust_analyzer.Vfs -- Additional paths to include in the VFS. Generally for code that is @@ -15103,6 +15111,8 @@ ---@class _.lspconfig.settings.sourcekit.Swift -- The path of the SDK to compile against (`--sdk` parameter). This is of use when supporting non-standard SDK layouts on Windows and using custom SDKs. The default SDK is determined by the environment on macOS and Windows. -- +-- For SwiftPM projects, prefer using `swift.swiftSDK` with a triple (such as `arm64-apple-ios`) or Swift SDK name instead. +-- -- ```lua -- default = "" -- ``` @@ -15243,6 +15253,12 @@ -- default = {} -- ``` ---@field swiftEnvironmentVariables table +-- The [Swift SDK](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0387-cross-compilation-destinations.md) to compile against (`--swift-sdk` parameter). +-- +-- ```lua +-- default = "" +-- ``` +---@field swiftSDK string -- Environment variables to set when running tests. To set environment variables when debugging an application you should edit the `env` field in the relevant `launch.json` configuration. -- -- ```lua @@ -16278,6 +16294,12 @@ -- default = true -- ``` ---@field enable boolean +-- Indent case clauses in switch statements. Requires using TypeScript 5.1+ in the workspace. +-- +-- ```lua +-- default = true +-- ``` +---@field indentSwitchCase boolean -- Defines space handling after a comma delimiter. -- -- ```lua