mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
Merge pull request #20042 from Veykril/push-uosxynulorzn
fix: Temporarily disable `+` typing handler as it moves the cursor position
This commit is contained in:
commit
df50136c23
@ -344,7 +344,7 @@ config_data! {
|
||||
/// - 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.
|
||||
typing_triggerChars: Option<String> = Some("=.+".to_owned()),
|
||||
typing_triggerChars: Option<String> = Some("=.".to_owned()),
|
||||
|
||||
|
||||
/// Enables automatic discovery of projects using [`DiscoverWorkspaceConfig::command`].
|
||||
|
@ -1417,7 +1417,7 @@ Show documentation.
|
||||
|
||||
## rust-analyzer.typing.triggerChars {#typing.triggerChars}
|
||||
|
||||
Default: `"=.+"`
|
||||
Default: `"=."`
|
||||
|
||||
Specify the characters allowed to invoke special on typing triggers.
|
||||
- typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing expression
|
||||
|
@ -2846,7 +2846,7 @@
|
||||
"properties": {
|
||||
"rust-analyzer.typing.triggerChars": {
|
||||
"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.",
|
||||
"default": "=.+",
|
||||
"default": "=.",
|
||||
"type": [
|
||||
"null",
|
||||
"string"
|
||||
|
Loading…
x
Reference in New Issue
Block a user